pub trait HasId {
// Required method
fn has_id(self) -> Id;
}Expand description
Types supporting conversion to Id
A method taking an id: impl HasId parameter supports an Id,
a reference to an Id (which is thus cloned),
or a (mutable) reference to a widget.
Note: in some cases attempting to pass a widget reference does not pass
borrow checks. In this case pass widget.id() explicitly.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".