Enum mycelium_bitfield::example::AnotherTestEnum
source · [−]#[repr(u8)]
pub enum AnotherTestEnum {
Alice,
Bob,
Charlie,
}
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
Alice
Bob
Charlie
Trait Implementations
sourceimpl Debug for AnotherTestEnum
impl Debug for AnotherTestEnum
sourceimpl FromBits<u64> for AnotherTestEnum
impl FromBits<u64> for AnotherTestEnum
type Error = &'static str
type Error = &'static str
The error type returned by Self::try_from_bits
when an invalid bit
pattern is encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnotherTestEnum
impl Send for AnotherTestEnum
impl Sync for AnotherTestEnum
impl Unpin for AnotherTestEnum
impl UnwindSafe for AnotherTestEnum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more