pub struct WordBoundary {
pub text: String,
pub offset: u64,
pub duration: u64,
}Expand description
A word boundary event with timing information.
Mirrors Swift’s WordBoundary.
Fields§
§text: StringThe spoken word text.
offset: u64Offset from start of audio in milliseconds.
duration: u64Duration of the word in milliseconds.
Trait Implementations§
Source§impl Clone for WordBoundary
impl Clone for WordBoundary
Source§fn clone(&self) -> WordBoundary
fn clone(&self) -> WordBoundary
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 moreSource§impl Debug for WordBoundary
impl Debug for WordBoundary
Source§impl PartialEq for WordBoundary
impl PartialEq for WordBoundary
Source§fn eq(&self, other: &WordBoundary) -> bool
fn eq(&self, other: &WordBoundary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WordBoundary
Auto Trait Implementations§
impl Freeze for WordBoundary
impl RefUnwindSafe for WordBoundary
impl Send for WordBoundary
impl Sync for WordBoundary
impl Unpin for WordBoundary
impl UnsafeUnpin for WordBoundary
impl UnwindSafe for WordBoundary
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