pub struct Prosody<'s> { /* private fields */ }
Implementations§
Source§impl<'s> Prosody<'s>
impl<'s> Prosody<'s>
pub fn new<S: Into<Element<'s>>, I: IntoIterator<Item = S>>( control: impl Into<ProsodyControl>, elements: I, ) -> Self
pub fn with_pitch(self, pitch: impl Into<ProsodyPitch>) -> Self
pub fn with_contour(self, contour: impl Into<ProsodyContour>) -> Self
pub fn with_range(self, pitch: impl Into<ProsodyPitch>) -> Self
pub fn with_rate(self, rate: impl Into<ProsodyRate>) -> Self
pub fn with_duration(self, duration: impl Into<TimeDesignation>) -> Self
pub fn with_volume(self, volume: impl Into<ProsodyVolume>) -> Self
pub fn control(&self) -> &ProsodyControl
pub fn control_mut(&mut self) -> &mut ProsodyControl
pub fn set_control(&mut self, control: ProsodyControl)
pub fn children(&self) -> &[Element<'s>]
pub fn children_mut(&mut self) -> &mut Vec<Element<'s>>
pub fn push(&mut self, element: impl Into<Element<'s>>)
pub fn extend<S: Into<Element<'s>>, I: IntoIterator<Item = S>>( &mut self, elements: I, )
pub fn to_owned(&self) -> Prosody<'static>
pub fn into_owned(self) -> Prosody<'static>
Trait Implementations§
Source§impl<'s, 's2: 's, T: Into<Element<'s2>>> AddAssign<T> for Prosody<'s>
impl<'s, 's2: 's, T: Into<Element<'s2>>> AddAssign<T> for Prosody<'s>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl<'s> Serialize for Prosody<'s>
impl<'s> Serialize for Prosody<'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 Prosody<'s>
impl<'s> RefUnwindSafe for Prosody<'s>
impl<'s> Send for Prosody<'s>
impl<'s> Sync for Prosody<'s>
impl<'s> Unpin for Prosody<'s>
impl<'s> UnwindSafe for Prosody<'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