pub struct Act<'a> {
pub label: &'a str,
pub key: Option<&'a str>,
pub tone: Tone,
pub state: Option<State>,
}Fields§
§label: &'a strWhat the control says.
key: Option<&'a str>The key that reaches it where a host has keys.
The one member written for a terminal before there was one. A webview
hangs it off accesskey or ignores it; a terminal has nothing else to
offer, so this is the whole of how a control is reached there.
tone: ToneWhat pressing it means. Tone::Danger is the destructive one.
state: Option<State>Disabled, or nothing said.
State::Disabled is what changes what a renderer may do: see
State::suppresses_interaction, which is what says a disabled control
is drawn and not reachable. It has been the only member since 0.19.0,
and a control’s focus is not sayable here at all — see the crate header,
“Reach, focus and the focus ring”.
Implementations§
Trait Implementations§
impl<'a> Copy for Act<'a>
impl<'a> Eq for Act<'a>
impl<'a> StructuralPartialEq for Act<'a>
Auto Trait Implementations§
impl<'a> Freeze for Act<'a>
impl<'a> RefUnwindSafe for Act<'a>
impl<'a> Send for Act<'a>
impl<'a> Sync for Act<'a>
impl<'a> Unpin for Act<'a>
impl<'a> UnsafeUnpin for Act<'a>
impl<'a> UnwindSafe for Act<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more