pub struct OriginalLocation {
pub original_line: u32,
pub original_column: u32,
pub source: u32,
pub name: Option<u32>,
}Expand description
An original source location referenced by a generated source map mapping.
Fields§
§original_line: u32The zero-based line number in the original source.
original_column: u32The zero-based column number in the original source.
source: u32The source index in the source map.
name: Option<u32>The optional name index in the source map.
Trait Implementations§
Source§impl Clone for OriginalLocation
impl Clone for OriginalLocation
impl Copy for OriginalLocation
Source§impl Debug for OriginalLocation
impl Debug for OriginalLocation
impl Eq for OriginalLocation
Source§impl PartialEq for OriginalLocation
impl PartialEq for OriginalLocation
impl StructuralPartialEq for OriginalLocation
Auto Trait Implementations§
impl Forget for OriginalLocation
impl Freeze for OriginalLocation
impl Move for OriginalLocation
impl RefUnwindSafe for OriginalLocation
impl Send for OriginalLocation
impl Sync for OriginalLocation
impl Unpin for OriginalLocation
impl UnsafeUnpin for OriginalLocation
impl UnwindSafe for OriginalLocation
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more