Struct swc_plugin::utils::swc_common::source_map::ArchivedSourceFile
source · [−]#[repr(C,)]pub struct ArchivedSourceFile where
FileName: Archive,
bool: Archive,
Option<FileName>: Archive,
u32: Archive,
Rc<String>: Archive,
u128: Archive,
BytePos: Archive,
Vec<BytePos, Global>: Archive,
Vec<MultiByteChar, Global>: Archive,
Vec<NonNarrowChar, Global>: Archive, {
pub name: <FileName as Archive>::Archived,
pub name_was_remapped: <bool as Archive>::Archived,
pub unmapped_path: <Option<FileName> as Archive>::Archived,
pub crate_of_origin: <u32 as Archive>::Archived,
pub src: <Rc<String> as Archive>::Archived,
pub src_hash: <u128 as Archive>::Archived,
pub start_pos: <BytePos as Archive>::Archived,
pub end_pos: <BytePos as Archive>::Archived,
pub lines: <Vec<BytePos, Global> as Archive>::Archived,
pub multibyte_chars: <Vec<MultiByteChar, Global> as Archive>::Archived,
pub non_narrow_chars: <Vec<NonNarrowChar, Global> as Archive>::Archived,
pub name_hash: <u128 as Archive>::Archived,
}
Expand description
An archived SourceFile
Fields
name: <FileName as Archive>::Archived
The archived counterpart of SourceFile::name
name_was_remapped: <bool as Archive>::Archived
The archived counterpart of SourceFile::name_was_remapped
unmapped_path: <Option<FileName> as Archive>::Archived
The archived counterpart of SourceFile::unmapped_path
crate_of_origin: <u32 as Archive>::Archived
The archived counterpart of SourceFile::crate_of_origin
src: <Rc<String> as Archive>::Archived
The archived counterpart of SourceFile::src
src_hash: <u128 as Archive>::Archived
The archived counterpart of SourceFile::src_hash
start_pos: <BytePos as Archive>::Archived
The archived counterpart of SourceFile::start_pos
end_pos: <BytePos as Archive>::Archived
The archived counterpart of SourceFile::end_pos
lines: <Vec<BytePos, Global> as Archive>::Archived
The archived counterpart of SourceFile::lines
multibyte_chars: <Vec<MultiByteChar, Global> as Archive>::Archived
The archived counterpart of SourceFile::multibyte_chars
non_narrow_chars: <Vec<NonNarrowChar, Global> as Archive>::Archived
The archived counterpart of SourceFile::non_narrow_chars
name_hash: <u128 as Archive>::Archived
The archived counterpart of SourceFile::name_hash
Trait Implementations
sourceimpl<__C> CheckBytes<__C> for ArchivedSourceFile where
__C: ?Sized,
FileName: Archive,
bool: Archive,
Option<FileName>: Archive,
u32: Archive,
Rc<String>: Archive,
u128: Archive,
BytePos: Archive,
Vec<BytePos, Global>: Archive,
Vec<MultiByteChar, Global>: Archive,
Vec<NonNarrowChar, Global>: Archive,
<FileName as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<Option<FileName> as Archive>::Archived: CheckBytes<__C>,
<u32 as Archive>::Archived: CheckBytes<__C>,
<Rc<String> as Archive>::Archived: CheckBytes<__C>,
<u128 as Archive>::Archived: CheckBytes<__C>,
<BytePos as Archive>::Archived: CheckBytes<__C>,
<Vec<BytePos, Global> as Archive>::Archived: CheckBytes<__C>,
<Vec<MultiByteChar, Global> as Archive>::Archived: CheckBytes<__C>,
<Vec<NonNarrowChar, Global> as Archive>::Archived: CheckBytes<__C>,
impl<__C> CheckBytes<__C> for ArchivedSourceFile where
__C: ?Sized,
FileName: Archive,
bool: Archive,
Option<FileName>: Archive,
u32: Archive,
Rc<String>: Archive,
u128: Archive,
BytePos: Archive,
Vec<BytePos, Global>: Archive,
Vec<MultiByteChar, Global>: Archive,
Vec<NonNarrowChar, Global>: Archive,
<FileName as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<Option<FileName> as Archive>::Archived: CheckBytes<__C>,
<u32 as Archive>::Archived: CheckBytes<__C>,
<Rc<String> as Archive>::Archived: CheckBytes<__C>,
<u128 as Archive>::Archived: CheckBytes<__C>,
<BytePos as Archive>::Archived: CheckBytes<__C>,
<Vec<BytePos, Global> as Archive>::Archived: CheckBytes<__C>,
<Vec<MultiByteChar, Global> as Archive>::Archived: CheckBytes<__C>,
<Vec<NonNarrowChar, Global> as Archive>::Archived: CheckBytes<__C>,
type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
sourceunsafe fn check_bytes<'__bytecheck>(
value: *const ArchivedSourceFile,
context: &mut __C
) -> Result<&'__bytecheck ArchivedSourceFile, <ArchivedSourceFile as CheckBytes<__C>>::Error>
unsafe fn check_bytes<'__bytecheck>(
value: *const ArchivedSourceFile,
context: &mut __C
) -> Result<&'__bytecheck ArchivedSourceFile, <ArchivedSourceFile as CheckBytes<__C>>::Error>
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
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
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.
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
impl<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,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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