pub trait GenerateSourceMap:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn generate_source_map(self: Vc<Self>) -> Vc<FileContent>
where Self: Sized;
// Provided method
fn by_section(self: Vc<Self>, _section: RcStr) -> Vc<FileContent>
where Self: Sized { ... }
}Expand description
Allows callers to generate source maps.
Required Methods§
Sourcefn generate_source_map(self: Vc<Self>) -> Vc<FileContent>where
Self: Sized,
fn generate_source_map(self: Vc<Self>) -> Vc<FileContent>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<FileContent>where
Self: Sized,
fn by_section(self: Vc<Self>, _section: RcStr) -> Vc<FileContent>where
Self: Sized,
Returns an individual section of the larger source map, if found.
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn GenerateSourceMap>
impl TraitVtablePrototype for Box<dyn GenerateSourceMap>
Source§impl VcValueTrait for Box<dyn GenerateSourceMap>
impl VcValueTrait for Box<dyn GenerateSourceMap>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated at program load by
#[ctor::ctor]
functions emitted by each #[turbo_tasks::value_impl] expansion. Read moretype ValueTrait = dyn GenerateSourceMap
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn GenerateSourceMap>> for Box<dyn GenerateSourceMap>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn GenerateSourceMap>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn GenerateSourceMap>> for Box<dyn GenerateSourceMap>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn GenerateSourceMap>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn GenerateSourceMap>
Available on debug-assertions enabled only.