pub struct ComponentContext<'cx, 'a> { /* private fields */ }Expand description
Data available after the caller’s slots have rendered.
Implementations§
Source§impl<'cx, 'a> ComponentContext<'cx, 'a>
impl<'cx, 'a> ComponentContext<'cx, 'a>
Sourcepub fn attributes(&self) -> &AttributeBag
pub fn attributes(&self) -> &AttributeBag
Extra attributes from a class component tag, or all attributes from a prefix component tag.
Sourcepub fn data(&self) -> &ValueMap<'a>
pub fn data(&self) -> &ValueMap<'a>
Props, exposed methods, slots and attributes available to the view.
Auto Trait Implementations§
impl<'cx, 'a> !RefUnwindSafe for ComponentContext<'cx, 'a>
impl<'cx, 'a> !Send for ComponentContext<'cx, 'a>
impl<'cx, 'a> !Sync for ComponentContext<'cx, 'a>
impl<'cx, 'a> !UnwindSafe for ComponentContext<'cx, 'a>
impl<'cx, 'a> Forget for ComponentContext<'cx, 'a>
impl<'cx, 'a> Freeze for ComponentContext<'cx, 'a>
impl<'cx, 'a> Move for ComponentContext<'cx, 'a>
impl<'cx, 'a> Unpin for ComponentContext<'cx, 'a>
impl<'cx, 'a> UnsafeUnpin for ComponentContext<'cx, 'a>where
&'cx AttributeBag: UnsafeUnpin,
&'cx IndexMap<String, Value<'a>>: UnsafeUnpin,
&'cx ComponentServices: UnsafeUnpin,
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