pub struct ErrorWithLine(pub usize, pub Error);
Expand description
An error with the line of the template it occurred on
Tuple Fields§
§0: usize
§1: Error
Trait Implementations§
Source§impl Clone for ErrorWithLine
impl Clone for ErrorWithLine
Source§fn clone(&self) -> ErrorWithLine
fn clone(&self) -> ErrorWithLine
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ErrorWithLine
impl Debug for ErrorWithLine
Source§impl Display for ErrorWithLine
impl Display for ErrorWithLine
Source§impl Error for ErrorWithLine
impl Error for ErrorWithLine
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 ErrorWithLine
impl PartialEq for ErrorWithLine
impl Eq for ErrorWithLine
impl StructuralPartialEq for ErrorWithLine
Auto Trait Implementations§
impl Freeze for ErrorWithLine
impl RefUnwindSafe for ErrorWithLine
impl Send for ErrorWithLine
impl Sync for ErrorWithLine
impl Unpin for ErrorWithLine
impl UnwindSafe for ErrorWithLine
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