RoleCxExt

Trait RoleCxExt 

Source
pub trait RoleCxExt: RoleCx {
    // Provided method
    fn set_label<'a>(&mut self, label: impl Into<TextOrSource<'a>>) { ... }
}
Expand description

Convenience methods over a RoleCx

Provided Methods§

Source

fn set_label<'a>(&mut self, label: impl Into<TextOrSource<'a>>)

Attach a label

Do not use this for Role::Label and similar items where the label is the widget’s primary value. Do use this where a label exists which is not the primary value, for example an image’s alternate text or a label next to a control.

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.

Implementors§

Source§

impl<C: RoleCx + ?Sized> RoleCxExt for C