#[non_exhaustive]pub struct ZlibHeaderFields {
pub window_size: u32,
pub compression_level: u8,
pub dictionary_id: Option<u32>,
}Expand description
RFC 1950 header fields for one zlib stream.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.window_size: u32Declared LZ77 window size in bytes.
compression_level: u8Two-bit compressor level hint.
dictionary_id: Option<u32>Preset dictionary identifier. This decoder currently rejects FDICT, so
accepted analyses report None.
Trait Implementations§
Source§impl Clone for ZlibHeaderFields
impl Clone for ZlibHeaderFields
Source§fn clone(&self) -> ZlibHeaderFields
fn clone(&self) -> ZlibHeaderFields
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 moreimpl Copy for ZlibHeaderFields
Source§impl Debug for ZlibHeaderFields
impl Debug for ZlibHeaderFields
Source§impl Default for ZlibHeaderFields
impl Default for ZlibHeaderFields
Source§fn default() -> ZlibHeaderFields
fn default() -> ZlibHeaderFields
Returns the “default value” for a type. Read more
impl Eq for ZlibHeaderFields
Source§impl PartialEq for ZlibHeaderFields
impl PartialEq for ZlibHeaderFields
impl StructuralPartialEq for ZlibHeaderFields
Auto Trait Implementations§
impl Freeze for ZlibHeaderFields
impl RefUnwindSafe for ZlibHeaderFields
impl Send for ZlibHeaderFields
impl Sync for ZlibHeaderFields
impl Unpin for ZlibHeaderFields
impl UnsafeUnpin for ZlibHeaderFields
impl UnwindSafe for ZlibHeaderFields
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