Struct kas::text::AccelString [−][src]
pub struct AccelString { /* fields omitted */ }
Expand description
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
Trait Implementations
Returns the “default value” for a type. Read more
pub fn font_tokens(&self, f32, f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
pub fn font_tokens(&self, f32, f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
Construct an iterator over formatting items Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AccelString
impl Send for AccelString
impl Sync for AccelString
impl Unpin for AccelString
impl UnwindSafe for AccelString
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more
impl<F> FormattableTextDyn for F where
F: 'static + FormattableText + Clone,
impl<F> FormattableTextDyn for F where
F: 'static + FormattableText + Clone,
pub fn clone_boxed(&self) -> Box<dyn FormattableTextDyn + 'static, Global>
pub fn clone_boxed(&self) -> Box<dyn FormattableTextDyn + 'static, Global>
Produce a boxed clone of self
pub fn font_tokens(&self, dpp: f32, pt_size: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
pub fn font_tokens(&self, dpp: f32, pt_size: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
Construct an iterator over formatting items Read more