Enum cairo_lang_filesystem::ids::CodeOrigin
source · pub enum CodeOrigin {
Start(TextOffset),
Span(TextSpan),
}
Expand description
The origin of a code mapping.
Variants§
Start(TextOffset)
The origin is a copied node staring at the given offset.
Span(TextSpan)
The origin was generated from this span, but there’s no direct mapping.
Trait Implementations§
source§impl Clone for CodeOrigin
impl Clone for CodeOrigin
source§fn clone(&self) -> CodeOrigin
fn clone(&self) -> CodeOrigin
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 CodeOrigin
impl Debug for CodeOrigin
source§impl Hash for CodeOrigin
impl Hash for CodeOrigin
source§impl PartialEq for CodeOrigin
impl PartialEq for CodeOrigin
source§fn eq(&self, other: &CodeOrigin) -> bool
fn eq(&self, other: &CodeOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CodeOrigin
impl StructuralPartialEq for CodeOrigin
Auto Trait Implementations§
impl RefUnwindSafe for CodeOrigin
impl Send for CodeOrigin
impl Sync for CodeOrigin
impl Unpin for CodeOrigin
impl UnwindSafe for CodeOrigin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.