Trait Introspectable

Source
pub trait Introspectable:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn ty(self: Vc<Self>) -> Vc<RcStr>
       where Self: Sized;

    // Provided methods
    fn title(self: Vc<Self>) -> Vc<RcStr>
       where Self: Sized { ... }
    fn details(self: Vc<Self>) -> Vc<RcStr>
       where Self: Sized { ... }
    fn children(self: Vc<Self>) -> Vc<IntrospectableChildren>
       where Self: Sized { ... }
}

Required Methods§

Source

fn ty(self: Vc<Self>) -> Vc<RcStr>
where Self: Sized,

Provided Methods§

Source

fn title(self: Vc<Self>) -> Vc<RcStr>
where Self: Sized,

Source

fn details(self: Vc<Self>) -> Vc<RcStr>
where Self: Sized,

Source

fn children(self: Vc<Self>) -> Vc<IntrospectableChildren>
where Self: Sized,

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn Introspectable>

Source§

type ValueTrait = dyn Introspectable

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

Source§

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

Source§

impl Upcast<Box<dyn Introspectable>> for Box<dyn Introspectable>

Source§

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

Implementors§