Struct spinoso_symbol::ParseIdentifierError
source · pub struct ParseIdentifierError { /* private fields */ }
Expand description
Error type returned from the FromStr
implementation on IdentifierType
.
Examples
const ERR: ParseIdentifierError = ParseIdentifierError::new();
assert_eq!("not a valid ident".parse::<IdentifierType>(), Err(ERR));
Implementations§
source§impl ParseIdentifierError
impl ParseIdentifierError
sourcepub const fn new() -> Self
pub const fn new() -> Self
Construct a new ParseIdentifierError
.
Prefer to use new()
over default()
since new()
is const.
Examples
const ERR: ParseIdentifierError = ParseIdentifierError::new();
assert_eq!("not a valid ident".parse::<IdentifierType>(), Err(ERR));
assert_eq!(ERR, ParseIdentifierError::default());
Trait Implementations§
source§impl Clone for ParseIdentifierError
impl Clone for ParseIdentifierError
source§fn clone(&self) -> ParseIdentifierError
fn clone(&self) -> ParseIdentifierError
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 ParseIdentifierError
impl Debug for ParseIdentifierError
source§impl Default for ParseIdentifierError
impl Default for ParseIdentifierError
source§fn default() -> ParseIdentifierError
fn default() -> ParseIdentifierError
Returns the “default value” for a type. Read more
source§impl Display for ParseIdentifierError
impl Display for ParseIdentifierError
source§impl Hash for ParseIdentifierError
impl Hash for ParseIdentifierError
source§impl Ord for ParseIdentifierError
impl Ord for ParseIdentifierError
source§fn cmp(&self, other: &ParseIdentifierError) -> Ordering
fn cmp(&self, other: &ParseIdentifierError) -> 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<ParseIdentifierError> for ParseIdentifierError
impl PartialEq<ParseIdentifierError> for ParseIdentifierError
source§fn eq(&self, other: &ParseIdentifierError) -> bool
fn eq(&self, other: &ParseIdentifierError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ParseIdentifierError> for ParseIdentifierError
impl PartialOrd<ParseIdentifierError> for ParseIdentifierError
source§fn partial_cmp(&self, other: &ParseIdentifierError) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseIdentifierError) -> 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