Struct AddressComparisonOptions
#[non_exhaustive]pub struct AddressComparisonOptions {
pub allow_alignment_differences: bool,
pub allow_size_differences: bool,
}
Expand description
Options for comparing MemoryAccesses
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.allow_alignment_differences: bool
Whether differences in alignment should be ignored.
allow_size_differences: bool
Whether differences in side should be ignored
Implementations§
§impl AddressComparisonOptions
impl AddressComparisonOptions
pub const fn new() -> Self
pub const fn new() -> Self
Creates new ComparisonOptions with all fields set to false
.
Trait Implementations§
§impl Clone for AddressComparisonOptions
impl Clone for AddressComparisonOptions
§fn clone(&self) -> AddressComparisonOptions
fn clone(&self) -> AddressComparisonOptions
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 more§impl Debug for AddressComparisonOptions
impl Debug for AddressComparisonOptions
§impl Default for AddressComparisonOptions
impl Default for AddressComparisonOptions
§fn default() -> AddressComparisonOptions
fn default() -> AddressComparisonOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddressComparisonOptions
impl RefUnwindSafe for AddressComparisonOptions
impl Send for AddressComparisonOptions
impl Sync for AddressComparisonOptions
impl Unpin for AddressComparisonOptions
impl UnwindSafe for AddressComparisonOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more