Enum miri::borrow_tracker::BorrowTrackerMethod
source · pub enum BorrowTrackerMethod {
StackedBorrows,
TreeBorrows,
}
Expand description
Which borrow tracking method to use
Variants§
StackedBorrows
Stacked Borrows, as implemented in borrow_tracker/stacked_borrows
TreeBorrows
Tree borrows, as implemented in borrow_tracker/tree_borrows
Implementations§
source§impl BorrowTrackerMethod
impl BorrowTrackerMethod
pub fn instantiate_global_state( self, config: &MiriConfig, ) -> RefCell<GlobalStateInner>
Trait Implementations§
source§impl Clone for BorrowTrackerMethod
impl Clone for BorrowTrackerMethod
source§fn clone(&self) -> BorrowTrackerMethod
fn clone(&self) -> BorrowTrackerMethod
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 BorrowTrackerMethod
impl Debug for BorrowTrackerMethod
source§impl PartialEq for BorrowTrackerMethod
impl PartialEq for BorrowTrackerMethod
impl Copy for BorrowTrackerMethod
impl Eq for BorrowTrackerMethod
impl StructuralPartialEq for BorrowTrackerMethod
Auto Trait Implementations§
impl Freeze for BorrowTrackerMethod
impl RefUnwindSafe for BorrowTrackerMethod
impl Send for BorrowTrackerMethod
impl Sync for BorrowTrackerMethod
impl Unpin for BorrowTrackerMethod
impl UnwindSafe for BorrowTrackerMethod
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
)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:
StackedBorrows
: 0 bytesTreeBorrows
: 0 bytes