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