pub struct Mutable<V> { /* private fields */ }Implementations§
Methods from Deref<Target = Standard<V>>§
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, key: &str) -> Option<&V>
pub fn assoc_value(&self, key: impl Into<String>, value: V) -> Self
pub fn dissoc_value(&self, key: &str) -> Self
pub fn entries(&self) -> Vec<(String, &V)>
pub fn iter(&self) -> impl Iterator<Item = String> + '_
Trait Implementations§
impl<V> IMutable for Mutable<V>
Source§impl<V: Clone> IToPersistent for Mutable<V>
impl<V: Clone> IToPersistent for Mutable<V>
type Persistent = Standard<V>
fn to_persistent(&mut self) -> Self::Persistent
Auto Trait Implementations§
impl<V> !Freeze for Mutable<V>
impl<V> !RefUnwindSafe for Mutable<V>
impl<V> !Send for Mutable<V>
impl<V> !Sync for Mutable<V>
impl<V> !UnwindSafe for Mutable<V>
impl<V> Unpin for Mutable<V>
impl<V> UnsafeUnpin for Mutable<V>where
Standard<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