pub struct SegMap<T>(/* private fields */);Implementations§
Source§impl<T: Clone> SegMap<T>
impl<T: Clone> SegMap<T>
pub fn new() -> Self
pub fn keys(&self) -> impl Iterator<Item = &Seg>
pub fn from_iter<I: IntoIterator<Item = (Seg, T)>>(iter: I) -> Self
pub fn get(&self, value: u32) -> Option<T>
pub fn insert(&mut self, key: Seg, value: T) -> Option<T>
pub fn clear(&mut self)
pub fn iter(&self) -> Iter<'_, Seg, T>
pub fn len(&self) -> usize
Trait Implementations§
Source§impl<'a, T> IntoIterator for &'a SegMap<T>
impl<'a, T> IntoIterator for &'a SegMap<T>
Source§impl<T> IntoIterator for SegMap<T>
impl<T> IntoIterator for SegMap<T>
impl<T> StructuralPartialEq for SegMap<T>
Auto Trait Implementations§
impl<T> Freeze for SegMap<T>
impl<T> RefUnwindSafe for SegMap<T>where
T: RefUnwindSafe,
impl<T> Send for SegMap<T>where
T: Send,
impl<T> Sync for SegMap<T>where
T: Sync,
impl<T> Unpin for SegMap<T>
impl<T> UnwindSafe for SegMap<T>where
T: 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