EnumField

Trait EnumField 

Source
pub trait EnumField {
    // Required methods
    fn into_bits(self) -> u8;
    fn from_bits(bits: u8) -> Self;
}
Expand description

A trait for certain multi-bit register fields that are represented as enums.

Required Methods§

Source

fn into_bits(self) -> u8

Convert the field to its bits representation.

Source

fn from_bits(bits: u8) -> Self

Convert bits to the field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§