pub enum SpeechRate {
XSlow,
Slow,
Medium,
Fast,
XFast,
}Expand description
Named speech rate presets, matching Swift’s SpeechRate.
Variants§
Implementations§
Source§impl SpeechRate
impl SpeechRate
Sourcepub fn rate_value(self) -> f32
pub fn rate_value(self) -> f32
Convert to a float multiplier (1.0 = normal).
Trait Implementations§
Source§impl Clone for SpeechRate
impl Clone for SpeechRate
Source§fn clone(&self) -> SpeechRate
fn clone(&self) -> SpeechRate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpeechRate
Source§impl Debug for SpeechRate
impl Debug for SpeechRate
Source§impl PartialEq for SpeechRate
impl PartialEq for SpeechRate
Source§fn eq(&self, other: &SpeechRate) -> bool
fn eq(&self, other: &SpeechRate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpeechRate
Auto Trait Implementations§
impl Freeze for SpeechRate
impl RefUnwindSafe for SpeechRate
impl Send for SpeechRate
impl Sync for SpeechRate
impl Unpin for SpeechRate
impl UnsafeUnpin for SpeechRate
impl UnwindSafe for SpeechRate
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