pub trait BWrite<'a, W> {
const WIDTH: u8 = 1u8;
// Required methods
fn width(&self) -> u8;
fn offset(&self) -> u8;
fn bit(self, value: bool) -> &'a mut W;
fn variant(self, variant: bool) -> &'a mut W;
fn set_bit(self) -> &'a mut W;
fn clear_bit(self) -> &'a mut W;
}Expand description
BitWriter methods as a trait.
Provided Associated Constants§
Required Methods§
fn width(&self) -> u8
fn offset(&self) -> u8
fn bit(self, value: bool) -> &'a mut W
fn variant(self, variant: bool) -> &'a mut W
fn set_bit(self) -> &'a mut W
fn clear_bit(self) -> &'a mut W
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.