#[repr(u16)]pub enum EnumWithExpressions {
OrWithLiteral = 3,
OrWithConstant = 5,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EnumWithExpressions
impl Clone for EnumWithExpressions
Source§fn clone(&self) -> EnumWithExpressions
fn clone(&self) -> EnumWithExpressions
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 EnumWithExpressions
Source§impl Debug for EnumWithExpressions
impl Debug for EnumWithExpressions
impl Eq for EnumWithExpressions
Source§impl From<EnumWithExpressions> for u16
impl From<EnumWithExpressions> for u16
Source§fn from(val: EnumWithExpressions) -> Self
fn from(val: EnumWithExpressions) -> Self
Converts to this type from the input type.
Source§impl Hash for EnumWithExpressions
impl Hash for EnumWithExpressions
impl IntoBytes for EnumWithExpressionswhere
(): PaddingFree<Self, { _ }>,
Source§impl PartialEq for EnumWithExpressions
impl PartialEq for EnumWithExpressions
Source§fn eq(&self, other: &EnumWithExpressions) -> bool
fn eq(&self, other: &EnumWithExpressions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnumWithExpressions
Source§impl TryFromBytes for EnumWithExpressions
impl TryFromBytes for EnumWithExpressions
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 EnumWithExpressions
impl RefUnwindSafe for EnumWithExpressions
impl Send for EnumWithExpressions
impl Sync for EnumWithExpressions
impl Unpin for EnumWithExpressions
impl UnsafeUnpin for EnumWithExpressions
impl UnwindSafe for EnumWithExpressions
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