pub trait ToolTip: Failable {
// Required methods
fn tooltip(&self) -> Result<String, Self::Error>;
fn set_tooltip(&mut self, s: impl AsRef<str>) -> Result<(), Self::Error>;
}Expand description
Common trait for widgets that have a tooltip.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.