pub trait FocusableExt: Sized {
// Required methods
fn focus_ring(self, enabled: bool) -> Self;
fn is_focus_ring_enabled(&self) -> bool;
}Expand description
A component that exposes whether its UI layer should draw a focus ring.
This trait carries state only. Focus-ring geometry and presentation belong to the component’s visual layer.
Required Methods§
fn focus_ring(self, enabled: bool) -> Self
fn is_focus_ring_enabled(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".