[−][src]Struct spinoso_symbol::ParseIdentifierError
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]
fn clone(&self) -> ParseIdentifierError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ParseIdentifierError
[src]
impl Debug for ParseIdentifierError
[src]
impl Default for ParseIdentifierError
[src]
fn default() -> ParseIdentifierError
[src]
impl Display for ParseIdentifierError
[src]
impl Eq for ParseIdentifierError
[src]
impl Hash for ParseIdentifierError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ParseIdentifierError
[src]
fn cmp(&self, other: &ParseIdentifierError) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ParseIdentifierError> for ParseIdentifierError
[src]
fn eq(&self, other: &ParseIdentifierError) -> bool
[src]
fn ne(&self, other: &ParseIdentifierError) -> bool
[src]
impl PartialOrd<ParseIdentifierError> for ParseIdentifierError
[src]
fn partial_cmp(&self, other: &ParseIdentifierError) -> Option<Ordering>
[src]
fn lt(&self, other: &ParseIdentifierError) -> bool
[src]
fn le(&self, other: &ParseIdentifierError) -> bool
[src]
fn gt(&self, other: &ParseIdentifierError) -> bool
[src]
fn ge(&self, other: &ParseIdentifierError) -> bool
[src]
impl StructuralEq for ParseIdentifierError
[src]
impl StructuralPartialEq for ParseIdentifierError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParseIdentifierError
[src]
impl Send for ParseIdentifierError
[src]
impl Sync for ParseIdentifierError
[src]
impl Unpin for ParseIdentifierError
[src]
impl UnwindSafe for ParseIdentifierError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,