pub struct BitmapRangeComparison {
pub signed_data: bool,
pub comparison_type: QueryRangeComparisonType,
pub size: u32,
pub start: u32,
pub stop: u32,
pub mask: Option<Box<[u8]>>,
pub file: FileOffset,
}
Expand description
Check if the content of a file is (not) contained in the sent bitmap values
Fields§
§signed_data: bool
§comparison_type: QueryRangeComparisonType
§size: u32
§start: u32
ALP SPEC: In theory, start and stop can be huge array thus impossible to cast into any trivial number. For simplicity’s sake, this library encodes them in a u32.
stop: u32
§mask: Option<Box<[u8]>>
§file: FileOffset
Implementations§
source§impl BitmapRangeComparison
impl BitmapRangeComparison
pub fn validate(&self) -> Result<(), QueryValidationError>
Trait Implementations§
source§impl Clone for BitmapRangeComparison
impl Clone for BitmapRangeComparison
source§fn clone(&self) -> BitmapRangeComparison
fn clone(&self) -> BitmapRangeComparison
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 BitmapRangeComparison
impl Codec for BitmapRangeComparison
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 BitmapRangeComparison
impl Debug for BitmapRangeComparison
source§impl Display for BitmapRangeComparison
impl Display for BitmapRangeComparison
source§impl PartialEq for BitmapRangeComparison
impl PartialEq for BitmapRangeComparison
source§fn eq(&self, other: &BitmapRangeComparison) -> bool
fn eq(&self, other: &BitmapRangeComparison) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BitmapRangeComparison
Auto Trait Implementations§
impl Freeze for BitmapRangeComparison
impl RefUnwindSafe for BitmapRangeComparison
impl Send for BitmapRangeComparison
impl Sync for BitmapRangeComparison
impl Unpin for BitmapRangeComparison
impl UnwindSafe for BitmapRangeComparison
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