#[non_exhaustive]pub enum Compression {
None,
Gzip,
Zstd,
}Expand description
How a written ɴsɪ stream is compressed.
A compressed stream decompresses to exactly the plain one, so this is a property of the file rather than of the format.
Only gzip is read by 3Delight. renderdl reads a .nsi.gz
wherever it reads a .nsi; handed a zstd stream it fails with
Invalid char, and a context configured with
streamcompression="zstd" writes plain text. So
Compression::Zstd is for consumers of this crate – archives,
caches, transport – and a file written with it is not something the
renderer will read back.
Each variant beyond Compression::None costs a dependency and is
behind the feature of the same name, so a consumer that wants neither
pays for neither.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
Write the stream as-is.
Gzip
gzip, which 3Delight reads.
Zstd
Zstandard.
Not readable by 3Delight 2.9.207; see the type documentation.
Implementations§
Source§impl Compression
impl Compression
Sourcepub const fn extension(self) -> &'static str
pub const fn extension(self) -> &'static str
The conventional file-name suffix, appended to .nsi.
Empty for Compression::None.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
impl Copy for Compression
Source§impl Debug for Compression
impl Debug for Compression
Source§impl Default for Compression
impl Default for Compression
impl Eq for Compression
Source§impl Hash for Compression
impl Hash for Compression
Source§impl PartialEq for Compression
impl PartialEq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnsafeUnpin for Compression
impl UnwindSafe for Compression
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.