pub struct ComponentContext { /* private fields */ }Expand description
Context provided to a component during rendering.
Holds hook state and tracks the current hook index for this render cycle.
Implementations§
Source§impl ComponentContext
Implementation of ComponentContext construction.
impl ComponentContext
Implementation of ComponentContext construction.
Source§impl ComponentContext
Implementation of component context lifecycle and utility methods.
impl ComponentContext
Implementation of component context lifecycle and utility methods.
Sourcepub fn reset_hook_index(&mut self)
pub fn reset_hook_index(&mut self)
Resets the hook index for a new render cycle.
Trait Implementations§
Source§impl Default for ComponentContext
impl Default for ComponentContext
Source§fn default() -> ComponentContext
fn default() -> ComponentContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentContext
impl !RefUnwindSafe for ComponentContext
impl !Send for ComponentContext
impl !Sync for ComponentContext
impl Unpin for ComponentContext
impl UnsafeUnpin for ComponentContext
impl !UnwindSafe for ComponentContext
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