Struct devise_core::Field
source · [−]pub struct Field<'f> {
pub parent: FieldParent<'f>,
pub field: Derived<'f, Field>,
pub index: usize,
}
Fields
parent: FieldParent<'f>
field: Derived<'f, Field>
index: usize
Implementations
sourceimpl<'f> Field<'f>
impl<'f> Field<'f>
pub fn match_ident(self) -> Ident
pub fn accessor(&self) -> TokenStream2
Methods from Deref<Target = Derived<'f, Field>>
pub fn builder<F: Fn(Field<'_>) -> TokenStream2>(&self, f: F) -> TokenStream2
Trait Implementations
impl<'f> Copy for Field<'f>
Auto Trait Implementations
impl<'f> RefUnwindSafe for Field<'f>
impl<'f> !Send for Field<'f>
impl<'f> !Sync for Field<'f>
impl<'f> Unpin for Field<'f>
impl<'f> UnwindSafe for Field<'f>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more