pub struct ScreenReaderSettings {
pub enabled: bool,
pub rate: f32,
pub voice: ScreenReaderVoice,
}Fields§
§enabled: bool§rate: f32Speech rate multiplier: 1.0 is the engine default.
voice: ScreenReaderVoiceImplementations§
Source§impl ScreenReaderSettings
impl ScreenReaderSettings
pub fn from_section(section: &Map<String, Value>) -> Self
pub fn new(enabled: bool, rate_percent: u16, voice: ScreenReaderVoice) -> Self
Trait Implementations§
Source§impl Clone for ScreenReaderSettings
impl Clone for ScreenReaderSettings
impl Copy for ScreenReaderSettings
Source§impl Debug for ScreenReaderSettings
impl Debug for ScreenReaderSettings
Source§impl PartialEq for ScreenReaderSettings
impl PartialEq for ScreenReaderSettings
impl StructuralPartialEq for ScreenReaderSettings
Auto Trait Implementations§
impl Forget for ScreenReaderSettings
impl Freeze for ScreenReaderSettings
impl Move for ScreenReaderSettings
impl RefUnwindSafe for ScreenReaderSettings
impl Send for ScreenReaderSettings
impl Sync for ScreenReaderSettings
impl Unpin for ScreenReaderSettings
impl UnsafeUnpin for ScreenReaderSettings
impl UnwindSafe for ScreenReaderSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more