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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.