Skip to main content

ControlVocabularyExt

Trait ControlVocabularyExt 

Source
pub trait ControlVocabularyExt {
    // Required methods
    fn control_label(self) -> &'static str;
    fn states_value(self) -> bool;
}
Expand description

Names the details controls a reader sees.

Required Methods§

Source

fn control_label(self) -> &'static str

Names the control the way a reader reads it.

Source

fn states_value(self) -> bool

States whether the control is shown as a field stating a value rather than as an action.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ControlVocabularyExt for DetailControl

Names the details controls a reader sees.

Source§

fn control_label(self) -> &'static str

Names the control the way a reader reads it.

Source§

fn states_value(self) -> bool

States whether the control is shown as a field stating a value rather than as an action.

Implementors§