Trait NodeEntry

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

Source

fn entry(self: Vc<Self>, data: ContentSourceData) -> Vc<NodeRenderingEntry>
where Self: Sized,

Provided Methods§

Source

fn entries(self: Vc<Self>) -> Vc<NodeRenderingEntries>
where Self: Sized,

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn NodeEntry>

Source§

type ValueTrait = dyn NodeEntry

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 NodeEntry>> for Box<dyn NodeEntry>

Source§

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

Source§

impl Upcast<Box<dyn NodeEntry>> for Box<dyn NodeEntry>

Source§

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

Implementors§

Source§

impl<T> NodeEntry for T
where T: Dynamic<Box<dyn NodeEntry>> + Send + Sync + NonLocalValue + ValueDebug,