Enum paralegal_spdg::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<RichLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<RichLocation, <__D as Deserializer<'de>>::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§fn from(value: Location) -> RichLocation
fn from(value: Location) -> RichLocation
Converts to this type from the input type.
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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.