pub(crate) struct ImplBlockBuilder<'a, D: DataExt> {
pub(crate) input: &'a DeriveInput,
pub(crate) data: &'a D,
pub(crate) trt: Trait,
pub(crate) field_type_trait_bounds: FieldBounds<'a>,
pub(crate) zerocopy_crate: &'a Path,
pub(crate) self_type_trait_bounds: SelfBounds<'a>,
pub(crate) padding_check: Option<PaddingCheck>,
pub(crate) inner_extras: Option<TokenStream>,
pub(crate) outer_extras: Option<TokenStream>,
}Fields§
§input: &'a DeriveInput§data: &'a D§trt: Trait§field_type_trait_bounds: FieldBounds<'a>§zerocopy_crate: &'a Path§self_type_trait_bounds: SelfBounds<'a>§padding_check: Option<PaddingCheck>§inner_extras: Option<TokenStream>§outer_extras: Option<TokenStream>Implementations§
Source§impl<'a, D: DataExt> ImplBlockBuilder<'a, D>
impl<'a, D: DataExt> ImplBlockBuilder<'a, D>
pub(crate) fn new( input: &'a DeriveInput, data: &'a D, trt: Trait, field_type_trait_bounds: FieldBounds<'a>, zerocopy_crate: &'a Path, ) -> Self
pub(crate) fn self_type_trait_bounds( self, self_type_trait_bounds: SelfBounds<'a>, ) -> Self
pub(crate) fn padding_check<P: Into<Option<PaddingCheck>>>( self, padding_check: P, ) -> Self
pub(crate) fn inner_extras(self, inner_extras: TokenStream) -> Self
pub(crate) fn outer_extras<T: Into<Option<TokenStream>>>( self, outer_extras: T, ) -> Self
pub(crate) fn build(self) -> TokenStream
Auto Trait Implementations§
impl<'a, D> Freeze for ImplBlockBuilder<'a, D>
impl<'a, D> RefUnwindSafe for ImplBlockBuilder<'a, D>where
D: RefUnwindSafe,
impl<'a, D> !Send for ImplBlockBuilder<'a, D>
impl<'a, D> !Sync for ImplBlockBuilder<'a, D>
impl<'a, D> Unpin for ImplBlockBuilder<'a, D>
impl<'a, D> UnwindSafe for ImplBlockBuilder<'a, D>where
D: RefUnwindSafe,
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