Struct dioxus_core::VComponent
source · [−]pub struct VComponent<'src> {
pub key: Option<&'src str>,
pub scope: Cell<Option<ScopeId>>,
pub can_memoize: bool,
pub user_fc: *mut c_void,
pub fn_name: &'static str,
pub props: RefCell<Option<Box<dyn AnyProps + 'src>>>,
}
Expand description
Virtual Components for custom user-defined components Only supports the functional syntax
Fields
key: Option<&'src str>
The key of the component to be used during keyed diffing.
scope: Cell<Option<ScopeId>>
The ID of the component. Will not be assigned until after the component has been initialized.
can_memoize: bool
An indication if the component is static (can be memozied)
user_fc: *mut c_void
The function pointer to the component’s render function.
fn_name: &'static str
The actual name of the component.
props: RefCell<Option<Box<dyn AnyProps + 'src>>>
The props of the component.
Auto Trait Implementations
impl<'src> !RefUnwindSafe for VComponent<'src>
impl<'src> !Send for VComponent<'src>
impl<'src> !Sync for VComponent<'src>
impl<'src> Unpin for VComponent<'src>
impl<'src> !UnwindSafe for VComponent<'src>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more