#[non_exhaustive]pub enum BatchLabelError {
Empty {
index: usize,
},
Duplicate {
label: String,
first_index: usize,
duplicate_index: usize,
},
}Expand description
Invalid labels, rejected before the operation performs work.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for BatchLabelError
impl Clone for BatchLabelError
Source§impl Debug for BatchLabelError
impl Debug for BatchLabelError
Source§impl Display for BatchLabelError
impl Display for BatchLabelError
impl Eq for BatchLabelError
Source§impl Error for BatchLabelError
impl Error for BatchLabelError
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 BatchLabelError
impl PartialEq for BatchLabelError
impl StructuralPartialEq for BatchLabelError
Auto Trait Implementations§
impl Freeze for BatchLabelError
impl RefUnwindSafe for BatchLabelError
impl Send for BatchLabelError
impl Sync for BatchLabelError
impl Unpin for BatchLabelError
impl UnsafeUnpin for BatchLabelError
impl UnwindSafe for BatchLabelError
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