pub enum LineDiffError<E = Infallible> {
InvalidUtf8,
BudgetExceeded(BudgetExceeded),
Visitor(E),
}Expand description
Typed LCS failure. BudgetExceeded is distinct from UTF-8 rejection
and from a visitor that cancelled.
Variants§
Implementations§
Source§impl<E> LineDiffError<E>
impl<E> LineDiffError<E>
pub fn from_budget(error: BudgetExceeded) -> Self
Trait Implementations§
Source§impl<E: Debug> Debug for LineDiffError<E>
impl<E: Debug> Debug for LineDiffError<E>
Source§impl<E: Display> Display for LineDiffError<E>
impl<E: Display> Display for LineDiffError<E>
Source§impl<E: Error + 'static> Error for LineDiffError<E>
impl<E: Error + 'static> Error for LineDiffError<E>
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<E> From<BudgetExceeded> for LineDiffError<E>
impl<E> From<BudgetExceeded> for LineDiffError<E>
Source§fn from(error: BudgetExceeded) -> Self
fn from(error: BudgetExceeded) -> Self
Converts to this type from the input type.
Source§impl From<LineDiffError> for BlameSliceError
impl From<LineDiffError> for BlameSliceError
Source§fn from(error: LineDiffError) -> Self
fn from(error: LineDiffError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for LineDiffError<E>where
E: Freeze,
impl<E> RefUnwindSafe for LineDiffError<E>where
E: RefUnwindSafe,
impl<E> Send for LineDiffError<E>where
E: Send,
impl<E> Sync for LineDiffError<E>where
E: Sync,
impl<E> Unpin for LineDiffError<E>where
E: Unpin,
impl<E> UnsafeUnpin for LineDiffError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for LineDiffError<E>where
E: UnwindSafe,
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