[−][src]Enum binread::error::Error
An error while parsing a BinRead type
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The magic value did not match the provided one
The condition of an assertion without a custom type failed
Io(Error)
An error that occured while reading from, or seeking within, the reader
A custom error, most often given from the second value passed into an assert
No variant in the enum was successful in parsing the data
Fields of NoVariantMatch
pos: usize
Methods
impl Error
[src]
pub fn custom_err<T: Any>(&self) -> Option<&T>
[src]
Gets a custom error of type T from the Error. Returns None
if the error type is not
custom or if the contained error is not of the desired type.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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, 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>,