struct UnsizedField<'a> {
kind: UnsizedFieldKind<'a>,
field: FieldInfo<'a>,
}
Fields§
§kind: UnsizedFieldKind<'a>
§field: FieldInfo<'a>
Implementations§
source§impl<'a> UnsizedField<'a>
impl<'a> UnsizedField<'a>
fn new( field: &'a Field, index: usize, custom_varule_ident: Option<Ident>, ) -> Result<Self, String>
sourcefn encode_func(
&self,
method: TokenStream2,
additional_args: TokenStream2,
) -> TokenStream2
fn encode_func( &self, method: TokenStream2, additional_args: TokenStream2, ) -> TokenStream2
Call <Self as EncodeAsVarULE<V>>::#method(self.accessor #additional_args)
after adjusting
Self and self.accessor to be the right types
sourcefn encodeable_tokens(&self) -> (TokenStream2, TokenStream2)
fn encodeable_tokens(&self) -> (TokenStream2, TokenStream2)
Returns (encodeable_ty, encodeable)
Trait Implementations§
source§impl<'a> Clone for UnsizedField<'a>
impl<'a> Clone for UnsizedField<'a>
source§fn clone(&self) -> UnsizedField<'a>
fn clone(&self) -> UnsizedField<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for UnsizedField<'a>
impl<'a> RefUnwindSafe for UnsizedField<'a>
impl<'a> !Send for UnsizedField<'a>
impl<'a> !Sync for UnsizedField<'a>
impl<'a> Unpin for UnsizedField<'a>
impl<'a> UnwindSafe for UnsizedField<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)