[][src]Struct yew::virtual_dom::vcomp::VComp

pub struct VComp<COMP: Component> { /* fields omitted */ }

A virtual component.

Methods

impl<COMP: Component> VComp<COMP>[src]

pub fn new<CHILD>(
    props: CHILD::Properties,
    scope_holder: ScopeHolder<COMP>
) -> Self where
    CHILD: Component + Renderable<CHILD>, 
[src]

This method prepares a generator to make a new instance of the Component.

Trait Implementations

impl<COMP, T> Transformer<COMP, T, T> for VComp<COMP> where
    COMP: Component
[src]

impl<'a, COMP, T> Transformer<COMP, &'a T, T> for VComp<COMP> where
    COMP: Component,
    T: Clone
[src]

impl<'a, COMP> Transformer<COMP, &'a str, String> for VComp<COMP> where
    COMP: Component
[src]

impl<'a, COMP, F, IN> Transformer<COMP, F, Callback<IN>> for VComp<COMP> where
    COMP: Component + Renderable<COMP>,
    F: Fn(IN) -> COMP::Message + 'static, 
[src]

impl<'a, COMP, F, IN> Transformer<COMP, F, Option<Callback<IN>>> for VComp<COMP> where
    COMP: Component + Renderable<COMP>,
    F: Fn(IN) -> COMP::Message + 'static, 
[src]

impl<COMP> VDiff for VComp<COMP> where
    COMP: Component + 'static, 
[src]

type Component = COMP

The component which this instance put into.

fn detach(&mut self, parent: &Element) -> Option<Node>[src]

Remove VComp from parent.

fn apply(
    &mut self,
    parent: &Element,
    previous_sibling: Option<&Node>,
    ancestor: Option<VNode<Self::Component>>,
    env: &Scope<Self::Component>
) -> Option<Node>
[src]

Renders independent component over DOM Element. It compares this with an ancestor VComp and overwrites it if it is the same type.

impl<COMP, CHILD> From<VChild<CHILD, COMP>> for VComp<COMP> where
    COMP: Component,
    CHILD: Component + Renderable<CHILD>, 
[src]

impl<COMP: Component> From<VComp<COMP>> for VNode<COMP>[src]

impl<COMP: Component> PartialEq<VComp<COMP>> for VComp<COMP>[src]

Auto Trait Implementations

impl<COMP> !Send for VComp<COMP>

impl<COMP> !Sync for VComp<COMP>

impl<COMP> Unpin for VComp<COMP>

impl<COMP> !UnwindSafe for VComp<COMP>

impl<COMP> !RefUnwindSafe for VComp<COMP>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.