pub struct SymbolOrdinalCatalog { /* private fields */ }Implementations§
Source§impl SymbolOrdinalCatalog
impl SymbolOrdinalCatalog
pub fn push(&mut self, id: SymbolId) -> SymbolOrdinal
pub fn retire(&mut self, ordinal: SymbolOrdinal)
pub fn unbind_id(&mut self, ordinal: SymbolOrdinal)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn storage_len(&self) -> usize
pub fn ordinal(&self, id: &SymbolId) -> Option<SymbolOrdinal>
pub fn ids(&self, symbols: &SymbolSet) -> Vec<SymbolId>
pub fn id(&self, ordinal: SymbolOrdinal) -> Option<&SymbolId>
pub fn active_ordinals(&self) -> impl Iterator<Item = (u32, SymbolId)> + '_
Trait Implementations§
Source§impl Clone for SymbolOrdinalCatalog
impl Clone for SymbolOrdinalCatalog
Source§fn clone(&self) -> SymbolOrdinalCatalog
fn clone(&self) -> SymbolOrdinalCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SymbolOrdinalCatalog
impl Debug for SymbolOrdinalCatalog
Source§impl Default for SymbolOrdinalCatalog
impl Default for SymbolOrdinalCatalog
Source§fn default() -> SymbolOrdinalCatalog
fn default() -> SymbolOrdinalCatalog
Returns the “default value” for a type. Read more
impl Eq for SymbolOrdinalCatalog
Source§impl PartialEq for SymbolOrdinalCatalog
impl PartialEq for SymbolOrdinalCatalog
impl StructuralPartialEq for SymbolOrdinalCatalog
Auto Trait Implementations§
impl Freeze for SymbolOrdinalCatalog
impl RefUnwindSafe for SymbolOrdinalCatalog
impl Send for SymbolOrdinalCatalog
impl Sync for SymbolOrdinalCatalog
impl Unpin for SymbolOrdinalCatalog
impl UnsafeUnpin for SymbolOrdinalCatalog
impl UnwindSafe for SymbolOrdinalCatalog
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more