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<COMP: BaseComponent> ImplicitClone for VChild<COMP>
impl<COMP: BaseComponent> ImplicitClone for VChild<COMP>
§fn implicit_clone(&self) -> Self
fn implicit_clone(&self) -> Self
This function is not magic; it is literally defined as Read more
Source§impl<T, C> IntoPropValue<ChildrenRenderer<C>> for VChild<T>
impl<T, C> IntoPropValue<ChildrenRenderer<C>> for VChild<T>
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>
impl<T, C> IntoPropValue<Option<ChildrenRenderer<C>>> for VChild<T>
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,
Auto Trait Implementations§
impl<COMP> Freeze for VChild<COMP>
impl<COMP> RefUnwindSafe for VChild<COMP>
impl<COMP> !Send for VChild<COMP>
impl<COMP> !Sync for VChild<COMP>
impl<COMP> Unpin for VChild<COMP>
impl<COMP> UnwindSafe for VChild<COMP>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.