Struct mech_core::nodes::SourceRange
source · pub struct SourceRange {
pub start: SourceLocation,
pub end: SourceLocation,
}
Fields§
§start: SourceLocation
§end: SourceLocation
Trait Implementations§
source§impl Clone for SourceRange
impl Clone for SourceRange
source§fn clone(&self) -> SourceRange
fn clone(&self) -> SourceRange
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 SourceRange
impl Debug for SourceRange
source§impl Default for SourceRange
impl Default for SourceRange
Coordinates in SourceRange are 1-indexed, i.e. they directly translate human’s view to line and column numbers. Having value 0 means the range is not initialized.
source§impl<'de> Deserialize<'de> for SourceRange
impl<'de> Deserialize<'de> for SourceRange
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 Hash for SourceRange
impl Hash for SourceRange
source§impl PartialEq<SourceRange> for SourceRange
impl PartialEq<SourceRange> for SourceRange
source§fn eq(&self, other: &SourceRange) -> bool
fn eq(&self, other: &SourceRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SourceRange
impl Serialize for SourceRange
impl Copy for SourceRange
impl Eq for SourceRange
impl StructuralEq for SourceRange
impl StructuralPartialEq for SourceRange
Auto Trait Implementations§
impl RefUnwindSafe for SourceRange
impl Send for SourceRange
impl Sync for SourceRange
impl Unpin for SourceRange
impl UnwindSafe for SourceRange
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.