Struct lucia_lang::utils::Location
source · pub struct Location {
pub lineno: u32,
pub column: u32,
pub offset: u32,
}Expand description
Location of token in the code.
Fields§
§lineno: u32The lineno.
column: u32The column.
offset: u32The character offset, counting from 0.
Trait Implementations§
source§impl PartialEq<Location> for Location
impl PartialEq<Location> for Location
impl Copy for Location
impl Eq for Location
impl StructuralEq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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.