pub struct StringTokenSearch {
pub max_errors: u8,
pub size: u32,
pub mask: Option<Box<[u8]>>,
pub value: Box<[u8]>,
pub file: FileOffset,
}
Expand description
Compare some file content, optional masked, with an array of bytes and up to a certain number of errors.
Fields§
§max_errors: u8
§size: u32
§mask: Option<Box<[u8]>>
§value: Box<[u8]>
§file: FileOffset
Implementations§
Source§impl StringTokenSearch
impl StringTokenSearch
pub fn validate(&self) -> Result<(), QueryValidationError>
Trait Implementations§
Source§impl Clone for StringTokenSearch
impl Clone for StringTokenSearch
Source§fn clone(&self) -> StringTokenSearch
fn clone(&self) -> StringTokenSearch
Returns a duplicate 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 Codec for StringTokenSearch
impl Codec for StringTokenSearch
type Error = QueryOperandDecodingError
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Computes the number of bytes required to encode the item.
Source§unsafe fn encode_in(&self, out: &mut [u8]) -> usize
unsafe fn encode_in(&self, out: &mut [u8]) -> usize
Encode the item into a given byte array. Read more
Source§impl Debug for StringTokenSearch
impl Debug for StringTokenSearch
Source§impl Display for StringTokenSearch
impl Display for StringTokenSearch
Source§impl PartialEq for StringTokenSearch
impl PartialEq for StringTokenSearch
impl StructuralPartialEq for StringTokenSearch
Auto Trait Implementations§
impl Freeze for StringTokenSearch
impl RefUnwindSafe for StringTokenSearch
impl Send for StringTokenSearch
impl Sync for StringTokenSearch
impl Unpin for StringTokenSearch
impl UnwindSafe for StringTokenSearch
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