pub struct PatchTextError {
pub message: String,
pub span: Span,
pub line: usize,
pub column: usize,
}Expand description
Error produced while parsing, resolving, or applying textual patch ops.
Fields§
§message: StringHuman-readable description of the failure.
span: SpanSource span that triggered the failure.
line: usizeOne-based line number for the span start.
column: usizeOne-based column number for the span start.
Trait Implementations§
Source§impl Clone for PatchTextError
impl Clone for PatchTextError
Source§fn clone(&self) -> PatchTextError
fn clone(&self) -> PatchTextError
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 moreSource§impl Debug for PatchTextError
impl Debug for PatchTextError
Source§impl Display for PatchTextError
impl Display for PatchTextError
Source§impl Error for PatchTextError
impl Error for PatchTextError
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 PatchTextError
impl PartialEq for PatchTextError
Source§fn eq(&self, other: &PatchTextError) -> bool
fn eq(&self, other: &PatchTextError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PatchTextError
impl StructuralPartialEq for PatchTextError
Auto Trait Implementations§
impl Freeze for PatchTextError
impl RefUnwindSafe for PatchTextError
impl Send for PatchTextError
impl Sync for PatchTextError
impl Unpin for PatchTextError
impl UnsafeUnpin for PatchTextError
impl UnwindSafe for PatchTextError
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