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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.