pub struct AssertPacked<T: ?Sized>(/* private fields */);
Expand description
Transparent wrapper that asserts that a type is Packed
Implementations§
Trait Implementations§
Source§impl<T: Clone + ?Sized> Clone for AssertPacked<T>
impl<T: Clone + ?Sized> Clone for AssertPacked<T>
Source§fn clone(&self) -> AssertPacked<T>
fn clone(&self) -> AssertPacked<T>
Returns a duplicate 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 moreSource§impl<T: ?Sized> Deref for AssertPacked<T>
impl<T: ?Sized> Deref for AssertPacked<T>
Source§impl<T: Ord + ?Sized> Ord for AssertPacked<T>
impl<T: Ord + ?Sized> Ord for AssertPacked<T>
Source§fn cmp(&self, other: &AssertPacked<T>) -> Ordering
fn cmp(&self, other: &AssertPacked<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + ?Sized> PartialOrd for AssertPacked<T>
impl<T: PartialOrd + ?Sized> PartialOrd for AssertPacked<T>
impl<T: Copy + ?Sized> Copy for AssertPacked<T>
impl<T: Eq + ?Sized> Eq for AssertPacked<T>
impl<T: ?Sized> Packed for AssertPacked<T>
impl<T: ?Sized> StructuralPartialEq for AssertPacked<T>
Auto Trait Implementations§
impl<T> Freeze for AssertPacked<T>
impl<T> RefUnwindSafe for AssertPacked<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for AssertPacked<T>
impl<T> Sync for AssertPacked<T>
impl<T> Unpin for AssertPacked<T>
impl<T> UnwindSafe for AssertPacked<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