[][src]Struct frunk_proc_macro_helpers::VariantBindings

pub struct VariantBindings {
    pub variants: Vec<VariantBinding>,
}

Fields

variants: Vec<VariantBinding>

Methods

impl VariantBindings[src]

pub fn new<'a>(data: impl IntoIterator<Item = &'a Variant>) -> Self[src]

pub fn build_coprod_type<R: ToTokens>(
    &self,
    f: impl Fn(&VariantBinding) -> R
) -> TokenStream2
[src]

pub fn build_coprod_constrs<R: ToTokens>(
    &self,
    f: impl Fn(&VariantBinding) -> R
) -> Vec<TokenStream2>
[src]

pub fn build_variant_constrs<R: ToTokens>(
    &self,
    f: impl Fn(&VariantBinding) -> R
) -> Vec<R>
[src]

pub fn build_coprod_unreachable_arm(&self, deref: bool) -> TokenStream2[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.