Enum rustc_mir::borrow_check::places_conflict::PlaceConflictBias [−][src]
pub(crate) enum PlaceConflictBias {
Overlap,
NoOverlap,
}Expand description
When checking if a place conflicts with another place, this enum is used to influence decisions
where a place might be equal or disjoint with another place, such as if a[i] == a[j].
PlaceConflictBias::Overlap would bias toward assuming that i might equal j and that these
places overlap. PlaceConflictBias::NoOverlap assumes that for the purposes of the predicate
being run in the calling context, the conservative choice is to assume the compared indices
are disjoint (and therefore, do not overlap).
Variants
Trait Implementations
impl Clone for PlaceConflictBias[src]
impl Clone for PlaceConflictBias[src]fn clone(&self) -> PlaceConflictBias[src]
fn clone(&self) -> PlaceConflictBias[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for PlaceConflictBias[src]
impl Debug for PlaceConflictBias[src]impl PartialEq<PlaceConflictBias> for PlaceConflictBias[src]
impl PartialEq<PlaceConflictBias> for PlaceConflictBias[src]impl Copy for PlaceConflictBias[src]
impl Eq for PlaceConflictBias[src]
impl StructuralEq for PlaceConflictBias[src]
impl StructuralPartialEq for PlaceConflictBias[src]
Auto Trait Implementations
impl RefUnwindSafe for PlaceConflictBias
impl Send for PlaceConflictBias
impl Sync for PlaceConflictBias
impl Unpin for PlaceConflictBias
impl UnwindSafe for PlaceConflictBias
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]