pub enum SpeechPitch {
XLow,
Low,
Medium,
High,
XHigh,
}Expand description
Named speech pitch presets, matching Swift’s SpeechPitch.
Variants§
Implementations§
Source§impl SpeechPitch
impl SpeechPitch
Sourcepub fn pitch_value(self) -> f32
pub fn pitch_value(self) -> f32
Convert to a float multiplier (1.0 = normal).
Trait Implementations§
Source§impl Clone for SpeechPitch
impl Clone for SpeechPitch
Source§fn clone(&self) -> SpeechPitch
fn clone(&self) -> SpeechPitch
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 SpeechPitch
Source§impl Debug for SpeechPitch
impl Debug for SpeechPitch
Source§impl PartialEq for SpeechPitch
impl PartialEq for SpeechPitch
Source§fn eq(&self, other: &SpeechPitch) -> bool
fn eq(&self, other: &SpeechPitch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpeechPitch
Auto Trait Implementations§
impl Freeze for SpeechPitch
impl RefUnwindSafe for SpeechPitch
impl Send for SpeechPitch
impl Sync for SpeechPitch
impl Unpin for SpeechPitch
impl UnsafeUnpin for SpeechPitch
impl UnwindSafe for SpeechPitch
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