Struct bytecode::mut_ref_instrumentation::Loc
pub struct Loc { /* private fields */ }
Expand description
Locations
A location, consisting of a FileId and a span in this file.
Implementations§
§impl Loc
impl Loc
§impl Loc
impl Loc
pub fn display<'env>(&'env self, env: &'env GlobalEnv) -> LocDisplay<'env>
pub fn display_line_only<'env>( &'env self, env: &'env GlobalEnv ) -> LocDisplay<'env>
Trait Implementations§
§impl Ord for Loc
impl Ord for Loc
§impl PartialOrd<Loc> for Loc
impl PartialOrd<Loc> for Loc
§fn partial_cmp(&self, other: &Loc) -> Option<Ordering>
fn partial_cmp(&self, other: &Loc) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Loc
impl StructuralEq for Loc
impl StructuralPartialEq for Loc
Auto Trait Implementations§
impl RefUnwindSafe for Loc
impl Send for Loc
impl Sync for Loc
impl Unpin for Loc
impl UnwindSafe for Loc
Blanket Implementations§
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.