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, u64
  • i8, i16, i32, i64
  • f32, f64
  • String (through StringConverter)
  • Option<T> where T can be stored
  • Result<T, F> where T and F can be stored
  • [T; 0] through [T; 32] where T can be stored
  • () (the unit type)

Required Methods

Reads a value from the given reader.

Writes this value to the given writer.

Implementations on Foreign Types

impl BitStore for bool
[src]

[src]

[src]

impl BitStore for u8
[src]

[src]

[src]

impl BitStore for i8
[src]

[src]

[src]

impl BitStore for u16
[src]

[src]

[src]

impl BitStore for i16
[src]

[src]

[src]

impl BitStore for u32
[src]

[src]

[src]

impl BitStore for i32
[src]

[src]

[src]

impl BitStore for u64
[src]

[src]

[src]

impl BitStore for i64
[src]

[src]

[src]

impl BitStore for f32
[src]

[src]

[src]

impl BitStore for f64
[src]

[src]

[src]

impl BitStore for String
[src]

[src]

[src]

impl<T: BitStore> BitStore for Option<T>
[src]

[src]

[src]

impl<T: BitStore, F: BitStore> BitStore for Result<T, F>
[src]

[src]

[src]

impl<T> BitStore for [T; 0]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 1]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 2]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 3]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 4]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 5]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 6]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 7]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 8]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 9]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 10]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 11]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 12]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 13]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 14]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 15]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 16]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 17]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 18]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 19]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 20]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 21]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 22]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 23]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 24]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 25]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 26]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 27]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 28]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 29]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 30]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 31]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 32]
[src]

[src]

[src]

impl BitStore for ()
[src]

[src]

[src]

Implementors