#[repr(u8)]pub enum Uint8Limits {
Min = 0,
Max = 255,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for Uint8Limits
impl Clone for Uint8Limits
Source§fn clone(&self) -> Uint8Limits
fn clone(&self) -> Uint8Limits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Uint8Limits
Source§impl Debug for Uint8Limits
impl Debug for Uint8Limits
impl Eq for Uint8Limits
Source§impl From<Uint8Limits> for u8
impl From<Uint8Limits> for u8
Source§fn from(val: Uint8Limits) -> Self
fn from(val: Uint8Limits) -> Self
Converts to this type from the input type.
Source§impl Hash for Uint8Limits
impl Hash for Uint8Limits
impl IntoBytes for Uint8Limitswhere
(): PaddingFree<Self, { _ }>,
Source§impl PartialEq for Uint8Limits
impl PartialEq for Uint8Limits
Source§fn eq(&self, other: &Uint8Limits) -> bool
fn eq(&self, other: &Uint8Limits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Uint8Limits
Source§impl TryFromBytes for Uint8Limits
impl TryFromBytes for Uint8Limits
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for Uint8Limits
impl RefUnwindSafe for Uint8Limits
impl Send for Uint8Limits
impl Sync for Uint8Limits
impl Unpin for Uint8Limits
impl UnsafeUnpin for Uint8Limits
impl UnwindSafe for Uint8Limits
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