[][src]Struct kas::text::AccelString

pub struct AccelString { /* fields omitted */ }

An accelerator key string

This is a label which supports highlighting of accelerator keys.

Markup: && translates to &; &x for any x translates to x and identifies x as an "accelerator key"; this may be drawn underlined and may support keyboard access via e.g. Alt+X.

Implementations

impl AccelString[src]

pub fn keys(&self) -> &[VK][src]

Get the key bindings

pub fn take_keys(self) -> VirtualKeyCodes[src]

Take the key bindings, destroying self

pub fn text(&self) -> &str[src]

Get the text

Trait Implementations

impl Clone for AccelString[src]

impl Debug for AccelString[src]

impl Default for AccelString[src]

impl FormattableText for AccelString[src]

impl From<&'static str> for AccelString[src]

impl From<String> for AccelString[src]

impl PartialEq<AccelString> for AccelString[src]

impl StructuralPartialEq for AccelString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<F> FormattableTextDyn for F where
    F: 'static + FormattableText + Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.