pub enum HashLineError {
HashMismatch {
line_num: u32,
expected: LineHash,
actual: LineHash,
},
LineOutOfBounds {
line_num: u32,
total_lines: u32,
},
AmbiguousHash {
hash: LineHash,
matching_lines: Vec<u32>,
},
OverlappingEdits {
line_num: u32,
},
}Expand description
Hashline-specific errors.
Variants§
Trait Implementations§
Source§impl Debug for HashLineError
impl Debug for HashLineError
Source§impl Display for HashLineError
impl Display for HashLineError
Source§impl Error for HashLineError
impl Error for HashLineError
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<HashLineError> for LagoError
impl From<HashLineError> for LagoError
Source§fn from(source: HashLineError) -> Self
fn from(source: HashLineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HashLineError
impl RefUnwindSafe for HashLineError
impl Send for HashLineError
impl Sync for HashLineError
impl Unpin for HashLineError
impl UnsafeUnpin for HashLineError
impl UnwindSafe for HashLineError
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