pub enum DynamicSizeTotalSizeError {
Dynamic(DynamicSizeError),
TotalSizeInFieldIsInvalid,
}
Expand description
for some records, the zip convention choose to allow specifying the total
length in its fixed field, e.g. Zip64EndOfCentralDirectory
. Those fields
could specify a value < its fixed size, e.g. 0 which would be totally
invalid and unexpected, as it would mean that we shouldn’t even concider its
signature at this point.
Variants§
Dynamic(DynamicSizeError)
TotalSizeInFieldIsInvalid
Trait Implementations§
Source§impl Debug for DynamicSizeTotalSizeError
impl Debug for DynamicSizeTotalSizeError
Source§impl Display for DynamicSizeTotalSizeError
impl Display for DynamicSizeTotalSizeError
Source§impl Error for DynamicSizeTotalSizeError
impl Error for DynamicSizeTotalSizeError
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<DynamicSizeError> for DynamicSizeTotalSizeError
impl From<DynamicSizeError> for DynamicSizeTotalSizeError
Source§fn from(value: DynamicSizeError) -> Self
fn from(value: DynamicSizeError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DynamicSizeTotalSizeError
Auto Trait Implementations§
impl Freeze for DynamicSizeTotalSizeError
impl RefUnwindSafe for DynamicSizeTotalSizeError
impl Send for DynamicSizeTotalSizeError
impl Sync for DynamicSizeTotalSizeError
impl Unpin for DynamicSizeTotalSizeError
impl UnwindSafe for DynamicSizeTotalSizeError
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