pub struct Mutable<K, V> { /* private fields */ }Implementations§
Methods from Deref<Target = Standard<K, V>>§
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, key: &K) -> Option<&V>
pub fn find_entry(&self, key: &K) -> Option<(&K, &V)>
pub fn assoc_value(&self, key: K, value: V) -> Self
pub fn dissoc_value(&self, key: &K) -> Self
pub fn iter(&self) -> IntoIter<(&K, &V)> ⓘ
pub fn entries(&self) -> Vec<(&K, &V)>
Trait Implementations§
impl<K, V> IMutable for Mutable<K, V>
Source§impl<K: Clone + Eq + Hash, V: Clone> IToPersistent for Mutable<K, V>
impl<K: Clone + Eq + Hash, V: Clone> IToPersistent for Mutable<K, V>
type Persistent = Standard<K, V>
fn to_persistent(&mut self) -> Self::Persistent
Auto Trait Implementations§
impl<K, V> !Freeze for Mutable<K, V>
impl<K, V> !RefUnwindSafe for Mutable<K, V>
impl<K, V> !Send for Mutable<K, V>
impl<K, V> !Sync for Mutable<K, V>
impl<K, V> !UnwindSafe for Mutable<K, V>
impl<K, V> Unpin for Mutable<K, V>
impl<K, V> UnsafeUnpin for Mutable<K, V>where
Standard<K, V>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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