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 VcValueTrait for Box<dyn EcmascriptParsable>
impl VcValueTrait for Box<dyn EcmascriptParsable>
type ValueTrait = dyn EcmascriptParsable
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.