Struct rustc_span::NormalizedPos
source · pub struct NormalizedPos {
pub pos: RelativeBytePos,
pub diff: u32,
}
Expand description
Identifies an offset of a character that was normalized away from SourceFile
.
Fields§
§pos: RelativeBytePos
The relative offset of the character in the SourceFile
.
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<__CTX> HashStable<__CTX> for NormalizedPoswhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for NormalizedPoswhere __CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
source§impl PartialEq<NormalizedPos> for NormalizedPos
impl PartialEq<NormalizedPos> for NormalizedPos
source§fn eq(&self, other: &NormalizedPos) -> bool
fn eq(&self, other: &NormalizedPos) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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
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