Struct bit_manager::data::BitMask
[−]
[src]
pub struct BitMask { /* fields omitted */ }
A struct that allows the reading and writing of non-bit-length numbers
Methods
impl BitMask
[src]
fn bits(bits: u8) -> BitMask
[src]
Creates a mask with the given number of bits.
fn bytes(bytes: u8) -> BitMask
[src]
Creates a mask with the given number of bytes.
Trait Implementations
impl Debug for BitMask
[src]
impl BitStore for BitMask
[src]
fn read_from<R: BitRead>(reader: &mut R) -> Result<Self>
[src]
Reads a value from the given reader.
fn write_to<W: BitWrite>(&self, writer: &mut W) -> Result<()>
[src]
Writes this value to the given writer.
impl BitConvert<u64> for BitMask
[src]
fn read_value_from<R: BitRead>(&self, reader: &mut R) -> Result<u64>
[src]
Reads a value from the given reader.
fn write_value_to<W: BitWrite>(&self, value: &u64, writer: &mut W) -> Result<()>
[src]
Writes this value to the given writer.
impl BitConvert<u32> for BitMask
[src]
fn read_value_from<R: BitRead>(&self, reader: &mut R) -> Result<u32>
[src]
Reads a value from the given reader.
fn write_value_to<W: BitWrite>(&self, value: &u32, writer: &mut W) -> Result<()>
[src]
Writes this value to the given writer.
impl BitConvert<u16> for BitMask
[src]
fn read_value_from<R: BitRead>(&self, reader: &mut R) -> Result<u16>
[src]
Reads a value from the given reader.
fn write_value_to<W: BitWrite>(&self, value: &u16, writer: &mut W) -> Result<()>
[src]
Writes this value to the given writer.