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
sourceimpl 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
sourceimpl Clone for ParseIdentifierError
impl Clone for ParseIdentifierError
sourcefn clone(&self) -> ParseIdentifierError
fn clone(&self) -> ParseIdentifierError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParseIdentifierError
impl Debug for ParseIdentifierError
sourceimpl Default for ParseIdentifierError
impl Default for ParseIdentifierError
sourcefn default() -> ParseIdentifierError
fn default() -> ParseIdentifierError
Returns the “default value” for a type. Read more
sourceimpl Display for ParseIdentifierError
impl Display for ParseIdentifierError
sourceimpl Hash for ParseIdentifierError
impl Hash for ParseIdentifierError
sourceimpl Ord for ParseIdentifierError
impl Ord for ParseIdentifierError
sourceimpl PartialEq<ParseIdentifierError> for ParseIdentifierError
impl PartialEq<ParseIdentifierError> for ParseIdentifierError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ParseIdentifierError) -> bool
fn ne(&self, other: &ParseIdentifierError) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ParseIdentifierError> for ParseIdentifierError
impl PartialOrd<ParseIdentifierError> for ParseIdentifierError
sourcefn partial_cmp(&self, other: &ParseIdentifierError) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseIdentifierError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for ParseIdentifierError
impl Eq for ParseIdentifierError
impl StructuralEq for ParseIdentifierError
impl StructuralPartialEq for ParseIdentifierError
Auto Trait Implementations
impl RefUnwindSafe for ParseIdentifierError
impl Send for ParseIdentifierError
impl Sync for ParseIdentifierError
impl Unpin for ParseIdentifierError
impl UnwindSafe for ParseIdentifierError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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