pub struct SrcMatcherConfig {
pub l_step: usize,
pub max_src_win_size: Option<usize>,
}
Expand description
Configuration for the SrcMatcher.
Fields§
§l_step: usize
How much to advance the Large Hash between storing a src hash. Larger value means faster, but might miss good matches.
max_src_win_size: Option<usize>
The maximum size of the source window. This is how many bytes to assess and store hashes for. Larger values consider more matches, but might hash excessively slowing down encoder. Leave blank for dynamic calculation.
Implementations§
Source§impl SrcMatcherConfig
impl SrcMatcherConfig
Sourcepub fn new(l_step: usize, max_src_win_size: Option<usize>) -> Self
pub fn new(l_step: usize, max_src_win_size: Option<usize>) -> Self
Creates a new SrcMatcherConfig with the given parameters. l_step: How much to advance the Large Hash between storing a src hash. max_src_win_size: The maximum size of the source window.
Sourcepub fn comp_level(level: usize) -> Self
pub fn comp_level(level: usize) -> Self
Creates a new SrcMatcherConfig with the given compression level. level: The compression level to use. Must be between 0 and 9. The higher the level the more accurate the matches but slower.
Trait Implementations§
Source§impl Clone for SrcMatcherConfig
impl Clone for SrcMatcherConfig
Source§fn clone(&self) -> SrcMatcherConfig
fn clone(&self) -> SrcMatcherConfig
Returns a copy of the value. Read more
1.0.0 · 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 SrcMatcherConfig
impl Debug for SrcMatcherConfig
Auto Trait Implementations§
impl Freeze for SrcMatcherConfig
impl RefUnwindSafe for SrcMatcherConfig
impl Send for SrcMatcherConfig
impl Sync for SrcMatcherConfig
impl Unpin for SrcMatcherConfig
impl UnwindSafe for SrcMatcherConfig
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