pub struct VariantBindings {
pub variants: Vec<VariantBinding>,
}
Fields§
§variants: Vec<VariantBinding>
Implementations§
source§impl VariantBindings
impl VariantBindings
pub fn new<'a>(data: impl IntoIterator<Item = &'a Variant>) -> Self
pub fn build_coprod_type<R: ToTokens>( &self, f: impl Fn(&VariantBinding) -> R, ) -> TokenStream2
pub fn build_coprod_constrs<R: ToTokens>( &self, f: impl Fn(&VariantBinding) -> R, ) -> Vec<TokenStream2>
pub fn build_variant_constrs<R: ToTokens>( &self, f: impl Fn(&VariantBinding) -> R, ) -> Vec<R>
pub fn build_coprod_unreachable_arm(&self, deref: bool) -> TokenStream2
Auto Trait Implementations§
impl Freeze for VariantBindings
impl RefUnwindSafe for VariantBindings
impl !Send for VariantBindings
impl !Sync for VariantBindings
impl Unpin for VariantBindings
impl UnwindSafe for VariantBindings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more