pub struct ContextRegistry { /* private fields */ }Implementations§
Source§impl ContextRegistry
impl ContextRegistry
pub fn new() -> Self
pub fn begin_render(&self)
pub fn begin_component(&self, component: ComponentId)
pub fn end_render(&self, components: &ComponentTree)
pub fn abort_render(&self, _components: &ComponentTree)
pub fn provide<T>( &self, owner: ComponentId, value: T, components: &ComponentTree, ) -> ContextProviderGuard<'_>
pub fn read<T>(&self, consumer: ComponentId) -> Option<T>where
T: Clone + 'static,
pub fn clear(&self)
Trait Implementations§
Source§impl Clone for ContextRegistry
impl Clone for ContextRegistry
Source§fn clone(&self) -> ContextRegistry
fn clone(&self) -> ContextRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ContextRegistry
impl Default for ContextRegistry
Source§fn default() -> ContextRegistry
fn default() -> ContextRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ContextRegistry
impl !Send for ContextRegistry
impl !Sync for ContextRegistry
impl !UnwindSafe for ContextRegistry
impl Freeze for ContextRegistry
impl Unpin for ContextRegistry
impl UnsafeUnpin for ContextRegistry
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