pub struct U8<T: From<u8>>(pub T);Expand description
Wrapper around type that may be converted from u8
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: From<u8>, U: Fundamental> AsPrimitive<U8<T>> for U
impl<T: From<u8>, U: Fundamental> AsPrimitive<U8<T>> for U
fn as_primitive(self) -> U8<T>
impl<T: Eq + From<u8>> Eq for U8<T>
Source§impl<T: From<u8>> FromBeBytes<{ size_of::<[<$ty:lower>]>() }> for U8<T>
impl<T: From<u8>> FromBeBytes<{ size_of::<[<$ty:lower>]>() }> for U8<T>
fn from_be_bytes(bytes: [u8; 1]) -> Self
Source§impl<T: From<u8>> FromLeBytes<{ size_of::<[<$ty:lower>]>() }> for U8<T>
impl<T: From<u8>> FromLeBytes<{ size_of::<[<$ty:lower>]>() }> for U8<T>
fn from_le_bytes(bytes: [u8; 1]) -> Self
impl<T: PartialEq + From<u8>> StructuralPartialEq for U8<T>
Auto Trait Implementations§
impl<T> Freeze for U8<T>where
T: Freeze,
impl<T> RefUnwindSafe for U8<T>where
T: RefUnwindSafe,
impl<T> Send for U8<T>where
T: Send,
impl<T> Sync for U8<T>where
T: Sync,
impl<T> Unpin for U8<T>where
T: Unpin,
impl<T> UnsafeUnpin for U8<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for U8<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsPrimitive<()> for T
impl<T> AsPrimitive<()> for T
fn as_primitive(self)
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