pub struct LoadedSource {
pub kind: LoadedSourceKind,
pub text: String,
pub original_url: String,
pub final_url: String,
pub raw_files: BTreeMap<String, String>,
pub debug_logs: Vec<String>,
}Expand description
Loaded source text and retained raw file map.
Fields§
§kind: LoadedSourceKindSource kind.
text: StringSource text or live-TS marker.
original_url: StringOriginal input URL/path.
final_url: StringFinal URL/path after redirects.
raw_files: BTreeMap<String, String>Raw files that should be written to the temp directory later.
debug_logs: Vec<String>Debug lines captured while loading the source.
Trait Implementations§
Source§impl Clone for LoadedSource
impl Clone for LoadedSource
Source§fn clone(&self) -> LoadedSource
fn clone(&self) -> LoadedSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoadedSource
impl Debug for LoadedSource
impl Eq for LoadedSource
Source§impl PartialEq for LoadedSource
impl PartialEq for LoadedSource
Source§fn eq(&self, other: &LoadedSource) -> bool
fn eq(&self, other: &LoadedSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoadedSource
Auto Trait Implementations§
impl Freeze for LoadedSource
impl RefUnwindSafe for LoadedSource
impl Send for LoadedSource
impl Sync for LoadedSource
impl Unpin for LoadedSource
impl UnsafeUnpin for LoadedSource
impl UnwindSafe for LoadedSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.