#[non_exhaustive]pub struct EncodeOptions {
pub max_match_candidates: usize,
pub max_match_distance: usize,
pub lazy_matching: bool,
pub lazy_lookahead: usize,
pub try_audio: bool,
}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.max_match_candidates: usize§max_match_distance: usize§lazy_matching: bool§lazy_lookahead: usize§try_audio: boolImplementations§
Source§impl EncodeOptions
impl EncodeOptions
pub const fn new(max_match_candidates: usize) -> Self
pub const fn with_max_match_distance(self, distance: usize) -> Self
pub const fn with_lazy_matching(self, enabled: bool) -> Self
pub const fn with_lazy_lookahead(self, bytes: usize) -> Self
pub const fn with_try_audio(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for EncodeOptions
impl Clone for EncodeOptions
Source§fn clone(&self) -> EncodeOptions
fn clone(&self) -> EncodeOptions
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 EncodeOptions
impl Debug for EncodeOptions
Source§impl Default for EncodeOptions
impl Default for EncodeOptions
Source§impl PartialEq for EncodeOptions
impl PartialEq for EncodeOptions
Source§fn eq(&self, other: &EncodeOptions) -> bool
fn eq(&self, other: &EncodeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EncodeOptions
impl Eq for EncodeOptions
impl StructuralPartialEq for EncodeOptions
Auto Trait Implementations§
impl Freeze for EncodeOptions
impl RefUnwindSafe for EncodeOptions
impl Send for EncodeOptions
impl Sync for EncodeOptions
impl Unpin for EncodeOptions
impl UnsafeUnpin for EncodeOptions
impl UnwindSafe for EncodeOptions
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