struct UnsizedFields<'a> {
fields: Vec<UnsizedField<'a>>,
}
Fields§
§fields: Vec<UnsizedField<'a>>
Implementations§
source§impl<'a> UnsizedFields<'a>
impl<'a> UnsizedFields<'a>
fn new(fields: Vec<UnsizedField<'a>>) -> Self
fn varule_ty(&self) -> TokenStream2
fn varule_accessor(&self) -> TokenStream2
fn varule_setter(&self) -> TokenStream2
fn varule_vis(&self) -> TokenStream2
fn has_zf(&self) -> bool
fn encode_write(&self, out: TokenStream2) -> TokenStream2
fn encode_len(&self) -> TokenStream2
sourcefn push_zf_setters(&self, lt: &Lifetime, field_inits: &mut Vec<TokenStream2>)
fn push_zf_setters(&self, lt: &Lifetime, field_inits: &mut Vec<TokenStream2>)
Constructs ZeroFrom setters for each field of the stack type
fn maybe_multi_getters(&self) -> Option<TokenStream2>
sourcefn varule_validator(&self) -> Option<TokenStream2>
fn varule_validator(&self) -> Option<TokenStream2>
In case this needs custom validation code, return it
The code will validate a variable known as last_field_bytes
Auto Trait Implementations§
impl<'a> Freeze for UnsizedFields<'a>
impl<'a> RefUnwindSafe for UnsizedFields<'a>
impl<'a> !Send for UnsizedFields<'a>
impl<'a> !Sync for UnsizedFields<'a>
impl<'a> Unpin for UnsizedFields<'a>
impl<'a> UnwindSafe for UnsizedFields<'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