pub struct Hint {
pub label: char,
pub anchor: Pos2,
pub target: Rect,
}Expand description
A which-key / Vimium-style hint: a label key painted on a focusable’s badge anchor (FOC-3). Pure data so a snapshot test asserts exact labels + positions.
Fields§
§label: char§anchor: Pos2§target: RectTrait Implementations§
impl StructuralPartialEq for Hint
Auto Trait Implementations§
impl Freeze for Hint
impl RefUnwindSafe for Hint
impl Send for Hint
impl Sync for Hint
impl Unpin for Hint
impl UnsafeUnpin for Hint
impl UnwindSafe for Hint
Blanket Implementations§
impl<T> Allocation for T
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