pub struct BijectiveBTreeMap<L, R> { /* private fields */ }Implementations§
Source§impl<L: Ord + Copy, R: Ord + Copy> BijectiveBTreeMap<L, R>
impl<L: Ord + Copy, R: Ord + Copy> BijectiveBTreeMap<L, R>
pub const fn new() -> Self
pub fn insert(&mut self, key: L, value: R)
pub fn get_by_left(&self, key: &L) -> Option<&R>
pub fn get_by_right(&self, value: &R) -> Option<&L>
pub fn remove_by_key(&mut self, key: &L) -> Option<R>
pub fn remove_by_value(&mut self, value: &R) -> Option<L>
pub fn get_left_keys(&self) -> impl Iterator<Item = &L>
pub fn get_right_keys(&self) -> impl Iterator<Item = &R>
Trait Implementations§
Auto Trait Implementations§
impl<L, R> Freeze for BijectiveBTreeMap<L, R>
impl<L, R> RefUnwindSafe for BijectiveBTreeMap<L, R>where
R: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, R> Send for BijectiveBTreeMap<L, R>
impl<L, R> Sync for BijectiveBTreeMap<L, R>
impl<L, R> Unpin for BijectiveBTreeMap<L, R>
impl<L, R> UnwindSafe for BijectiveBTreeMap<L, R>where
R: RefUnwindSafe,
L: RefUnwindSafe,
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