Trait gclient::ext::sp_runtime::traits::MaybeConvert

pub trait MaybeConvert<A, B> {
    // Required method
    fn maybe_convert(a: A) -> Option<B>;
}
Expand description

Fallible conversion trait returning an Option. Generic over both source and destination types.

Required Methods§

fn maybe_convert(a: A) -> Option<B>

Attempt to make conversion.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<A, B> MaybeConvert<A, B> for ()
where A: Clone,

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

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

§

fn maybe_convert(a: A) -> Option<B>

§

impl<A, B, TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>, TupleElement23: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>, TupleElement23: MaybeConvert<A, B>, TupleElement24: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>, TupleElement23: MaybeConvert<A, B>, TupleElement24: MaybeConvert<A, B>, TupleElement25: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>, TupleElement23: MaybeConvert<A, B>, TupleElement24: MaybeConvert<A, B>, TupleElement25: MaybeConvert<A, B>, TupleElement26: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>, TupleElement23: MaybeConvert<A, B>, TupleElement24: MaybeConvert<A, B>, TupleElement25: MaybeConvert<A, B>, TupleElement26: MaybeConvert<A, B>, TupleElement27: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>, TupleElement23: MaybeConvert<A, B>, TupleElement24: MaybeConvert<A, B>, TupleElement25: MaybeConvert<A, B>, TupleElement26: MaybeConvert<A, B>, TupleElement27: MaybeConvert<A, B>, TupleElement28: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

§

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> MaybeConvert<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 A: Clone, TupleElement0: MaybeConvert<A, B>, TupleElement1: MaybeConvert<A, B>, TupleElement2: MaybeConvert<A, B>, TupleElement3: MaybeConvert<A, B>, TupleElement4: MaybeConvert<A, B>, TupleElement5: MaybeConvert<A, B>, TupleElement6: MaybeConvert<A, B>, TupleElement7: MaybeConvert<A, B>, TupleElement8: MaybeConvert<A, B>, TupleElement9: MaybeConvert<A, B>, TupleElement10: MaybeConvert<A, B>, TupleElement11: MaybeConvert<A, B>, TupleElement12: MaybeConvert<A, B>, TupleElement13: MaybeConvert<A, B>, TupleElement14: MaybeConvert<A, B>, TupleElement15: MaybeConvert<A, B>, TupleElement16: MaybeConvert<A, B>, TupleElement17: MaybeConvert<A, B>, TupleElement18: MaybeConvert<A, B>, TupleElement19: MaybeConvert<A, B>, TupleElement20: MaybeConvert<A, B>, TupleElement21: MaybeConvert<A, B>, TupleElement22: MaybeConvert<A, B>, TupleElement23: MaybeConvert<A, B>, TupleElement24: MaybeConvert<A, B>, TupleElement25: MaybeConvert<A, B>, TupleElement26: MaybeConvert<A, B>, TupleElement27: MaybeConvert<A, B>, TupleElement28: MaybeConvert<A, B>, TupleElement29: MaybeConvert<A, B>,

§

fn maybe_convert(a: A) -> Option<B>

Implementors§

§

impl<A, B> MaybeConvert<A, B> for ConvertInto
where A: Into<B>,

§

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

§

impl<T> MaybeConvert<T, T> for Identity

§

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