Trait bit_manager::data::BitConvert
[−]
[src]
pub trait BitConvert<T>: Sized { fn read_value_from<R: BitRead>(&self, reader: &mut R) -> Result<T>; fn write_value_to<W: BitWrite>(
&self,
value: &T,
writer: &mut W
) -> Result<()>; }
A trait for a converter that allows the reading and writing of types though a converter
Required Methods
fn read_value_from<R: BitRead>(&self, reader: &mut R) -> Result<T>
Reads a value from the given reader.
fn write_value_to<W: BitWrite>(&self, value: &T, writer: &mut W) -> Result<()>
Writes this value to the given writer.