Struct jrsonnet_parser::CodeLocation
source · pub struct CodeLocation {
pub offset: usize,
pub line: usize,
pub column: usize,
pub line_start_offset: usize,
pub line_end_offset: usize,
}
Fields§
§offset: usize
§line: usize
§column: usize
§line_start_offset: usize
§line_end_offset: usize
Trait Implementations§
source§impl Clone for CodeLocation
impl Clone for CodeLocation
source§fn clone(&self) -> CodeLocation
fn clone(&self) -> CodeLocation
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 CodeLocation
impl Debug for CodeLocation
source§impl Default for CodeLocation
impl Default for CodeLocation
source§fn default() -> CodeLocation
fn default() -> CodeLocation
Returns the “default value” for a type. Read more
source§impl PartialEq<CodeLocation> for CodeLocation
impl PartialEq<CodeLocation> for CodeLocation
source§fn eq(&self, other: &CodeLocation) -> bool
fn eq(&self, other: &CodeLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CodeLocation
impl Eq for CodeLocation
impl StructuralEq for CodeLocation
impl StructuralPartialEq for CodeLocation
Auto Trait Implementations§
impl RefUnwindSafe for CodeLocation
impl Send for CodeLocation
impl Sync for CodeLocation
impl Unpin for CodeLocation
impl UnwindSafe for CodeLocation
Blanket Implementations§
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more