[−][src]Struct yew::virtual_dom::vcomp::VComp
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]
props: CHILD::Properties,
scope_holder: ScopeHolder<COMP>
) -> Self where
CHILD: Component + Renderable<CHILD>,
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]
COMP: Component,
fn transform(_: ScopeHolder<COMP>, from: T) -> T
[src]
impl<'a, COMP, T> Transformer<COMP, &'a T, T> for VComp<COMP> where
COMP: Component,
T: Clone,
[src]
COMP: Component,
T: Clone,
fn transform(_: ScopeHolder<COMP>, from: &'a T) -> T
[src]
impl<'a, COMP> Transformer<COMP, &'a str, String> for VComp<COMP> where
COMP: Component,
[src]
COMP: Component,
fn transform(_: ScopeHolder<COMP>, from: &'a str) -> String
[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]
COMP: Component + Renderable<COMP>,
F: Fn(IN) -> COMP::Message + 'static,
fn transform(scope: ScopeHolder<COMP>, from: F) -> Callback<IN>
[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]
COMP: Component + Renderable<COMP>,
F: Fn(IN) -> COMP::Message + 'static,
fn transform(scope: ScopeHolder<COMP>, from: F) -> Option<Callback<IN>>
[src]
impl<COMP> VDiff for VComp<COMP> where
COMP: Component + 'static,
[src]
COMP: Component + 'static,
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]
&mut self,
parent: &Element,
previous_sibling: Option<&Node>,
ancestor: Option<VNode<Self::Component>>,
env: &Scope<Self::Component>
) -> Option<Node>
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]
COMP: Component,
CHILD: Component + Renderable<CHILD>,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,