pub trait EcmascriptParsable:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn failsafe_parse(self: Vc<Self>) -> Vc<ParseResult>
where Self: Sized;
fn parse_original(self: Vc<Self>) -> Vc<ParseResult>
where Self: Sized;
fn ty(self: Vc<Self>) -> Vc<EcmascriptModuleAssetType>
where Self: Sized;
}Required Methods§
fn failsafe_parse(self: Vc<Self>) -> Vc<ParseResult>where
Self: Sized,
fn parse_original(self: Vc<Self>) -> Vc<ParseResult>where
Self: Sized,
fn ty(self: Vc<Self>) -> Vc<EcmascriptModuleAssetType>where
Self: Sized,
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn EcmascriptParsable>
impl TraitVtablePrototype for Box<dyn EcmascriptParsable>
Source§impl VcValueTrait for Box<dyn EcmascriptParsable>
impl VcValueTrait for Box<dyn EcmascriptParsable>
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 EcmascriptParsable
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 EcmascriptParsable>> for Box<dyn EcmascriptParsable>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn EcmascriptParsable>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn EcmascriptParsable>> for Box<dyn EcmascriptParsable>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn EcmascriptParsable>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn EcmascriptParsable>
Available on debug-assertions enabled only.