pub enum Crc32Option {
Calculate,
Custom(u32),
Skip,
}Expand description
Options for CRC32 calculation in ZIP files.
Variants§
Calculate
Calculate CRC32 automatically from the data.
Custom(u32)
Use a custom CRC32 value and skip calculation.
Skip
Skip CRC32 calculation entirely (sets CRC32 to 0).
Implementations§
Source§impl Crc32Option
impl Crc32Option
Sourcepub fn initial_value(&self) -> u32
pub fn initial_value(&self) -> u32
Returns the initial CRC32 value for this option.
Trait Implementations§
Source§impl Clone for Crc32Option
impl Clone for Crc32Option
Source§fn clone(&self) -> Crc32Option
fn clone(&self) -> Crc32Option
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 Crc32Option
impl Debug for Crc32Option
Source§impl Default for Crc32Option
impl Default for Crc32Option
Source§fn default() -> Crc32Option
fn default() -> Crc32Option
Returns the “default value” for a type. Read more
impl Copy for Crc32Option
Auto Trait Implementations§
impl Freeze for Crc32Option
impl RefUnwindSafe for Crc32Option
impl Send for Crc32Option
impl Sync for Crc32Option
impl Unpin for Crc32Option
impl UnwindSafe for Crc32Option
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