Enum mycelium_bitfield::example::TestEnum
source · [−]#[repr(u8)]
pub enum TestEnum {
Foo,
Bar,
Baz,
Qux,
}
Available on
trace_macros
only.Expand description
An example enum type implementing FromBits
.
Variants
Foo
Bar
Baz
Qux
Trait Implementations
sourceimpl FromBits<u64> for TestEnum
impl FromBits<u64> for TestEnum
type Error = Infallible
type Error = Infallible
The error type returned by Self::try_from_bits
when an invalid bit
pattern is encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for TestEnum
impl Send for TestEnum
impl Sync for TestEnum
impl Unpin for TestEnum
impl UnwindSafe for TestEnum
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