#[repr(C)]pub struct AssertZeroable<T: ?Sized>(/* private fields */);
Expand description
A marker type representing that T
is Zeroable
.
This type is zero-sized.
Implementations§
Source§impl<T> AssertZeroable<T>
impl<T> AssertZeroable<T>
Source§impl<T> AssertZeroable<T>
impl<T> AssertZeroable<T>
Trait Implementations§
Source§impl<T: ?Sized> Clone for AssertZeroable<T>
impl<T: ?Sized> Clone for AssertZeroable<T>
Source§impl<T: ?Sized> Debug for AssertZeroable<T>
impl<T: ?Sized> Debug for AssertZeroable<T>
Source§impl<T: ?Sized> Hash for AssertZeroable<T>
impl<T: ?Sized> Hash for AssertZeroable<T>
Source§impl<T: ?Sized> Ord for AssertZeroable<T>
impl<T: ?Sized> Ord for AssertZeroable<T>
Source§impl<T: ?Sized> PartialEq for AssertZeroable<T>
impl<T: ?Sized> PartialEq for AssertZeroable<T>
Source§impl<T: ?Sized> PartialOrd for AssertZeroable<T>
impl<T: ?Sized> PartialOrd for AssertZeroable<T>
Source§impl<T> Zeroable for AssertZeroable<T>where
T: Zeroable,
impl<T> Zeroable for AssertZeroable<T>where
T: Zeroable,
impl<T: ?Sized> Copy for AssertZeroable<T>
impl<T: ?Sized> Eq for AssertZeroable<T>
impl<T> Pod for AssertZeroable<T>where
T: Pod,
Auto Trait Implementations§
impl<T> Freeze for AssertZeroable<T>where
T: ?Sized,
impl<T> RefUnwindSafe for AssertZeroable<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for AssertZeroable<T>
impl<T> Sync for AssertZeroable<T>
impl<T> Unpin for AssertZeroable<T>
impl<T> UnwindSafe for AssertZeroable<T>where
T: UnwindSafe + ?Sized,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<This> GetAssertZeroable for This
impl<This> GetAssertZeroable for This
Source§const GET: AssertZeroable<Self> = AssertZeroable::NEW
const GET: AssertZeroable<Self> = AssertZeroable::NEW
Gets an
AssertZeroable<Self>
,
a marker type representing that T
is Zeroable