pub(crate) enum CompoundRepr<Prim> {
C,
Rust,
Primitive(Prim),
}Expand description
A compound representation: repr(C), repr(Rust), or repr(Int).
Variants§
Trait Implementations§
Source§impl<Prim: With<PrimitiveRepr>> TryFrom<RawRepr> for CompoundRepr<Prim>
impl<Prim: With<PrimitiveRepr>> TryFrom<RawRepr> for CompoundRepr<Prim>
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<CompoundRepr<Prim>, FromRawReprError<UnsupportedReprError>>
fn try_from( raw: RawRepr, ) -> Result<CompoundRepr<Prim>, FromRawReprError<UnsupportedReprError>>
Performs the conversion.
Auto Trait Implementations§
impl<Prim> Freeze for CompoundRepr<Prim>where
Prim: Freeze,
impl<Prim> RefUnwindSafe for CompoundRepr<Prim>where
Prim: RefUnwindSafe,
impl<Prim> Send for CompoundRepr<Prim>where
Prim: Send,
impl<Prim> Sync for CompoundRepr<Prim>where
Prim: Sync,
impl<Prim> Unpin for CompoundRepr<Prim>where
Prim: Unpin,
impl<Prim> UnwindSafe for CompoundRepr<Prim>where
Prim: 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