Enum rustc_utils::mir::location_or_arg::LocationOrArg
source · pub enum LocationOrArg {
Location(Location),
Arg(Local),
}
Expand description
Used to represent dependencies of places.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for LocationOrArg
impl Clone for LocationOrArg
source§fn clone(&self) -> LocationOrArg
fn clone(&self) -> LocationOrArg
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 LocationOrArg
impl Debug for LocationOrArg
source§impl From<Local> for LocationOrArg
impl From<Local> for LocationOrArg
source§impl From<Location> for LocationOrArg
impl From<Location> for LocationOrArg
source§impl Hash for LocationOrArg
impl Hash for LocationOrArg
source§impl IndexedValue for LocationOrArg
Available on crate feature indexical
only.
impl IndexedValue for LocationOrArg
Available on crate feature
indexical
only.§type Index = LocationOrArgIndex
type Index = LocationOrArgIndex
The index for
Self
.source§impl PartialEq for LocationOrArg
impl PartialEq for LocationOrArg
source§fn eq(&self, other: &LocationOrArg) -> bool
fn eq(&self, other: &LocationOrArg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToIndex<LocationOrArg, CustomMarker> for Local
Available on crate feature indexical
only.
impl ToIndex<LocationOrArg, CustomMarker> for Local
Available on crate feature
indexical
only.source§fn to_index(self, domain: &IndexedDomain<LocationOrArg>) -> LocationOrArgIndex
fn to_index(self, domain: &IndexedDomain<LocationOrArg>) -> LocationOrArgIndex
Converts
self
to an index over T
.source§impl ToIndex<LocationOrArg, CustomMarker> for Location
Available on crate feature indexical
only.
impl ToIndex<LocationOrArg, CustomMarker> for Location
Available on crate feature
indexical
only.source§fn to_index(self, domain: &IndexedDomain<LocationOrArg>) -> LocationOrArgIndex
fn to_index(self, domain: &IndexedDomain<LocationOrArg>) -> LocationOrArgIndex
Converts
self
to an index over T
.impl Copy for LocationOrArg
impl Eq for LocationOrArg
impl StructuralEq for LocationOrArg
impl StructuralPartialEq for LocationOrArg
Auto Trait Implementations§
impl RefUnwindSafe for LocationOrArg
impl Send for LocationOrArg
impl Sync for LocationOrArg
impl Unpin for LocationOrArg
impl UnwindSafe for LocationOrArg
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> ToIndex<T, MarkerOwned> for Twhere
T: IndexedValue,
impl<T> ToIndex<T, MarkerOwned> for Twhere
T: IndexedValue,
source§fn to_index(self, domain: &IndexedDomain<T>) -> <T as IndexedValue>::Index
fn to_index(self, domain: &IndexedDomain<T>) -> <T as IndexedValue>::Index
Converts
self
to an index over T
.