Struct cairo_lang_filesystem::ids::CodeMapping
source · pub struct CodeMapping {
pub span: TextSpan,
pub origin: CodeOrigin,
}
Expand description
A mapping for a code rewrite.
Fields§
§span: TextSpan
§origin: CodeOrigin
Implementations§
Trait Implementations§
source§impl Clone for CodeMapping
impl Clone for CodeMapping
source§fn clone(&self) -> CodeMapping
fn clone(&self) -> CodeMapping
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 CodeMapping
impl Debug for CodeMapping
source§impl Hash for CodeMapping
impl Hash for CodeMapping
source§impl PartialEq for CodeMapping
impl PartialEq for CodeMapping
source§fn eq(&self, other: &CodeMapping) -> bool
fn eq(&self, other: &CodeMapping) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CodeMapping
impl StructuralEq for CodeMapping
impl StructuralPartialEq for CodeMapping
Auto Trait Implementations§
impl RefUnwindSafe for CodeMapping
impl Send for CodeMapping
impl Sync for CodeMapping
impl Unpin for CodeMapping
impl UnwindSafe for CodeMapping
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.