#[repr(u8)]pub enum EnumWithOneLineComment {
MemberWithOneLineComment = 0,
MemberWithManyLineComment = 1,
}Expand description
Enum with a one-line comment.
Variants§
MemberWithOneLineComment = 0
Enum member with one-line comment.
MemberWithManyLineComment = 1
Enum member with a many-line comment.
Implementations§
Trait Implementations§
Source§impl Clone for EnumWithOneLineComment
impl Clone for EnumWithOneLineComment
Source§fn clone(&self) -> EnumWithOneLineComment
fn clone(&self) -> EnumWithOneLineComment
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 EnumWithOneLineComment
Source§impl Debug for EnumWithOneLineComment
impl Debug for EnumWithOneLineComment
impl Eq for EnumWithOneLineComment
Source§impl From<EnumWithOneLineComment> for u8
impl From<EnumWithOneLineComment> for u8
Source§fn from(val: EnumWithOneLineComment) -> Self
fn from(val: EnumWithOneLineComment) -> Self
Converts to this type from the input type.
Source§impl Hash for EnumWithOneLineComment
impl Hash for EnumWithOneLineComment
impl IntoBytes for EnumWithOneLineCommentwhere
(): PaddingFree<Self, { _ }>,
Source§impl PartialEq for EnumWithOneLineComment
impl PartialEq for EnumWithOneLineComment
Source§fn eq(&self, other: &EnumWithOneLineComment) -> bool
fn eq(&self, other: &EnumWithOneLineComment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnumWithOneLineComment
Source§impl TryFromBytes for EnumWithOneLineComment
impl TryFromBytes for EnumWithOneLineComment
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 EnumWithOneLineComment
impl RefUnwindSafe for EnumWithOneLineComment
impl Send for EnumWithOneLineComment
impl Sync for EnumWithOneLineComment
impl Unpin for EnumWithOneLineComment
impl UnsafeUnpin for EnumWithOneLineComment
impl UnwindSafe for EnumWithOneLineComment
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