Struct swc_common::source_map::ArchivedSourceFile
source · #[repr(C,)]pub struct ArchivedSourceFilewhere
FileName: Archive,
bool: Archive,
Option<FileName>: Archive,
u32: Archive,
With<Lrc<String>, EncodeArcString>: Archive,
u128: Archive,
BytePos: Archive,
Vec<BytePos>: Archive,
Vec<MultiByteChar>: Archive,
Vec<NonNarrowChar>: 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<With<Lrc<String>, EncodeArcString>>,
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<With<Lrc<String>, EncodeArcString>>
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
Trait Implementations§
source§impl<__C: ?Sized> CheckBytes<__C> for ArchivedSourceFilewhere
FileName: Archive,
bool: Archive,
Option<FileName>: Archive,
u32: Archive,
With<Lrc<String>, EncodeArcString>: Archive,
u128: Archive,
BytePos: Archive,
Vec<BytePos>: Archive,
Vec<MultiByteChar>: Archive,
Vec<NonNarrowChar>: Archive,
Archived<FileName>: CheckBytes<__C>,
Archived<bool>: CheckBytes<__C>,
Archived<Option<FileName>>: CheckBytes<__C>,
Archived<u32>: CheckBytes<__C>,
Archived<With<Lrc<String>, EncodeArcString>>: CheckBytes<__C>,
Archived<u128>: CheckBytes<__C>,
Archived<BytePos>: CheckBytes<__C>,
Archived<Vec<BytePos>>: CheckBytes<__C>,
Archived<Vec<MultiByteChar>>: CheckBytes<__C>,
Archived<Vec<NonNarrowChar>>: CheckBytes<__C>,
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSourceFilewhere FileName: Archive, bool: Archive, Option<FileName>: Archive, u32: Archive, With<Lrc<String>, EncodeArcString>: Archive, u128: Archive, BytePos: Archive, Vec<BytePos>: Archive, Vec<MultiByteChar>: Archive, Vec<NonNarrowChar>: Archive, Archived<FileName>: CheckBytes<__C>, Archived<bool>: CheckBytes<__C>, Archived<Option<FileName>>: CheckBytes<__C>, Archived<u32>: CheckBytes<__C>, Archived<With<Lrc<String>, EncodeArcString>>: CheckBytes<__C>, Archived<u128>: CheckBytes<__C>, Archived<BytePos>: CheckBytes<__C>, Archived<Vec<BytePos>>: CheckBytes<__C>, Archived<Vec<MultiByteChar>>: CheckBytes<__C>, Archived<Vec<NonNarrowChar>>: CheckBytes<__C>,
§type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
source§unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, StructCheckError>
unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C ) -> Result<&'__bytecheck Self, StructCheckError>
Checks whether the given pointer points to a valid value within the
given context. Read more
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§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.