Struct swc_common::source_map::ArchivedSourceFile
source · [−]#[repr()]pub struct ArchivedSourceFile where
FileName: Archive,
bool: Archive,
Option<FileName>: Archive,
u32: Archive,
Lrc<String>: Archive,
u128: Archive,
BytePos: Archive,
BytePos: Archive,
Vec<BytePos>: Archive,
Vec<MultiByteChar>: Archive,
Vec<NonNarrowChar>: Archive,
u128: Archive, {
pub name: Archived<FileName>,
pub name_was_remapped: Archived<bool>,
pub unmapped_path: Archived<Option<FileName>>,
pub crate_of_origin: Archived<u32>,
pub src: Archived<Lrc<String>>,
pub src_hash: Archived<u128>,
pub start_pos: Archived<BytePos>,
pub end_pos: Archived<BytePos>,
pub lines: Archived<Vec<BytePos>>,
pub multibyte_chars: Archived<Vec<MultiByteChar>>,
pub non_narrow_chars: Archived<Vec<NonNarrowChar>>,
pub name_hash: Archived<u128>,
}
Expand description
An archived SourceFile
Fields
name: Archived<FileName>
The archived counterpart of SourceFile::name
name_was_remapped: Archived<bool>
The archived counterpart of SourceFile::name_was_remapped
unmapped_path: Archived<Option<FileName>>
The archived counterpart of SourceFile::unmapped_path
crate_of_origin: Archived<u32>
The archived counterpart of SourceFile::crate_of_origin
src: Archived<Lrc<String>>
The archived counterpart of SourceFile::src
src_hash: Archived<u128>
The archived counterpart of SourceFile::src_hash
start_pos: Archived<BytePos>
The archived counterpart of SourceFile::start_pos
end_pos: Archived<BytePos>
The archived counterpart of SourceFile::end_pos
lines: Archived<Vec<BytePos>>
The archived counterpart of SourceFile::lines
multibyte_chars: Archived<Vec<MultiByteChar>>
The archived counterpart of SourceFile::multibyte_chars
non_narrow_chars: Archived<Vec<NonNarrowChar>>
The archived counterpart of SourceFile::non_narrow_chars
name_hash: Archived<u128>
The archived counterpart of SourceFile::name_hash
Auto Trait Implementations
impl RefUnwindSafe for ArchivedSourceFile
impl Send for ArchivedSourceFile
impl Sync for ArchivedSourceFile
impl !Unpin for ArchivedSourceFile
impl UnwindSafe for ArchivedSourceFile
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn 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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more