#[repr(transparent)]pub struct ExprExt(_);
Expand description
A structure containing additional parameters related to an expression.
Implementations
sourceimpl ExprExt
impl ExprExt
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if the expression contains no additional parameters.
sourcepub fn min_offset(&self) -> Option<u64>
pub fn min_offset(&self) -> Option<u64>
The minimum end offset in the data stream at which this expression should match successfully.
sourcepub fn max_offset(&self) -> Option<u64>
pub fn max_offset(&self) -> Option<u64>
The maximum end offset in the data stream at which this expression should match successfully.
sourcepub fn min_length(&self) -> Option<u64>
pub fn min_length(&self) -> Option<u64>
The minimum match length (from start to end) required to successfully match this expression.
sourcepub fn edit_distance(&self) -> Option<u32>
pub fn edit_distance(&self) -> Option<u32>
Allow patterns to approximately match within this edit distance.
sourcepub fn hamming_distance(&self) -> Option<u32>
pub fn hamming_distance(&self) -> Option<u32>
Allow patterns to approximately match within this Hamming distance.
sourcepub fn set_min_offset(&mut self, min_offset: u64) -> &mut Self
pub fn set_min_offset(&mut self, min_offset: u64) -> &mut Self
Sets the value for the minimum end offset in the data stream at which this expression should match successfully.
sourcepub fn set_max_offset(&mut self, max_offset: u64) -> &mut Self
pub fn set_max_offset(&mut self, max_offset: u64) -> &mut Self
Sets the value for the maximum end offset in the data stream at which this expression should match successfully.
sourcepub fn set_min_length(&mut self, min_length: u64) -> &mut Self
pub fn set_min_length(&mut self, min_length: u64) -> &mut Self
Sets the value for the minimum match length (from start to end) required to successfully match this expression.
sourcepub fn set_edit_distance(&mut self, edit_distance: u32) -> &mut Self
pub fn set_edit_distance(&mut self, edit_distance: u32) -> &mut Self
Sets the value that allow patterns to approximately match within this edit distance.
sourcepub fn set_hamming_distance(&mut self, hamming_distance: u32) -> &mut Self
pub fn set_hamming_distance(&mut self, hamming_distance: u32) -> &mut Self
Sets the value that allow patterns to approximately match within this Hamming distance.