Struct kas_core::text::AccelString
source · [−]pub struct AccelString { /* private fields */ }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
sourceimpl Clone for AccelString
impl Clone for AccelString
sourcefn clone(&self) -> AccelString
fn clone(&self) -> AccelString
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AccelString
impl Debug for AccelString
sourceimpl Default for AccelString
impl Default for AccelString
sourcefn default() -> AccelString
fn default() -> AccelString
Returns the “default value” for a type. Read more
sourceimpl FormattableText for AccelString
impl FormattableText for AccelString
sourcefn font_tokens(&self, _: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T>where
T: Clone, type Item = T;
fn font_tokens(&self, _: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T>where
T: Clone, type Item = T;
T: Clone, type Item = T;
Construct an iterator over formatting items Read more
sourcefn effect_tokens(&self) -> &[Effect<()>]
fn effect_tokens(&self) -> &[Effect<()>]
Get the sequence of effect tokens Read more
sourceimpl<T: Into<AccelString> + Copy> From<&T> for AccelString
impl<T: Into<AccelString> + Copy> From<&T> for AccelString
sourceimpl From<&str> for AccelString
impl From<&str> for AccelString
sourceimpl From<String> for AccelString
impl From<String> for AccelString
sourceimpl PartialEq<AccelString> for AccelString
impl PartialEq<AccelString> for AccelString
sourcefn eq(&self, other: &AccelString) -> bool
fn eq(&self, other: &AccelString) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for AccelString
impl StructuralEq for AccelString
impl StructuralPartialEq for AccelString
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
sourcefn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self to T Read more
sourcefn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self to T Read more
sourceimpl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
sourcefn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
sourcefn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
sourcefn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
sourcefn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
sourcefn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
sourcefn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
sourcefn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<F> FormattableTextDyn for Fwhere
F: 'static + FormattableText + Clone,
impl<F> FormattableTextDyn for Fwhere
F: 'static + FormattableText + Clone,
sourcefn clone_boxed(&self) -> Box<dyn FormattableTextDyn + 'static, Global>
fn clone_boxed(&self) -> Box<dyn FormattableTextDyn + 'static, Global>
Produce a boxed clone of self
sourcefn font_tokens(&self, dpem: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T>where
T: Clone, type Item = T;
fn font_tokens(&self, dpem: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T> Iterator for OwningVecIter<T>where
T: Clone, type Item = T;
T: Clone, type Item = T;
Construct an iterator over formatting items Read more
sourcefn effect_tokens(&self) -> &[Effect<()>]
fn effect_tokens(&self) -> &[Effect<()>]
Get the sequence of effect tokens Read more