pub enum Tm25Error {
Truncated {
needed: usize,
have: usize,
},
BadMagic([u8; 4]),
UnsupportedVersion(i32),
SizeMismatch {
ray_start: usize,
expected: u64,
actual: u64,
},
RayCountMismatch {
expected: u64,
actual: u64,
},
InvalidHeader(String),
InvalidText {
field: &'static str,
code_point: u32,
},
Io(Error),
}Expand description
Everything that can go wrong while reading or writing a TM-25 file.
Variants§
Truncated
BadMagic([u8; 4])
UnsupportedVersion(i32)
SizeMismatch
RayCountMismatch
InvalidHeader(String)
InvalidText
Io(Error)
Trait Implementations§
Source§impl Error for Tm25Error
impl Error for Tm25Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Tm25Error
impl !UnwindSafe for Tm25Error
impl Freeze for Tm25Error
impl Send for Tm25Error
impl Sync for Tm25Error
impl Unpin for Tm25Error
impl UnsafeUnpin for Tm25Error
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