[−][src]Struct frunk_proc_macro_helpers::VariantBindings
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]
&self,
f: impl Fn(&VariantBinding) -> R
) -> TokenStream2
pub fn build_coprod_constrs<R: ToTokens>(
&self,
f: impl Fn(&VariantBinding) -> R
) -> Vec<TokenStream2>
[src]
&self,
f: impl Fn(&VariantBinding) -> R
) -> Vec<TokenStream2>
pub fn build_variant_constrs<R: ToTokens>(
&self,
f: impl Fn(&VariantBinding) -> R
) -> Vec<R>
[src]
&self,
f: impl Fn(&VariantBinding) -> R
) -> Vec<R>
pub fn build_coprod_unreachable_arm(&self, deref: bool) -> TokenStream2
[src]
Auto Trait Implementations
impl !RefUnwindSafe for VariantBindings
impl !Send for VariantBindings
impl !Sync for VariantBindings
impl Unpin for VariantBindings
impl UnwindSafe for VariantBindings
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
[src]
type Remainder = Choices
fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U, I> LiftInto<U, I> for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<Source> Sculptor<HNil, HNil> for Source
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,