pub trait NodeEntry:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn entry(self: Vc<Self>, data: ContentSourceData) -> Vc<NodeRenderingEntry>
where Self: Sized;
// Provided method
fn entries(self: Vc<Self>) -> Vc<NodeRenderingEntries>
where Self: Sized { ... }
}
Expand description
Trait that allows to get the entry module for rendering something in Node.js
Required Methods§
fn entry(self: Vc<Self>, data: ContentSourceData) -> Vc<NodeRenderingEntry>where
Self: Sized,
Provided Methods§
fn entries(self: Vc<Self>) -> Vc<NodeRenderingEntries>where
Self: Sized,
Trait Implementations§
Source§impl VcValueTrait for Box<dyn NodeEntry>
impl VcValueTrait for Box<dyn NodeEntry>
type ValueTrait = dyn NodeEntry
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.