pub struct SourceMapEntry {
pub ir_path: JsonPointer,
pub file: String,
pub span: SourceSpan,
pub origin: Option<Vec<MacroOriginFrame>>,
}Expand description
One source-map entry.
Fields§
§ir_path: JsonPointerRFC 6901 JSON Pointer into this FlowIR document.
file: StringThe YAML source file.
span: SourceSpanThe source span.
origin: Option<Vec<MacroOriginFrame>>Macro expansion chain, innermost first. Present iff the IR node was produced by macro expansion — the only structural residue macros leave in the IR (02 §7).
Trait Implementations§
Source§impl Clone for SourceMapEntry
impl Clone for SourceMapEntry
Source§fn clone(&self) -> SourceMapEntry
fn clone(&self) -> SourceMapEntry
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 SourceMapEntry
impl Debug for SourceMapEntry
Source§impl<'de> Deserialize<'de> for SourceMapEntry
impl<'de> Deserialize<'de> for SourceMapEntry
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
Source§impl JsonSchema for SourceMapEntry
impl JsonSchema for SourceMapEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SourceMapEntry
impl PartialEq for SourceMapEntry
Source§impl Serialize for SourceMapEntry
impl Serialize for SourceMapEntry
impl StructuralPartialEq for SourceMapEntry
Auto Trait Implementations§
impl Freeze for SourceMapEntry
impl RefUnwindSafe for SourceMapEntry
impl Send for SourceMapEntry
impl Sync for SourceMapEntry
impl Unpin for SourceMapEntry
impl UnsafeUnpin for SourceMapEntry
impl UnwindSafe for SourceMapEntry
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