pub enum StoreSwitch<A, B> {
A(A),
B(B),
}Expand description
Variants§
Trait Implementations§
Source§impl<A, B, K, V> AppendableStore for StoreSwitch<A, B>
impl<A, B, K, V> AppendableStore for StoreSwitch<A, B>
Source§impl<A, B, K, V> AsyncAppendableStore for StoreSwitch<A, B>where
K: Ord,
A: AsyncAppendableStore<Key = K, Value = V>,
B: AsyncAppendableStore<Key = K, Value = V>,
impl<A, B, K, V> AsyncAppendableStore for StoreSwitch<A, B>where
K: Ord,
A: AsyncAppendableStore<Key = K, Value = V>,
B: AsyncAppendableStore<Key = K, Value = V>,
Source§impl<A, B, K, V> AsyncOrderedStoreRead for StoreSwitch<A, B>where
K: Ord,
A: AsyncOrderedStoreRead<Key = K, Value = V>,
B: AsyncOrderedStoreRead<Key = K, Value = V>,
impl<A, B, K, V> AsyncOrderedStoreRead for StoreSwitch<A, B>where
K: Ord,
A: AsyncOrderedStoreRead<Key = K, Value = V>,
B: AsyncOrderedStoreRead<Key = K, Value = V>,
Source§impl<A, B, K, V> AsyncSearchableStoreRead for StoreSwitch<A, B>where
K: Ord,
A: AsyncSearchableStoreRead<Key = K, Value = V>,
B: AsyncSearchableStoreRead<Key = K, Value = V>,
impl<A, B, K, V> AsyncSearchableStoreRead for StoreSwitch<A, B>where
K: Ord,
A: AsyncSearchableStoreRead<Key = K, Value = V>,
B: AsyncSearchableStoreRead<Key = K, Value = V>,
Source§impl<A, B, K, V> AsyncStoreRead for StoreSwitch<A, B>where
A: AsyncStoreRead<Key = K, Value = V>,
B: AsyncStoreRead<Key = K, Value = V>,
impl<A, B, K, V> AsyncStoreRead for StoreSwitch<A, B>where
A: AsyncStoreRead<Key = K, Value = V>,
B: AsyncStoreRead<Key = K, Value = V>,
Source§impl<A, B, K, V> AsyncStoreWrite for StoreSwitch<A, B>where
A: AsyncStoreWrite<Key = K, Value = V>,
B: AsyncStoreWrite<Key = K, Value = V>,
impl<A, B, K, V> AsyncStoreWrite for StoreSwitch<A, B>where
A: AsyncStoreWrite<Key = K, Value = V>,
B: AsyncStoreWrite<Key = K, Value = V>,
Source§impl<A, B, K, V> OrderedStoreRead for StoreSwitch<A, B>
impl<A, B, K, V> OrderedStoreRead for StoreSwitch<A, B>
Source§impl<A, B, K, V> SearchableStoreRead for StoreSwitch<A, B>where
K: Ord,
A: SearchableStoreRead<Key = K, Value = V>,
B: SearchableStoreRead<Key = K, Value = V>,
impl<A, B, K, V> SearchableStoreRead for StoreSwitch<A, B>where
K: Ord,
A: SearchableStoreRead<Key = K, Value = V>,
B: SearchableStoreRead<Key = K, Value = V>,
Source§impl<A, B, K, V> StoreBase for StoreSwitch<A, B>
impl<A, B, K, V> StoreBase for StoreSwitch<A, B>
Source§impl<A, B, K, V> StoreRead for StoreSwitch<A, B>
impl<A, B, K, V> StoreRead for StoreSwitch<A, B>
Source§impl<A, B, K, V> StoreWrite for StoreSwitch<A, B>where
A: StoreWrite<Key = K, Value = V>,
B: StoreWrite<Key = K, Value = V>,
impl<A, B, K, V> StoreWrite for StoreSwitch<A, B>where
A: StoreWrite<Key = K, Value = V>,
B: StoreWrite<Key = K, Value = V>,
Auto Trait Implementations§
impl<A, B> Freeze for StoreSwitch<A, B>
impl<A, B> RefUnwindSafe for StoreSwitch<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for StoreSwitch<A, B>
impl<A, B> Sync for StoreSwitch<A, B>
impl<A, B> Unpin for StoreSwitch<A, B>
impl<A, B> UnsafeUnpin for StoreSwitch<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for StoreSwitch<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
impl<T> AsyncOrderedStore for Twhere
T: AsyncOrderedStoreRead + AsyncStoreWrite,
impl<T> AsyncSearchableStore for Twhere
T: AsyncSearchableStoreRead + AsyncStoreWrite,
impl<T> AsyncStore for Twhere
T: AsyncStoreRead + AsyncStoreWrite,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more