Enum miri::intptrcast::ProvenanceMode
source · pub enum ProvenanceMode {
Default,
Permissive,
Strict,
}
Variants§
Default
We support expose_addr
/from_exposed_addr
via “wildcard” provenance.
However, we want on from_exposed_addr
to alert the user of the precision loss.
Permissive
Like Default
, but without the warning.
Strict
We error on from_exposed_addr
, ensuring no precision loss.
Trait Implementations§
source§impl Clone for ProvenanceMode
impl Clone for ProvenanceMode
source§fn clone(&self) -> ProvenanceMode
fn clone(&self) -> ProvenanceMode
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 Debug for ProvenanceMode
impl Debug for ProvenanceMode
source§impl PartialEq<ProvenanceMode> for ProvenanceMode
impl PartialEq<ProvenanceMode> for ProvenanceMode
source§fn eq(&self, other: &ProvenanceMode) -> bool
fn eq(&self, other: &ProvenanceMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProvenanceMode
impl Eq for ProvenanceMode
impl StructuralEq for ProvenanceMode
impl StructuralPartialEq for ProvenanceMode
Auto Trait Implementations§
impl RefUnwindSafe for ProvenanceMode
impl Send for ProvenanceMode
impl Sync for ProvenanceMode
impl Unpin for ProvenanceMode
impl UnwindSafe for ProvenanceMode
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Default
: 0 bytesPermissive
: 0 bytesStrict
: 0 bytes