pub struct ParseLineError { /* private fields */ }Expand description
The error that occurs when a line of a leap-seconds.list file could not be parsed.
Implementations§
Source§impl ParseLineError
impl ParseLineError
Sourcepub const fn cause(&self) -> ParseLineErrorKind
pub const fn cause(&self) -> ParseLineErrorKind
Gets what caused this error.
Sourcepub const fn line_number(&self) -> usize
pub const fn line_number(&self) -> usize
Gets the line number at which this error occured.
Trait Implementations§
Source§impl Debug for ParseLineError
impl Debug for ParseLineError
Source§impl Display for ParseLineError
impl Display for ParseLineError
Source§impl Error for ParseLineError
impl Error for ParseLineError
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<ParseLineError> for ParseFileError
impl From<ParseLineError> for ParseFileError
Source§fn from(source: ParseLineError) -> Self
fn from(source: ParseLineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseLineError
impl RefUnwindSafe for ParseLineError
impl Send for ParseLineError
impl Sync for ParseLineError
impl Unpin for ParseLineError
impl UnsafeUnpin for ParseLineError
impl UnwindSafe for ParseLineError
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