pub struct IsPacked(/* private fields */);Expand description
Marker used to promise that some type fulfills all rules for the “Packed”-optimization.
Implementations§
source§impl IsPacked
 
impl IsPacked
sourcepub unsafe fn yes() -> IsPacked
 
pub unsafe fn yes() -> IsPacked
§Safety
Must only ever be created and immediately returned from Packed::repr_c_optimization_safe. Any other use, such that the value could conceivably be smuggled to a repr_c_optimization_safe-implementation is forbidden.
Also, see description of Packed trait and repr_c_optimization_safe.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IsPacked
impl RefUnwindSafe for IsPacked
impl Send for IsPacked
impl Sync for IsPacked
impl Unpin for IsPacked
impl UnwindSafe for IsPacked
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