Struct intaglio::SymbolOverflowError
source · pub struct SymbolOverflowError { /* private fields */ }
Expand description
Error returned when a SymbolTable
or symbol identifier overflows.
SymbolTable
uses u32
identifiers for symbols to save space. If more than
u32::MAX
symbols are stored in the table, no more identifiers can be
generated. Any subsequent inserts into the table will fail with this error.
Implementations§
source§impl SymbolOverflowError
impl SymbolOverflowError
sourcepub const fn max_capacity(self) -> usize
pub const fn max_capacity(self) -> usize
Return the maximum capacity of the SymbolTable
that returned this
error.
Trait Implementations§
source§impl Clone for SymbolOverflowError
impl Clone for SymbolOverflowError
source§fn clone(&self) -> SymbolOverflowError
fn clone(&self) -> SymbolOverflowError
Returns a copy of the value. Read more
1.0.0 · 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 SymbolOverflowError
impl Debug for SymbolOverflowError
source§impl Default for SymbolOverflowError
impl Default for SymbolOverflowError
source§fn default() -> SymbolOverflowError
fn default() -> SymbolOverflowError
Returns the “default value” for a type. Read more
source§impl Display for SymbolOverflowError
impl Display for SymbolOverflowError
source§impl Error for SymbolOverflowError
impl Error for SymbolOverflowError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<TryFromIntError> for SymbolOverflowError
impl From<TryFromIntError> for SymbolOverflowError
source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl Hash for SymbolOverflowError
impl Hash for SymbolOverflowError
source§impl Ord for SymbolOverflowError
impl Ord for SymbolOverflowError
source§fn cmp(&self, other: &SymbolOverflowError) -> Ordering
fn cmp(&self, other: &SymbolOverflowError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SymbolOverflowError> for SymbolOverflowError
impl PartialEq<SymbolOverflowError> for SymbolOverflowError
source§fn eq(&self, other: &SymbolOverflowError) -> bool
fn eq(&self, other: &SymbolOverflowError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SymbolOverflowError> for SymbolOverflowError
impl PartialOrd<SymbolOverflowError> for SymbolOverflowError
source§fn partial_cmp(&self, other: &SymbolOverflowError) -> Option<Ordering>
fn partial_cmp(&self, other: &SymbolOverflowError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more