pub struct Standard<K, V> { /* private fields */ }Implementations§
Source§impl<K: Clone + Eq + Hash, V: Clone + Ord> Standard<K, V>
impl<K: Clone + Eq + Hash, V: Clone + Ord> Standard<K, V>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, key: &K) -> Option<&V>
pub fn iter(&self) -> IntoIter<(K, V)> ⓘ
pub fn assoc_value(&self, key: K, priority: V) -> Self
pub fn dissoc_value(&self, key: &K) -> Self
pub fn peek_first_entry(&self) -> Option<(K, V)>
pub fn peek_last_entry(&self) -> Option<(K, V)>
pub fn pop_first_value(&self) -> Self
pub fn pop_last_value(&self) -> Self
Trait Implementations§
Source§impl<K: Clone + Eq + Hash + JavaHash, V: Clone + Ord + Hash + JavaHash> IHash for Standard<K, V>
impl<K: Clone + Eq + Hash + JavaHash, V: Clone + Ord + Hash + JavaHash> IHash for Standard<K, V>
Source§impl<K: Clone + Eq + Hash, V: Clone + Ord> IPeekFirst<(K, V)> for Standard<K, V>
impl<K: Clone + Eq + Hash, V: Clone + Ord> IPeekFirst<(K, V)> for Standard<K, V>
fn peek_first(&self) -> Option<(K, V)>
impl<K: Clone + Eq + Hash, V: Clone + Ord> IPersistent for Standard<K, V>
Auto Trait Implementations§
impl<K, V> !RefUnwindSafe for Standard<K, V>
impl<K, V> !Send for Standard<K, V>
impl<K, V> !Sync for Standard<K, V>
impl<K, V> !UnwindSafe for Standard<K, V>
impl<K, V> Freeze for Standard<K, V>
impl<K, V> Unpin for Standard<K, V>
impl<K, V> UnsafeUnpin for Standard<K, V>
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