Trait kas::HasId

source ·
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§

source

fn has_id(self) -> Id

Implementations on Foreign Types§

source§

impl<W> HasId for &W
where W: Layout + ?Sized,

source§

fn has_id(self) -> Id

source§

impl<W> HasId for &mut W
where W: Layout + ?Sized,

source§

fn has_id(self) -> Id

Implementors§

source§

impl HasId for &Id

source§

impl HasId for &mut Id

source§

impl HasId for Id