pub struct SegMap<T>(/* private fields */);Implementations§
Source§impl<T> SegMap<T>where
T: Clone,
impl<T> SegMap<T>where
T: Clone,
pub fn new() -> SegMap<T>
pub fn keys(&self) -> impl Iterator<Item = &Seg>
pub fn from_iter<I>(iter: I) -> SegMap<T>where
I: IntoIterator<Item = (Seg, T)>,
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
Source§impl<S> BuildFrom<S> for S
impl<S> BuildFrom<S> for S
Source§fn build_from(source: S) -> S
fn build_from(source: S) -> S
Converts to this type from the input type.
Source§impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
Source§fn build_into(self) -> T
fn build_into(self) -> T
Calls T::from(self) to convert a [S] into a [T].
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
Source§type Error = <T as TryBuildFrom<S>>::Error
type Error = <T as TryBuildFrom<S>>::Error
The type returned in the event of a conversion error.
Source§fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
Performs the conversion.