pub struct RawSourceMapLite<'a> {
pub version: u32,
pub file: Option<String>,
pub source_root: Option<String>,
pub sources: Vec<Option<String>>,
pub names: Vec<String>,
pub mappings: &'a str,
pub ignore_list: Option<Vec<u32>>,
pub x_google_ignore_list: Option<Vec<u32>>,
pub debug_id: Option<String>,
pub scopes: Option<&'a str>,
pub range_mappings: Option<&'a str>,
pub sections: Option<Vec<Value>>,
}Expand description
Lightweight version that skips sourcesContent allocation. Used by WASM bindings where sourcesContent is kept JS-side.
Note: Indexed/sectioned source maps are detected via the sections field
and must be rejected by callers (LazySourceMap does not support them).
Fields§
§version: u32§file: Option<String>§source_root: Option<String>§sources: Vec<Option<String>>§names: Vec<String>§mappings: &'a str§ignore_list: Option<Vec<u32>>§x_google_ignore_list: Option<Vec<u32>>§debug_id: Option<String>§scopes: Option<&'a str>§range_mappings: Option<&'a str>§sections: Option<Vec<Value>>Indexed source maps use sections instead of mappings.
Presence is checked to reject indexed maps in lazy parse paths.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for RawSourceMapLite<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawSourceMapLite<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for RawSourceMapLite<'a>
impl<'a> RefUnwindSafe for RawSourceMapLite<'a>
impl<'a> Send for RawSourceMapLite<'a>
impl<'a> Sync for RawSourceMapLite<'a>
impl<'a> Unpin for RawSourceMapLite<'a>
impl<'a> UnsafeUnpin for RawSourceMapLite<'a>
impl<'a> UnwindSafe for RawSourceMapLite<'a>
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