pub struct Data<K: BinarySearchKey, M: DataMarker>(pub &'static [(K::Type, &'static M::DataStruct)]);
Tuple Fields§
§0: &'static [(K::Type, &'static M::DataStruct)]
Trait Implementations§
Source§impl<K: BinarySearchKey, M: DataMarker> DataStore<M> for Data<K, M>
impl<K: BinarySearchKey, M: DataMarker> DataStore<M> for Data<K, M>
type IterReturn = Map<Iter<'static, (<K as BinarySearchKey>::Type, &'static <M as DynamicDataMarker>::DataStruct)>, fn(_: &'static (<K as BinarySearchKey>::Type, &'static <M as DynamicDataMarker>::DataStruct)) -> DataIdentifierCow<'static>>
fn get( &self, id: DataIdentifierBorrowed<'_>, attributes_prefix_match: bool, ) -> Option<DataPayload<M>>
fn iter(&self) -> Self::IterReturn
Auto Trait Implementations§
impl<K, M> Freeze for Data<K, M>
impl<K, M> RefUnwindSafe for Data<K, M>where
<K as BinarySearchKey>::Type: RefUnwindSafe,
<M as DynamicDataMarker>::DataStruct: RefUnwindSafe,
impl<K, M> Send for Data<K, M>
impl<K, M> Sync for Data<K, M>
impl<K, M> Unpin for Data<K, M>
impl<K, M> UnwindSafe for Data<K, M>where
<K as BinarySearchKey>::Type: RefUnwindSafe,
<M as DynamicDataMarker>::DataStruct: RefUnwindSafe,
Blanket Implementations§
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
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