pub struct IsTransparentWrapper<P, O>(/* private fields */);Expand description
Marker struct to denote that P is transparently wrapped in O.
The only way to construct it is by accessing its associated constant which only exists when the
bound bytemuck::TransparentWrapper holds as required. This encodes a type-level set and is
a workaround for such bounds not yet being allowed in const fn. Expect this type to be
deprecated sooner or later.
Implementations§
Source§impl<P, O: TransparentWrapper<P>> IsTransparentWrapper<P, O>
impl<P, O: TransparentWrapper<P>> IsTransparentWrapper<P, O>
Auto Trait Implementations§
impl<P, O> Freeze for IsTransparentWrapper<P, O>
impl<P, O> RefUnwindSafe for IsTransparentWrapper<P, O>where
P: RefUnwindSafe,
O: RefUnwindSafe,
impl<P, O> Send for IsTransparentWrapper<P, O>
impl<P, O> Sync for IsTransparentWrapper<P, O>
impl<P, O> Unpin for IsTransparentWrapper<P, O>
impl<P, O> UnsafeUnpin for IsTransparentWrapper<P, O>
impl<P, O> UnwindSafe for IsTransparentWrapper<P, O>where
P: UnwindSafe,
O: UnwindSafe,
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