Enum nice_smile::pattern::PatternError
source · pub enum PatternError {
NodeIndexOutOfBounds(usize),
ContainsCycle,
}Expand description
Errors that can occur when working with a Pattern
Variants§
NodeIndexOutOfBounds(usize)
An error that occurs when a node index exceeds the number of nodes in the Pattern
ContainsCycle
An error that occurs when the Pattern contains a cycle
Trait Implementations§
source§impl Debug for PatternError
impl Debug for PatternError
source§impl Display for PatternError
impl Display for PatternError
source§impl Error for PatternError
impl Error for PatternError
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 PartialEq for PatternError
impl PartialEq for PatternError
source§fn eq(&self, other: &PatternError) -> bool
fn eq(&self, other: &PatternError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PatternError
impl StructuralPartialEq for PatternError
Auto Trait Implementations§
impl Freeze for PatternError
impl RefUnwindSafe for PatternError
impl Send for PatternError
impl Sync for PatternError
impl Unpin for PatternError
impl UnwindSafe for PatternError
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