Enum flowistry_pdg::pdg::RichLocation
source · pub enum RichLocation {
Location(Location),
Start,
End,
}
Expand description
Extends a MIR body’s Location
with Start
(before the first instruction) and End
(after all returns).
Variants§
Location(Location)
The point after a location in a body.
Start
The start of the body.
Note that Location::START
is different from RichLocation::Start
!
The latter is before the former in time.
End
The end of the body, after all possible return statements.
Implementations§
source§impl RichLocation
impl RichLocation
Trait Implementations§
source§impl Clone for RichLocation
impl Clone for RichLocation
source§fn clone(&self) -> RichLocation
fn clone(&self) -> RichLocation
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 RichLocation
impl Debug for RichLocation
source§impl<'de> Deserialize<'de> for RichLocation
impl<'de> Deserialize<'de> for RichLocation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for RichLocation
impl Display for RichLocation
source§impl From<Location> for RichLocation
impl From<Location> for RichLocation
source§impl Hash for RichLocation
impl Hash for RichLocation
source§impl PartialEq<RichLocation> for RichLocation
impl PartialEq<RichLocation> for RichLocation
source§fn eq(&self, other: &RichLocation) -> bool
fn eq(&self, other: &RichLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RichLocation
impl Serialize for RichLocation
impl Copy for RichLocation
impl Eq for RichLocation
impl StructuralEq for RichLocation
impl StructuralPartialEq for RichLocation
Auto Trait Implementations§
impl RefUnwindSafe for RichLocation
impl Send for RichLocation
impl Sync for RichLocation
impl Unpin for RichLocation
impl UnwindSafe for RichLocation
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