pub struct SayAs<'s> { /* private fields */ }
Implementations§
Source§impl<'s> SayAs<'s>
impl<'s> SayAs<'s>
pub fn new(format: SpeechFormat, text: impl Into<Cow<'s, str>>) -> Self
pub fn format(&self) -> &SpeechFormat
pub fn set_format(&mut self, format: SpeechFormat)
pub fn text(&self) -> &str
pub fn set_text(&mut self, text: impl Into<Cow<'s, str>>)
pub fn to_owned(&self) -> SayAs<'static>
pub fn into_owned(self) -> SayAs<'static>
Trait Implementations§
Source§impl<'s> Serialize for SayAs<'s>
impl<'s> Serialize for SayAs<'s>
Source§fn serialize_xml<W: Write>(
&self,
writer: &mut XmlWriter<W>,
options: &SerializeOptions,
) -> Result<()>
fn serialize_xml<W: Write>( &self, writer: &mut XmlWriter<W>, options: &SerializeOptions, ) -> Result<()>
Serialize this SSML element into an
XmlWriter
.Source§fn serialize<W: Write>(
&self,
writer: &mut W,
options: &SerializeOptions,
) -> Result<()>
fn serialize<W: Write>( &self, writer: &mut W, options: &SerializeOptions, ) -> Result<()>
Serialize this SSML element into an
std
Write
r.Source§fn serialize_to_string(&self, options: &SerializeOptions) -> Result<String>
fn serialize_to_string(&self, options: &SerializeOptions) -> Result<String>
Serialize this SSML element into a string.
Auto Trait Implementations§
impl<'s> Freeze for SayAs<'s>
impl<'s> RefUnwindSafe for SayAs<'s>
impl<'s> Send for SayAs<'s>
impl<'s> Sync for SayAs<'s>
impl<'s> Unpin for SayAs<'s>
impl<'s> UnwindSafe for SayAs<'s>
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