pub struct SourceMap<UL> {
pub mappings: HashMap<SourceMapLocation, UL>,
}Expand description
What each place in a script came from in the original source.
UL is whatever the frontend wants to point at: a line and column, a file
name, a node id in a graph. A frontend fills this in while it produces the
script, and a debugger reads it back.
Fields§
§mappings: HashMap<SourceMapLocation, UL>Source location of each place in the script.
Implementations§
Trait Implementations§
Source§impl<'de, UL> Deserialize<'de> for SourceMap<UL>where
UL: Deserialize<'de>,
impl<'de, UL> Deserialize<'de> for SourceMap<UL>where
UL: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceMap<UL>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceMap<UL>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<UL> Serialize for SourceMap<UL>where
UL: Serialize,
impl<UL> Serialize for SourceMap<UL>where
UL: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<UL> Freeze for SourceMap<UL>
impl<UL> RefUnwindSafe for SourceMap<UL>
impl<UL> Send for SourceMap<UL>
impl<UL> Sync for SourceMap<UL>
impl<UL> Unpin for SourceMap<UL>
impl<UL> UnsafeUnpin for SourceMap<UL>
impl<UL> UnwindSafe for SourceMap<UL>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
Source§fn initialize() -> T
fn initialize() -> T
Returns the initial value of this type.