[−][src]Struct frunk_proc_macro_helpers::FieldBindings
Represents the binding of a struct or enum variant's fields to a corresponding set of similarly named local variables.
Fields
type_: StructType
fields: Vec<FieldBinding>
Methods
impl FieldBindings
[src]
pub fn new(fields: &Fields) -> Self
[src]
pub fn build_type_constr<R: ToTokens>(
&self,
f: impl Fn(&FieldBinding) -> R
) -> TokenStream2
[src]
&self,
f: impl Fn(&FieldBinding) -> R
) -> TokenStream2
Builds a type constructor for use with structs or enum variants. Does not include the name of the type or variant.
pub fn build_hlist_type<R: ToTokens>(
&self,
f: impl Fn(&FieldBinding) -> R
) -> TokenStream2
[src]
&self,
f: impl Fn(&FieldBinding) -> R
) -> TokenStream2
pub fn build_hlist_constr<R: ToTokens>(
&self,
f: impl Fn(&FieldBinding) -> R
) -> TokenStream2
[src]
&self,
f: impl Fn(&FieldBinding) -> R
) -> TokenStream2
Auto Trait Implementations
impl !RefUnwindSafe for FieldBindings
impl !Send for FieldBindings
impl !Sync for FieldBindings
impl Unpin for FieldBindings
impl UnwindSafe for FieldBindings
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>,