Trait bit_manager::data::BitStore
[−]
[src]
pub trait BitStore: Sized { fn read_from<R: BitRead>(reader: &mut R) -> Result<Self>; fn write_to<W: BitWrite>(&self, writer: &mut W) -> Result<()>; }
A trait for storing a value directly
Storage Primitives
bool,u8(directly implemented)u16,u32,u64i8,i16,i32,i64f32,f64String(throughStringConverter)Option<T>whereTcan be storedResult<T, F>whereTandFcan be stored[T; 0]through[T; 32]whereTcan be stored()(the unit type)
Required Methods
fn read_from<R: BitRead>(reader: &mut R) -> Result<Self>
Reads a value from the given reader.
fn write_to<W: BitWrite>(&self, writer: &mut W) -> Result<()>
Writes this value to the given writer.
Implementations on Foreign Types
impl BitStore for bool[src]
impl BitStore for u8[src]
impl BitStore for i8[src]
impl BitStore for u16[src]
impl BitStore for i16[src]
impl BitStore for u32[src]
impl BitStore for i32[src]
impl BitStore for u64[src]
impl BitStore for i64[src]
impl BitStore for f32[src]
impl BitStore for f64[src]
impl BitStore for String[src]
impl<T: BitStore> BitStore for Option<T>[src]
impl<T: BitStore, F: BitStore> BitStore for Result<T, F>[src]
impl<T> BitStore for [T; 0][src]
impl<T: BitStore> BitStore for [T; 1][src]
impl<T: BitStore> BitStore for [T; 2][src]
impl<T: BitStore> BitStore for [T; 3][src]
impl<T: BitStore> BitStore for [T; 4][src]
impl<T: BitStore> BitStore for [T; 5][src]
impl<T: BitStore> BitStore for [T; 6][src]
impl<T: BitStore> BitStore for [T; 7][src]
impl<T: BitStore> BitStore for [T; 8][src]
impl<T: BitStore> BitStore for [T; 9][src]
impl<T: BitStore> BitStore for [T; 10][src]
impl<T: BitStore> BitStore for [T; 11][src]
impl<T: BitStore> BitStore for [T; 12][src]
impl<T: BitStore> BitStore for [T; 13][src]
impl<T: BitStore> BitStore for [T; 14][src]
impl<T: BitStore> BitStore for [T; 15][src]
impl<T: BitStore> BitStore for [T; 16][src]
impl<T: BitStore> BitStore for [T; 17][src]
impl<T: BitStore> BitStore for [T; 18][src]
impl<T: BitStore> BitStore for [T; 19][src]
impl<T: BitStore> BitStore for [T; 20][src]
impl<T: BitStore> BitStore for [T; 21][src]
impl<T: BitStore> BitStore for [T; 22][src]
impl<T: BitStore> BitStore for [T; 23][src]
impl<T: BitStore> BitStore for [T; 24][src]
impl<T: BitStore> BitStore for [T; 25][src]
impl<T: BitStore> BitStore for [T; 26][src]
impl<T: BitStore> BitStore for [T; 27][src]
impl<T: BitStore> BitStore for [T; 28][src]
impl<T: BitStore> BitStore for [T; 29][src]
impl<T: BitStore> BitStore for [T; 30][src]
impl<T: BitStore> BitStore for [T; 31][src]
impl<T: BitStore> BitStore for [T; 32][src]
impl BitStore for ()[src]
Implementors
impl BitStore for StringConverterimpl BitStore for BitMask