Struct yew::virtual_dom::VChild
source · pub struct VChild<COMP: BaseComponent> {
pub props: Rc<COMP::Properties>,
/* private fields */
}
Expand description
A virtual child component.
Fields§
§props: Rc<COMP::Properties>
The component properties
Implementations§
source§impl<COMP> VChild<COMP>where
COMP: BaseComponent,
impl<COMP> VChild<COMP>where COMP: BaseComponent,
sourcepub fn new(props: COMP::Properties, key: Option<Key>) -> Self
pub fn new(props: COMP::Properties, key: Option<Key>) -> Self
Creates a child component that can be accessed and modified by its parent.
Trait Implementations§
source§impl<COMP: BaseComponent> Clone for VChild<COMP>
impl<COMP: BaseComponent> Clone for VChild<COMP>
source§impl<COMP: BaseComponent> Debug for VChild<COMP>
impl<COMP: BaseComponent> Debug for VChild<COMP>
source§impl<T, C> IntoPropValue<ChildrenRenderer<C>> for VChild<T>where
T: BaseComponent,
C: Clone + Into<VNode>,
VChild<T>: Into<C>,
impl<T, C> IntoPropValue<ChildrenRenderer<C>> for VChild<T>where T: BaseComponent, C: Clone + Into<VNode>, VChild<T>: Into<C>,
source§fn into_prop_value(self) -> ChildrenRenderer<C>
fn into_prop_value(self) -> ChildrenRenderer<C>
Convert
self
to a value of a Properties
struct.source§impl<T, C> IntoPropValue<Option<ChildrenRenderer<C>>> for VChild<T>where
T: BaseComponent,
C: Clone + Into<VNode>,
VChild<T>: Into<C>,
impl<T, C> IntoPropValue<Option<ChildrenRenderer<C>>> for VChild<T>where T: BaseComponent, C: Clone + Into<VNode>, VChild<T>: Into<C>,
source§fn into_prop_value(self) -> Option<ChildrenRenderer<C>>
fn into_prop_value(self) -> Option<ChildrenRenderer<C>>
Convert
self
to a value of a Properties
struct.source§impl<C: BaseComponent> IntoPropValue<VList> for VChild<C>
impl<C: BaseComponent> IntoPropValue<VList> for VChild<C>
source§fn into_prop_value(self) -> VList
fn into_prop_value(self) -> VList
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<VNode> for VChild<T>where
T: BaseComponent,
impl<T> IntoPropValue<VNode> for VChild<T>where T: BaseComponent,
source§fn into_prop_value(self) -> VNode
fn into_prop_value(self) -> VNode
Convert
self
to a value of a Properties
struct.source§impl<COMP: BaseComponent> PartialEq for VChild<COMP>where
COMP::Properties: PartialEq,
impl<COMP: BaseComponent> PartialEq for VChild<COMP>where COMP::Properties: PartialEq,
impl<COMP: BaseComponent> ImplicitClone for VChild<COMP>
Auto Trait Implementations§
impl<COMP> RefUnwindSafe for VChild<COMP>where <COMP as BaseComponent>::Properties: RefUnwindSafe,
impl<COMP> !Send for VChild<COMP>
impl<COMP> !Sync for VChild<COMP>
impl<COMP> Unpin for VChild<COMP>
impl<COMP> UnwindSafe for VChild<COMP>where <COMP as BaseComponent>::Properties: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.