pub struct UseFocus<'a> { /* private fields */ }
Expand description
Manage the focus operations of given Node
Implementations§
source§impl UseFocus<'_>
impl UseFocus<'_>
sourcepub fn attribute<T, 'b>(&self, cx: &'b Scoped<'b, T>) -> AttributeValue<'b>
pub fn attribute<T, 'b>(&self, cx: &'b Scoped<'b, T>) -> AttributeValue<'b>
Create a node focus ID attribute
sourcepub fn is_focused(&self) -> bool
pub fn is_focused(&self) -> bool
Check if this node is currently focused
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UseFocus<'a>
impl<'a> !Send for UseFocus<'a>
impl<'a> !Sync for UseFocus<'a>
impl<'a> Unpin for UseFocus<'a>
impl<'a> !UnwindSafe for UseFocus<'a>
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