Struct swc_common::FileLines
source · [−]pub struct FileLines {
pub file: Lrc<SourceFile>,
pub lines: Vec<LineInfo>,
}
Expand description
Note: This struct intentionally does not implement rkyv’s archieve to avoid redundant data copy (https://github.com/swc-project/swc/issues/5471) source_map_proxy constructs plugin-side Loc instead with shared SourceFile instance.
Fields
file: Lrc<SourceFile>
lines: Vec<LineInfo>
Auto Trait Implementations
impl RefUnwindSafe for FileLines
impl Send for FileLines
impl Sync for FileLines
impl Unpin for FileLines
impl UnwindSafe for FileLines
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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