Struct web_sys::SpeechSynthesisEvent
source · #[repr(transparent)]pub struct SpeechSynthesisEvent { /* private fields */ }
Expand description
The SpeechSynthesisEvent
object
This API requires the following crate features to be activated: SpeechSynthesisEvent
Implementations§
source§impl SpeechSynthesisEvent
impl SpeechSynthesisEvent
sourcepub fn new(
type_: &str,
event_init_dict: &SpeechSynthesisEventInit
) -> Result<SpeechSynthesisEvent, JsValue>
pub fn new(
type_: &str,
event_init_dict: &SpeechSynthesisEventInit
) -> Result<SpeechSynthesisEvent, JsValue>
The new SpeechSynthesisEvent(..)
constructor, creating a new instance of SpeechSynthesisEvent
This API requires the following crate features to be activated: SpeechSynthesisEvent
, SpeechSynthesisEventInit
source§impl SpeechSynthesisEvent
impl SpeechSynthesisEvent
sourcepub fn utterance(&self) -> SpeechSynthesisUtterance
pub fn utterance(&self) -> SpeechSynthesisUtterance
The utterance
getter
This API requires the following crate features to be activated: SpeechSynthesisEvent
, SpeechSynthesisUtterance
source§impl SpeechSynthesisEvent
impl SpeechSynthesisEvent
sourcepub fn char_index(&self) -> u32
pub fn char_index(&self) -> u32
The charIndex
getter
This API requires the following crate features to be activated: SpeechSynthesisEvent
source§impl SpeechSynthesisEvent
impl SpeechSynthesisEvent
sourcepub fn char_length(&self) -> Option<u32>
pub fn char_length(&self) -> Option<u32>
The charLength
getter
This API requires the following crate features to be activated: SpeechSynthesisEvent
source§impl SpeechSynthesisEvent
impl SpeechSynthesisEvent
sourcepub fn elapsed_time(&self) -> f32
pub fn elapsed_time(&self) -> f32
The elapsedTime
getter
This API requires the following crate features to be activated: SpeechSynthesisEvent
Trait Implementations§
source§impl AsRef<Event> for SpeechSynthesisEvent
impl AsRef<Event> for SpeechSynthesisEvent
source§impl AsRef<JsValue> for SpeechSynthesisEvent
impl AsRef<JsValue> for SpeechSynthesisEvent
source§impl AsRef<Object> for SpeechSynthesisEvent
impl AsRef<Object> for SpeechSynthesisEvent
source§impl AsRef<SpeechSynthesisEvent> for SpeechSynthesisErrorEvent
impl AsRef<SpeechSynthesisEvent> for SpeechSynthesisErrorEvent
source§fn as_ref(&self) -> &SpeechSynthesisEvent
fn as_ref(&self) -> &SpeechSynthesisEvent
source§impl Clone for SpeechSynthesisEvent
impl Clone for SpeechSynthesisEvent
source§fn clone(&self) -> SpeechSynthesisEvent
fn clone(&self) -> SpeechSynthesisEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpeechSynthesisEvent
impl Debug for SpeechSynthesisEvent
source§impl From<JsValue> for SpeechSynthesisEvent
impl From<JsValue> for SpeechSynthesisEvent
source§fn from(obj: JsValue) -> SpeechSynthesisEvent
fn from(obj: JsValue) -> SpeechSynthesisEvent
source§impl From<SpeechSynthesisErrorEvent> for SpeechSynthesisEvent
impl From<SpeechSynthesisErrorEvent> for SpeechSynthesisEvent
source§fn from(obj: SpeechSynthesisErrorEvent) -> SpeechSynthesisEvent
fn from(obj: SpeechSynthesisErrorEvent) -> SpeechSynthesisEvent
source§impl From<SpeechSynthesisEvent> for Event
impl From<SpeechSynthesisEvent> for Event
source§fn from(obj: SpeechSynthesisEvent) -> Event
fn from(obj: SpeechSynthesisEvent) -> Event
source§impl From<SpeechSynthesisEvent> for JsValue
impl From<SpeechSynthesisEvent> for JsValue
source§fn from(obj: SpeechSynthesisEvent) -> JsValue
fn from(obj: SpeechSynthesisEvent) -> JsValue
source§impl From<SpeechSynthesisEvent> for Object
impl From<SpeechSynthesisEvent> for Object
source§fn from(obj: SpeechSynthesisEvent) -> Object
fn from(obj: SpeechSynthesisEvent) -> Object
source§impl FromWasmAbi for SpeechSynthesisEvent
impl FromWasmAbi for SpeechSynthesisEvent
source§impl<'a> IntoWasmAbi for &'a SpeechSynthesisEvent
impl<'a> IntoWasmAbi for &'a SpeechSynthesisEvent
source§impl IntoWasmAbi for SpeechSynthesisEvent
impl IntoWasmAbi for SpeechSynthesisEvent
source§impl JsCast for SpeechSynthesisEvent
impl JsCast for SpeechSynthesisEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl<'a> OptionIntoWasmAbi for &'a SpeechSynthesisEvent
impl<'a> OptionIntoWasmAbi for &'a SpeechSynthesisEvent
source§impl RefFromWasmAbi for SpeechSynthesisEvent
impl RefFromWasmAbi for SpeechSynthesisEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<SpeechSynthesisEvent>
type Anchor = ManuallyDrop<SpeechSynthesisEvent>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SpeechSynthesisEvent
impl !Send for SpeechSynthesisEvent
impl !Sync for SpeechSynthesisEvent
impl Unpin for SpeechSynthesisEvent
impl UnwindSafe for SpeechSynthesisEvent
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more