pub struct Emphasis<'s> { /* private fields */ }Implementations§
Source§impl<'s> Emphasis<'s>
impl<'s> Emphasis<'s>
pub fn new<S: Into<Element<'s>>, I: IntoIterator<Item = S>>( level: EmphasisLevel, elements: I, ) -> Self
pub fn level(&self) -> &EmphasisLevel
pub fn set_level(&mut self, level: EmphasisLevel)
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) -> Emphasis<'static>
pub fn into_owned(self) -> Emphasis<'static>
Trait Implementations§
Source§impl<'s, 's2: 's, T: Into<Element<'s2>>> AddAssign<T> for Emphasis<'s>
impl<'s, 's2: 's, T: Into<Element<'s2>>> AddAssign<T> for Emphasis<'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 Emphasis<'s>
impl<'s> Serialize for Emphasis<'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 Writer.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 Emphasis<'s>
impl<'s> RefUnwindSafe for Emphasis<'s>
impl<'s> Send for Emphasis<'s>
impl<'s> Sync for Emphasis<'s>
impl<'s> Unpin for Emphasis<'s>
impl<'s> UnwindSafe for Emphasis<'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