pub struct Mutable<E> { /* private fields */ }Implementations§
Methods from Deref<Target = Standard<E>>§
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, value: &E) -> Option<&E>
pub fn iter(&self) -> impl Iterator<Item = &E>
pub fn conj_value(&self, value: E) -> Self
pub fn dissoc_value(&self, value: &E) -> Self
pub fn index_of(&self, value: &E) -> Option<usize>
pub fn inclusive_floor_index(&self, value: &E) -> Option<usize>
pub fn ceil_index(&self, value: &E) -> Option<usize>
pub fn slice(&self, min: &E, max: &E) -> Self
Trait Implementations§
impl<E> IMutable for Mutable<E>
Source§impl<E: Clone + Ord> IToPersistent for Mutable<E>
impl<E: Clone + Ord> IToPersistent for Mutable<E>
type Persistent = Standard<E>
fn to_persistent(&mut self) -> Self::Persistent
Auto Trait Implementations§
impl<E> !Freeze for Mutable<E>
impl<E> !RefUnwindSafe for Mutable<E>
impl<E> !Send for Mutable<E>
impl<E> !Sync for Mutable<E>
impl<E> !UnwindSafe for Mutable<E>
impl<E> Unpin for Mutable<E>
impl<E> UnsafeUnpin for Mutable<E>where
Standard<E>: 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