pub struct Zeroable;
Trait Implementations§
source§impl Derivable for Zeroable
impl Derivable for Zeroable
fn ident(_: &DeriveInput, crate_name: &TokenStream) -> Result<Path>
fn check_attributes(ty: &Data, attributes: &[Attribute]) -> Result<()>
fn asserts(input: &DeriveInput, crate_name: &TokenStream) -> Result<TokenStream>
fn explicit_bounds_attribute_name() -> Option<&'static str>
source§fn perfect_derive_fields(input: &DeriveInput) -> Option<Fields>
fn perfect_derive_fields(input: &DeriveInput) -> Option<Fields>
If this trait has a custom meaning for “perfect derive”, this function
should be overridden to return
Some
. Read morefn implies_trait(_crate_name: &TokenStream) -> Option<TokenStream>
fn trait_impl( _input: &DeriveInput, _crate_name: &TokenStream, ) -> Result<(TokenStream, TokenStream)>
fn requires_where_clause() -> bool
Auto Trait Implementations§
impl Freeze for Zeroable
impl RefUnwindSafe for Zeroable
impl Send for Zeroable
impl Sync for Zeroable
impl Unpin for Zeroable
impl UnwindSafe for Zeroable
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