[−][src]Struct entab::error::EtError
The Error struct for entab
Fields
msg: String
A succinct message describing the error
byte: Option<u64>
At what byte in a the file (if any), the error occured
record: Option<u64>
At what record in a the file (if any), the error occured.
Note, this may not be the same as the index of the iterator if the underlying file type groups e.g. record information by time slice.
Implementations
impl EtError
[src]
pub fn new<T>(msg: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
Create a new EtError with a display message of msg
pub fn fill_pos(self, reader: &ReadBuffer<'_>) -> Self
[src]
Fill the positional error information from a ReadBuffer
Used to display e.g. where a parsing error in a file occured.
Trait Implementations
impl Debug for EtError
[src]
impl Display for EtError
[src]
impl Error for EtError
[src]
fn description(&self) -> &str
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<'_> From<&'_ str> for EtError
[src]
impl From<Error> for EtError
[src]
impl From<FromUtf8Error> for EtError
[src]
fn from(error: FromUtf8Error) -> Self
[src]
impl From<ParseFloatError> for EtError
[src]
fn from(error: ParseFloatError) -> Self
[src]
impl From<ParseIntError> for EtError
[src]
fn from(error: ParseIntError) -> Self
[src]
impl From<String> for EtError
[src]
impl From<Utf8Error> for EtError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for EtError
impl !Send for EtError
impl !Sync for EtError
impl Unpin for EtError
impl !UnwindSafe for EtError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,