Struct spinoso_symbol::ParseIdentifierError[][src]

pub struct ParseIdentifierError { /* fields omitted */ }

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

impl ParseIdentifierError[src]

#[must_use]pub const fn new() -> Self[src]

Construct a new ParseIdentifierError.

Prefer to use new() over default() since new() is a const fn.

Examples

const ERR: ParseIdentifierError = ParseIdentifierError::new();
assert_eq!("not a valid ident".parse::<IdentifierType>(), Err(ERR));
assert_eq!(ERR, ParseIdentifierError::default());

Trait Implementations

impl Clone for ParseIdentifierError[src]

impl Copy for ParseIdentifierError[src]

impl Debug for ParseIdentifierError[src]

impl Default for ParseIdentifierError[src]

impl Display for ParseIdentifierError[src]

impl Eq for ParseIdentifierError[src]

impl Hash for ParseIdentifierError[src]

impl Ord for ParseIdentifierError[src]

impl PartialEq<ParseIdentifierError> for ParseIdentifierError[src]

impl PartialOrd<ParseIdentifierError> for ParseIdentifierError[src]

impl StructuralEq for ParseIdentifierError[src]

impl StructuralPartialEq for ParseIdentifierError[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.