referrerpolicy=no-referrer-when-downgrade
pub trait MaybeEquivalence<A, B> {
    // Required methods
    fn convert(a: &A) -> Option<B>;
    fn convert_back(b: &B) -> Option<A>;
}
Expand description

Definition for a bi-directional, fallible conversion between two types.

Required Methods§

source

fn convert(a: &A) -> Option<B>

Attempt to convert reference of A into value of B, returning None if not possible.

source

fn convert_back(b: &B) -> Option<A>

Attempt to convert reference of B into value of A, returning None if not possible.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A, B> MaybeEquivalence<A, B> for ()

source§

impl<A, B, TupleElement0> MaybeEquivalence<A, B> for (TupleElement0,)
where TupleElement0: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>, TupleElement23: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>, TupleElement23: MaybeEquivalence<A, B>, TupleElement24: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>, TupleElement23: MaybeEquivalence<A, B>, TupleElement24: MaybeEquivalence<A, B>, TupleElement25: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>, TupleElement23: MaybeEquivalence<A, B>, TupleElement24: MaybeEquivalence<A, B>, TupleElement25: MaybeEquivalence<A, B>, TupleElement26: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>, TupleElement23: MaybeEquivalence<A, B>, TupleElement24: MaybeEquivalence<A, B>, TupleElement25: MaybeEquivalence<A, B>, TupleElement26: MaybeEquivalence<A, B>, TupleElement27: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27, TupleElement28> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27, TupleElement28)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>, TupleElement23: MaybeEquivalence<A, B>, TupleElement24: MaybeEquivalence<A, B>, TupleElement25: MaybeEquivalence<A, B>, TupleElement26: MaybeEquivalence<A, B>, TupleElement27: MaybeEquivalence<A, B>, TupleElement28: MaybeEquivalence<A, B>,

source§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27, TupleElement28, TupleElement29> MaybeEquivalence<A, B> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27, TupleElement28, TupleElement29)
where TupleElement0: MaybeEquivalence<A, B>, TupleElement1: MaybeEquivalence<A, B>, TupleElement2: MaybeEquivalence<A, B>, TupleElement3: MaybeEquivalence<A, B>, TupleElement4: MaybeEquivalence<A, B>, TupleElement5: MaybeEquivalence<A, B>, TupleElement6: MaybeEquivalence<A, B>, TupleElement7: MaybeEquivalence<A, B>, TupleElement8: MaybeEquivalence<A, B>, TupleElement9: MaybeEquivalence<A, B>, TupleElement10: MaybeEquivalence<A, B>, TupleElement11: MaybeEquivalence<A, B>, TupleElement12: MaybeEquivalence<A, B>, TupleElement13: MaybeEquivalence<A, B>, TupleElement14: MaybeEquivalence<A, B>, TupleElement15: MaybeEquivalence<A, B>, TupleElement16: MaybeEquivalence<A, B>, TupleElement17: MaybeEquivalence<A, B>, TupleElement18: MaybeEquivalence<A, B>, TupleElement19: MaybeEquivalence<A, B>, TupleElement20: MaybeEquivalence<A, B>, TupleElement21: MaybeEquivalence<A, B>, TupleElement22: MaybeEquivalence<A, B>, TupleElement23: MaybeEquivalence<A, B>, TupleElement24: MaybeEquivalence<A, B>, TupleElement25: MaybeEquivalence<A, B>, TupleElement26: MaybeEquivalence<A, B>, TupleElement27: MaybeEquivalence<A, B>, TupleElement28: MaybeEquivalence<A, B>, TupleElement29: MaybeEquivalence<A, B>,

source§

impl<Prefix, AssetId, ConvertAssetId, L> MaybeEquivalence<L, AssetId> for AsPrefixedGeneralIndex<Prefix, AssetId, ConvertAssetId, L>
where Prefix: Get<L>, AssetId: Clone, ConvertAssetId: MaybeEquivalence<u128, AssetId>, L: TryInto<Location> + TryFrom<Location> + Clone,

source§

fn convert(id: &L) -> Option<AssetId>

source§

fn convert_back(what: &AssetId) -> Option<L>

source§

impl<Target> MaybeEquivalence<Location, Target> for WithLatestLocationConverter<Target>
where Target: TryInto<Location> + TryFrom<Location> + Clone,

Implementors§

source§

impl<A, B> MaybeEquivalence<A, B> for ConvertInto
where A: Clone + Into<B>, B: Clone + Into<A>,

source§

impl<A, B> MaybeEquivalence<A, B> for TryConvertInto
where A: Clone + TryInto<B>, B: Clone + TryInto<A>,

source§

impl<T> MaybeEquivalence<T, T> for Identity
where T: Clone,

source§

impl<X, Y, T> MaybeEquivalence<X, Y> for ConvertToValue<T>
where T: Get<Y>,