Enum bevy_assetio_zip::CompressionMethod [−][src]
Identifies the storage format used to compress a file within a ZIP archive.
Each file's compression method is stored alongside it, allowing the contents to be read without context.
When creating ZIP files, you may choose the method to use with
zip::write::FileOptions::compression_method
Variants
Store the file as is
Compress the file using Deflate
Compress the file using BZIP2
Unsupported(u16)
use the constants instead
Unsupported compression method
Implementations
impl CompressionMethod
[src]
All compression methods defined for the ZIP format
pub const STORE: CompressionMethod
[src]
pub const SHRINK: CompressionMethod
[src]
pub const REDUCE_1: CompressionMethod
[src]
pub const REDUCE_2: CompressionMethod
[src]
pub const REDUCE_3: CompressionMethod
[src]
pub const REDUCE_4: CompressionMethod
[src]
pub const IMPLODE: CompressionMethod
[src]
pub const DEFLATE: CompressionMethod
[src]
pub const DEFLATE64: CompressionMethod
[src]
pub const PKWARE_IMPLODE: CompressionMethod
[src]
pub const BZIP2: CompressionMethod
[src]
pub const LZMA: CompressionMethod
[src]
pub const IBM_ZOS_CMPSC: CompressionMethod
[src]
pub const IBM_TERSE: CompressionMethod
[src]
pub const ZSTD_DEPRECATED: CompressionMethod
[src]
pub const ZSTD: CompressionMethod
[src]
pub const MP3: CompressionMethod
[src]
pub const XZ: CompressionMethod
[src]
pub const JPEG: CompressionMethod
[src]
pub const WAVPACK: CompressionMethod
[src]
pub const PPMD: CompressionMethod
[src]
impl CompressionMethod
[src]
pub fn from_u16(val: u16) -> CompressionMethod
[src]
use a constant to construct a compression method
Converts an u16 to its corresponding CompressionMethod
pub fn to_u16(self) -> u16
[src]
to match on other compression methods, use a constant
Converts a CompressionMethod to a u16
Trait Implementations
impl Clone for CompressionMethod
[src]
pub fn clone(&self) -> CompressionMethod
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompressionMethod
[src]
impl Debug for CompressionMethod
[src]
impl Display for CompressionMethod
[src]
impl Eq for CompressionMethod
[src]
impl PartialEq<CompressionMethod> for CompressionMethod
[src]
pub fn eq(&self, other: &CompressionMethod) -> bool
[src]
pub fn ne(&self, other: &CompressionMethod) -> bool
[src]
impl StructuralEq for CompressionMethod
[src]
impl StructuralPartialEq for CompressionMethod
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompressionMethod
[src]
impl Send for CompressionMethod
[src]
impl Sync for CompressionMethod
[src]
impl Unpin for CompressionMethod
[src]
impl UnwindSafe for CompressionMethod
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
T: 'static + Send + Sync + Clone,
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,