pub trait GenerateSourceMap:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn generate_source_map(self: Vc<Self>) -> Vc<OptionStringifiedSourceMap>
where Self: Sized;
// Provided method
fn by_section(
self: Vc<Self>,
_section: RcStr,
) -> Vc<OptionStringifiedSourceMap>
where Self: Sized { ... }
}
Expand description
Allows callers to generate source maps.
Required Methods§
Sourcefn generate_source_map(self: Vc<Self>) -> Vc<OptionStringifiedSourceMap>where
Self: Sized,
fn generate_source_map(self: Vc<Self>) -> Vc<OptionStringifiedSourceMap>where
Self: Sized,
Generates a usable source map, capable of both tracing and stringifying.
Provided Methods§
Sourcefn by_section(self: Vc<Self>, _section: RcStr) -> Vc<OptionStringifiedSourceMap>where
Self: Sized,
fn by_section(self: Vc<Self>, _section: RcStr) -> Vc<OptionStringifiedSourceMap>where
Self: Sized,
Returns an individual section of the larger source map, if found.
Trait Implementations§
Source§impl VcValueTrait for Box<dyn GenerateSourceMap>
impl VcValueTrait for Box<dyn GenerateSourceMap>
type ValueTrait = dyn GenerateSourceMap
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
Returns the vtable for an implementation of this trait.
Panics if ValueTypeId does not implement the trait.