Trait GenerateSourceMap

Source
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§

Source

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§

Source

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>

Source§

type ValueTrait = dyn GenerateSourceMap

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

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.
Source§

impl Dynamic<Box<dyn GenerateSourceMap>> for Box<dyn GenerateSourceMap>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn GenerateSourceMap>

Source§

impl Upcast<Box<dyn GenerateSourceMap>> for Box<dyn GenerateSourceMap>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn GenerateSourceMap>

Implementors§