[][src]Struct orga::store::Splitter

pub struct Splitter<S: Read> { /* fields omitted */ }

A store wrapper which can be used to create multiple substores, which all read from and write to the same underlying store with a unique prefix per substore.

Implementations

impl<S: Read> Splitter<S>[src]

pub fn new(store: S) -> Self[src]

Constructs a Splitter for the given store.

pub fn split(&mut self) -> Prefixed<Shared<S>>[src]

Creates and returns a new substore, which is a prefixed store that shares a reference to the Splitter's inner store. Each call to split will increment the internal index and create a substore with the next value, in order from 0 to 255 (inclusive).

split can not be called more than 255 times on one splitter instance.

Auto Trait Implementations

impl<S> !RefUnwindSafe for Splitter<S>

impl<S> !Send for Splitter<S>

impl<S> !Sync for Splitter<S>

impl<S> Terminated for Splitter<S> where
    S: Terminated

impl<S> Unpin for Splitter<S>

impl<S> !UnwindSafe for Splitter<S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,