pub enum InvalidIdentifierError {
Empty,
Start(char),
Character(char),
}Expand description
Error returned when attempting to create a Identifier.
Variants§
Empty
Empty identifier
Start(char)
Invalid start character.
Identifiers must start with an ASCII letter (a-z, A-Z) or digit (0-9).
Character(char)
Invalid character.
Identifiers must contain only ASCII letters (a-z, A-Z), digits (0-9), dots (.), underscores (_), or dashes (-).
Trait Implementations§
source§impl Clone for InvalidIdentifierError
impl Clone for InvalidIdentifierError
source§fn clone(&self) -> InvalidIdentifierError
fn clone(&self) -> InvalidIdentifierError
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 InvalidIdentifierError
impl Debug for InvalidIdentifierError
source§impl Display for InvalidIdentifierError
impl Display for InvalidIdentifierError
source§impl Error for InvalidIdentifierError
impl Error for InvalidIdentifierError
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<InvalidIdentifierError> for ParseIpcError
impl From<InvalidIdentifierError> for ParseIpcError
source§fn from(source: InvalidIdentifierError) -> Self
fn from(source: InvalidIdentifierError) -> Self
Converts to this type from the input type.
source§impl From<InvalidIdentifierError> for ParseNetworkModeError
impl From<InvalidIdentifierError> for ParseNetworkModeError
source§fn from(source: InvalidIdentifierError) -> Self
fn from(source: InvalidIdentifierError) -> Self
Converts to this type from the input type.
source§impl From<InvalidIdentifierError> for ParseSourceError
impl From<InvalidIdentifierError> for ParseSourceError
source§fn from(source: InvalidIdentifierError) -> Self
fn from(source: InvalidIdentifierError) -> Self
Converts to this type from the input type.
source§impl PartialEq for InvalidIdentifierError
impl PartialEq for InvalidIdentifierError
source§fn eq(&self, other: &InvalidIdentifierError) -> bool
fn eq(&self, other: &InvalidIdentifierError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for InvalidIdentifierError
impl Eq for InvalidIdentifierError
impl StructuralPartialEq for InvalidIdentifierError
Auto Trait Implementations§
impl Freeze for InvalidIdentifierError
impl RefUnwindSafe for InvalidIdentifierError
impl Send for InvalidIdentifierError
impl Sync for InvalidIdentifierError
impl Unpin for InvalidIdentifierError
impl UnwindSafe for InvalidIdentifierError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.