pub struct ComparisonWithValue {
pub signed_data: bool,
pub comparison_type: QueryComparisonType,
pub size: u32,
pub mask: Option<Box<[u8]>>,
pub value: Box<[u8]>,
pub file: FileOffset,
}
Expand description
Compare some file content optionally masked, with a value
Fields§
§signed_data: bool
§comparison_type: QueryComparisonType
§size: u32
§mask: Option<Box<[u8]>>
§value: Box<[u8]>
§file: FileOffset
Implementations§
source§impl ComparisonWithValue
impl ComparisonWithValue
pub fn validate(&self) -> Result<(), QueryValidationError>
Trait Implementations§
source§impl Clone for ComparisonWithValue
impl Clone for ComparisonWithValue
source§fn clone(&self) -> ComparisonWithValue
fn clone(&self) -> ComparisonWithValue
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 Codec for ComparisonWithValue
impl Codec for ComparisonWithValue
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 ComparisonWithValue
impl Debug for ComparisonWithValue
source§impl Display for ComparisonWithValue
impl Display for ComparisonWithValue
source§impl PartialEq for ComparisonWithValue
impl PartialEq for ComparisonWithValue
source§fn eq(&self, other: &ComparisonWithValue) -> bool
fn eq(&self, other: &ComparisonWithValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComparisonWithValue
Auto Trait Implementations§
impl Freeze for ComparisonWithValue
impl RefUnwindSafe for ComparisonWithValue
impl Send for ComparisonWithValue
impl Sync for ComparisonWithValue
impl Unpin for ComparisonWithValue
impl UnwindSafe for ComparisonWithValue
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