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
sourceimpl<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>
sourceimpl Table<Name, NameRef>
impl Table<Name, NameRef>
sourceimpl 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
sourceimpl<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> RefUnwindSafe for Table<V, R>where
R: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, R> Send for Table<V, R>where
R: Send,
V: Send,
impl<V, R> Sync for Table<V, R>where
R: Sync,
V: Sync,
impl<V, R> Unpin for Table<V, R>where
R: Unpin,
V: Unpin,
impl<V, R> UnwindSafe for Table<V, R>where
R: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more