pub enum NativeIDFormatError {
IncorrectArgumentNumber {
term: NativeSpectrumIdentifierFormatTerm,
expected: usize,
received: usize,
},
PatternMismatch {
term: NativeSpectrumIdentifierFormatTerm,
text: String,
},
}Variants§
IncorrectArgumentNumber
The ID format required a different number of groups than what were found
PatternMismatch
The ID format’s pattern did not match the provided string
Trait Implementations§
Source§impl Clone for NativeIDFormatError
impl Clone for NativeIDFormatError
Source§fn clone(&self) -> NativeIDFormatError
fn clone(&self) -> NativeIDFormatError
Returns a duplicate 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 NativeIDFormatError
impl Debug for NativeIDFormatError
Source§impl Display for NativeIDFormatError
impl Display for NativeIDFormatError
Source§impl Error for NativeIDFormatError
impl Error for NativeIDFormatError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for NativeIDFormatError
impl PartialEq for NativeIDFormatError
impl StructuralPartialEq for NativeIDFormatError
Auto Trait Implementations§
impl Freeze for NativeIDFormatError
impl RefUnwindSafe for NativeIDFormatError
impl Send for NativeIDFormatError
impl Sync for NativeIDFormatError
impl Unpin for NativeIDFormatError
impl UnwindSafe for NativeIDFormatError
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