pub struct Tooltip { /* private fields */ }Expand description
A short text shown on hover or focus. CSS only: the anchor is the child, which should be focusable (a button, a link) so keyboard users see it too.
let t = Tooltip![content = "Copy", Button![icon_only = true, "⧉"]];
let html = render_static(t);
assert!(html.contains(r#"role="tooltip""#) && html.contains("aria-describedby"));Implementations§
Source§impl Tooltip
impl Tooltip
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tooltip
impl !Sync for Tooltip
impl !UnwindSafe for Tooltip
impl Forget for Tooltip
impl Freeze for Tooltip
impl Move for Tooltip
impl Send for Tooltip
impl Unpin for Tooltip
impl UnsafeUnpin for Tooltip
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