Struct image_texel::texels::IsTransparentWrapper
source · [−]pub struct IsTransparentWrapper<P, O>(_);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
sourceimpl<P, O: TransparentWrapper<P>> IsTransparentWrapper<P, O>
impl<P, O: TransparentWrapper<P>> IsTransparentWrapper<P, O>
Auto Trait Implementations
impl<P, O> RefUnwindSafe for IsTransparentWrapper<P, O> where
O: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, O> Send for IsTransparentWrapper<P, O> where
O: Send,
P: Send,
impl<P, O> Sync for IsTransparentWrapper<P, O> where
O: Sync,
P: Sync,
impl<P, O> Unpin for IsTransparentWrapper<P, O> where
O: Unpin,
P: Unpin,
impl<P, O> UnwindSafe for IsTransparentWrapper<P, O> where
O: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more