Struct rustc_span::NormalizedPos
source · [−]Expand description
Identifies an offset of a character that was normalized away from SourceFile
.
Fields
pos: BytePos
The absolute offset of the character in the SourceMap
.
diff: u32
The difference between original and normalized string at position.
Trait Implementations
sourceimpl Clone for NormalizedPos
impl Clone for NormalizedPos
sourcefn clone(&self) -> NormalizedPos
fn clone(&self) -> NormalizedPos
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NormalizedPos
impl Debug for NormalizedPos
sourceimpl<__D: Decoder> Decodable<__D> for NormalizedPos
impl<__D: Decoder> Decodable<__D> for NormalizedPos
sourceimpl<__E: Encoder> Encodable<__E> for NormalizedPos
impl<__E: Encoder> Encodable<__E> for NormalizedPos
sourceimpl PartialEq<NormalizedPos> for NormalizedPos
impl PartialEq<NormalizedPos> for NormalizedPos
sourcefn eq(&self, other: &NormalizedPos) -> bool
fn eq(&self, other: &NormalizedPos) -> bool
impl Copy for NormalizedPos
impl Eq for NormalizedPos
impl StructuralEq for NormalizedPos
impl StructuralPartialEq for NormalizedPos
Auto Trait Implementations
impl RefUnwindSafe for NormalizedPos
impl Send for NormalizedPos
impl Sync for NormalizedPos
impl Unpin for NormalizedPos
impl UnwindSafe for NormalizedPos
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes