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§
source§impl Clone for NormalizedPos
impl Clone for NormalizedPos
source§fn clone(&self) -> NormalizedPos
fn clone(&self) -> NormalizedPos
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 NormalizedPos
impl Debug for NormalizedPos
source§impl<__D: Decoder> Decodable<__D> for NormalizedPos
impl<__D: Decoder> Decodable<__D> for NormalizedPos
source§impl<__E: Encoder> Encodable<__E> for NormalizedPos
impl<__E: Encoder> Encodable<__E> for NormalizedPos
source§impl PartialEq<NormalizedPos> for NormalizedPos
impl PartialEq<NormalizedPos> for NormalizedPos
source§fn 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§
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