Struct move_ir_types::location::Loc
source · pub struct Loc { /* private fields */ }
Expand description
The Loc
struct is used to define a location in a file; where the file is considered to be a
vector of bytes, and the range for a given Loc
is defined by start and end index into that
byte vector
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Loc
impl<'de> Deserialize<'de> for Loc
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 Ord for Loc
impl Ord for Loc
source§impl PartialOrd<Loc> for Loc
impl PartialOrd<Loc> for Loc
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 more