pub enum CompressionKind {
None,
Lz4,
}Expand description
On-disk compression scheme for a packed asset.
Variants§
None
Raw bytes — no compression applied. Fastest read path.
Lz4
LZ4 block compression (lz4_flex). Cheap to decompress, modest
ratio. Good default for shipping builds.
Trait Implementations§
Source§impl Clone for CompressionKind
impl Clone for CompressionKind
Source§fn clone(&self) -> CompressionKind
fn clone(&self) -> CompressionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompressionKind
impl Debug for CompressionKind
Source§impl Default for CompressionKind
impl Default for CompressionKind
Source§fn default() -> CompressionKind
fn default() -> CompressionKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompressionKind
impl<'de> Deserialize<'de> for CompressionKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompressionKind
impl PartialEq for CompressionKind
Source§fn eq(&self, other: &CompressionKind) -> bool
fn eq(&self, other: &CompressionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompressionKind
impl Serialize for CompressionKind
impl Copy for CompressionKind
impl Eq for CompressionKind
impl StructuralPartialEq for CompressionKind
Auto Trait Implementations§
impl Freeze for CompressionKind
impl RefUnwindSafe for CompressionKind
impl Send for CompressionKind
impl Sync for CompressionKind
impl Unpin for CompressionKind
impl UnsafeUnpin for CompressionKind
impl UnwindSafe for CompressionKind
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.