pub struct IsReprC(/* private fields */);
Expand description
Marker used to promise that some type fulfills all rules for the “ReprC”-optimization.
Implementations§
source§impl IsReprC
impl IsReprC
sourcepub unsafe fn yes() -> IsReprC
pub unsafe fn yes() -> IsReprC
§SAFETY:
Must only ever be created and immediately returned from ReprC::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 ReprC trait and repr_c_optimization_safe.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IsReprC
impl Send for IsReprC
impl Sync for IsReprC
impl Unpin for IsReprC
impl UnwindSafe for IsReprC
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