pub struct Table<V: Hash + Debug + Clone + Eq, R: Clone + Copy + From<usize> + Into<usize>> { /* private fields */ }Expand description
Table mapping hashable values to and from numeric indices.
Implementations§
Source§impl<V: Hash + Debug + Clone + Eq, R: Clone + Copy + From<usize> + Into<usize>> Table<V, R>
impl<V: Hash + Debug + Clone + Eq, R: Clone + Copy + From<usize> + Into<usize>> Table<V, R>
Source§impl Table<Name, NameRef>
impl Table<Name, NameRef>
Source§impl Table<Name, SegmentRef>
impl Table<Name, SegmentRef>
Sourcepub fn base_name(&self, idx: SegmentRef) -> Result<SegmentRef>
pub fn base_name(&self, idx: SegmentRef) -> Result<SegmentRef>
Shortcut for getting the index of the Segment with the same base as idx but subscript
None.
Trait Implementations§
Source§impl<V: Clone + Hash + Debug + Clone + Eq, R: Clone + Clone + Copy + From<usize> + Into<usize>> Clone for Table<V, R>
impl<V: Clone + Hash + Debug + Clone + Eq, R: Clone + Clone + Copy + From<usize> + Into<usize>> Clone for Table<V, R>
Auto Trait Implementations§
impl<V, R> Freeze for Table<V, R>
impl<V, R> RefUnwindSafe for Table<V, R>where
V: RefUnwindSafe,
R: RefUnwindSafe,
impl<V, R> Send for Table<V, R>
impl<V, R> Sync for Table<V, R>
impl<V, R> Unpin for Table<V, R>
impl<V, R> UnwindSafe for Table<V, R>where
V: UnwindSafe,
R: UnwindSafe,
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