pub enum BinaryLayoutError {
Overflow(&'static str),
UnexpectedEof(&'static str),
BoundsExceeded(String),
}Expand description
Shared binary layout/read error used by low-level format helpers.
Variants§
Overflow(&'static str)
Integer/index arithmetic overflow while computing offsets or sizes.
UnexpectedEof(&'static str)
Requested read exceeds available input bytes.
BoundsExceeded(String)
Named region exceeds the allowed bounds.
Trait Implementations§
Source§impl Clone for BinaryLayoutError
impl Clone for BinaryLayoutError
Source§fn clone(&self) -> BinaryLayoutError
fn clone(&self) -> BinaryLayoutError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryLayoutError
impl Debug for BinaryLayoutError
Source§impl Display for BinaryLayoutError
impl Display for BinaryLayoutError
Source§impl Error for BinaryLayoutError
impl Error for BinaryLayoutError
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<BinaryLayoutError> for BifBinaryError
impl From<BinaryLayoutError> for BifBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for BwmBinaryError
impl From<BinaryLayoutError> for BwmBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for DdsBinaryError
impl From<BinaryLayoutError> for DdsBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for ErfBinaryError
impl From<BinaryLayoutError> for ErfBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for GffBinaryError
impl From<BinaryLayoutError> for GffBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for KeyBinaryError
impl From<BinaryLayoutError> for KeyBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for LipBinaryError
impl From<BinaryLayoutError> for LipBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for MdlError
impl From<BinaryLayoutError> for MdlError
Source§fn from(source: BinaryLayoutError) -> Self
fn from(source: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for RimBinaryError
impl From<BinaryLayoutError> for RimBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for SsfBinaryError
impl From<BinaryLayoutError> for SsfBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for TlkBinaryError
impl From<BinaryLayoutError> for TlkBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for TpcBinaryError
impl From<BinaryLayoutError> for TpcBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryLayoutError> for TwoDaBinaryError
impl From<BinaryLayoutError> for TwoDaBinaryError
Source§fn from(error: BinaryLayoutError) -> Self
fn from(error: BinaryLayoutError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BinaryLayoutError
impl PartialEq for BinaryLayoutError
impl Eq for BinaryLayoutError
impl StructuralPartialEq for BinaryLayoutError
Auto Trait Implementations§
impl Freeze for BinaryLayoutError
impl RefUnwindSafe for BinaryLayoutError
impl Send for BinaryLayoutError
impl Sync for BinaryLayoutError
impl Unpin for BinaryLayoutError
impl UnwindSafe for BinaryLayoutError
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.