pub(crate) enum AlignRepr<Packed> {
Packed(Packed),
Align(NonZeroU32),
}Expand description
repr(packed(...)) or repr(align(...))
Variants§
Packed(Packed)
Align(NonZeroU32)
Trait Implementations§
Source§impl<Pcked: With<NonZeroU32>> TryFrom<RawRepr> for AlignRepr<Pcked>
impl<Pcked: With<NonZeroU32>> TryFrom<RawRepr> for AlignRepr<Pcked>
Source§type Error = FromRawReprError<UnsupportedReprError>
type Error = FromRawReprError<UnsupportedReprError>
The type returned in the event of a conversion error.
Source§fn try_from(
raw: RawRepr,
) -> Result<AlignRepr<Pcked>, FromRawReprError<UnsupportedReprError>>
fn try_from( raw: RawRepr, ) -> Result<AlignRepr<Pcked>, FromRawReprError<UnsupportedReprError>>
Performs the conversion.
Auto Trait Implementations§
impl<Packed> Freeze for AlignRepr<Packed>where
Packed: Freeze,
impl<Packed> RefUnwindSafe for AlignRepr<Packed>where
Packed: RefUnwindSafe,
impl<Packed> Send for AlignRepr<Packed>where
Packed: Send,
impl<Packed> Sync for AlignRepr<Packed>where
Packed: Sync,
impl<Packed> Unpin for AlignRepr<Packed>where
Packed: Unpin,
impl<Packed> UnwindSafe for AlignRepr<Packed>where
Packed: 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