Enum solang_parser::pt::Loc
source · Expand description
file no, start offset, end offset (in bytes)
Variants§
Implementations§
source§impl Loc
impl Loc
pub fn begin_range(&self) -> Self
pub fn end_range(&self) -> Self
pub fn file_no(&self) -> usize
sourcepub fn try_file_no(&self) -> Option<usize>
pub fn try_file_no(&self) -> Option<usize>
Return the file_no if the location is in a file
pub fn start(&self) -> usize
pub fn end(&self) -> usize
pub fn use_end_from(&mut self, other: &Loc)
pub fn use_start_from(&mut self, other: &Loc)
Trait Implementations§
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