pub enum MmInfoError {
OutOfBounds {
offset: usize,
length: usize,
tokens_len: usize,
},
OffsetOverflow {
offset: usize,
length: usize,
},
Overlapping {
position: usize,
},
EmptyRun,
}Expand description
Errors raised while validating TokenBlockMmInfo inputs.
Variants§
OutOfBounds
The run extends past the end of the token sequence.
Fields
OffsetOverflow
offset + length overflows usize.
Overlapping
Two runs overlap.
EmptyRun
A run has zero length.
Trait Implementations§
Source§impl Clone for MmInfoError
impl Clone for MmInfoError
Source§fn clone(&self) -> MmInfoError
fn clone(&self) -> MmInfoError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MmInfoError
Source§impl Debug for MmInfoError
impl Debug for MmInfoError
Source§impl Display for MmInfoError
impl Display for MmInfoError
impl Eq for MmInfoError
Source§impl Error for MmInfoError
impl Error for MmInfoError
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 From<MmInfoError> for KvHashingError
impl From<MmInfoError> for KvHashingError
Source§fn from(source: MmInfoError) -> Self
fn from(source: MmInfoError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MmInfoError
impl PartialEq for MmInfoError
impl StructuralPartialEq for MmInfoError
Auto Trait Implementations§
impl Freeze for MmInfoError
impl RefUnwindSafe for MmInfoError
impl Send for MmInfoError
impl Sync for MmInfoError
impl Unpin for MmInfoError
impl UnsafeUnpin for MmInfoError
impl UnwindSafe for MmInfoError
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