#[repr(u8)]pub enum AnotherTestEnum {
Alice = 8,
Bob = 12,
Charlie = 14,
}
Available on
trace_macros
only.Expand description
Another example enum type implementing FromBits
.
This one has a fallible FromBits::try_from_bits
method, because some bit
patterns are not valid enum variants.
Variants§
Trait Implementations§
source§impl Debug for AnotherTestEnum
impl Debug for AnotherTestEnum
Auto Trait Implementations§
impl Freeze for AnotherTestEnum
impl RefUnwindSafe for AnotherTestEnum
impl Send for AnotherTestEnum
impl Sync for AnotherTestEnum
impl Unpin for AnotherTestEnum
impl UnwindSafe for AnotherTestEnum
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