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
impl Copy for SpeechRate
Source§impl Debug for SpeechRate
impl Debug for SpeechRate
Source§impl PartialEq for SpeechRate
impl PartialEq for SpeechRate
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