pub struct Unmapped<T>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<T> FromIterator<((), T)> for Unmapped<T>
impl<T> FromIterator<((), T)> for Unmapped<T>
Source§impl<T> Map<(), T> for Unmapped<T>
impl<T> Map<(), T> for Unmapped<T>
type Iter<'a> = OptionClassIter<'a, T> where T: 'a
type IntoEntries = OptionClassIntoIter<T>
fn get(&self, _class: &()) -> Option<&T>
fn get_mut(&mut self, _class: &()) -> Option<&mut T>
fn set(&mut self, _class: (), value: T)
fn iter(&self) -> Self::Iter<'_>
fn into_entries(self) -> Self::IntoEntries
fn singleton(class: C, value: T) -> Self
fn contains(&self, class: &C) -> bool
fn get_mut_or_insert_with(&mut self, class: &C, f: impl FnOnce() -> T) -> &mut Twhere
C: Clone,
fn get_or_try_insert_with<E>(
&mut self,
class: &C,
f: impl FnOnce() -> Result<T, E>,
) -> Result<&T, E>where
C: Clone,
Auto Trait Implementations§
impl<T> Freeze for Unmapped<T>where
T: Freeze,
impl<T> RefUnwindSafe for Unmapped<T>where
T: RefUnwindSafe,
impl<T> Send for Unmapped<T>where
T: Send,
impl<T> Sync for Unmapped<T>where
T: Sync,
impl<T> Unpin for Unmapped<T>where
T: Unpin,
impl<T> UnwindSafe for Unmapped<T>where
T: UnwindSafe,
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