pub struct FieldsGen<'a> {
fields: &'a Fields<Field<'a>>,
allow_unknown_fields: bool,
}
Fields§
§fields: &'a Fields<Field<'a>>
§allow_unknown_fields: bool
Implementations§
source§impl<'a> FieldsGen<'a>
impl<'a> FieldsGen<'a>
pub fn new(fields: &'a Fields<Field<'a>>, allow_unknown_fields: bool) -> Self
sourcepub(super) fn declarations(&self) -> TokenStream
pub(super) fn declarations(&self) -> TokenStream
Create declarations for all the fields in the struct.
sourcepub(super) fn core_loop(&self) -> TokenStream
pub(super) fn core_loop(&self) -> TokenStream
Generate the loop which walks meta items looking for property matches.
pub fn require_fields(&self) -> TokenStream
pub(super) fn initializers(&self) -> TokenStream
Auto Trait Implementations§
impl<'a> Freeze for FieldsGen<'a>
impl<'a> RefUnwindSafe for FieldsGen<'a>
impl<'a> !Send for FieldsGen<'a>
impl<'a> !Sync for FieldsGen<'a>
impl<'a> Unpin for FieldsGen<'a>
impl<'a> UnwindSafe for FieldsGen<'a>
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