[−][src]Struct orga::store::Splitter
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,