pub enum SsmlElement {
Show 21 variants
Speak,
Lexicon,
Lookup,
Meta,
Metadata,
Paragraph,
Sentence,
Token,
Word,
SayAs,
Phoneme,
Sub,
Lang,
Voice,
Emphasis,
Break,
Prosody,
Audio,
Mark,
Description,
Custom(String),
}Expand description
Type of the SSML element
Variants§
Speak
The <speak></speak> element.
Lexicon
The <lexicon/> element.
Lookup
The <lookup></lookup> element.
Meta
The <meta/> element.
Metadata
The <metadata></metadata> element.
Paragraph
The <p></p> element.
Sentence
The <s></s> element.
Token
The <token></token> element.
Word
The <word></word> element.
SayAs
The <say-as></say-as> element.
Phoneme
The <phoneme></phoneme> element.
Sub
The <sub></sub> element.
Lang
The <lang></lang> element.
Voice
The <voice></voice> element.
Emphasis
The <emphasis></emphasis> element.
Break
The <break/> element.
Prosody
The <prosody></prosody> element.
Audio
The <audio></audio> element.
Mark
The <mark/> element.
Description
The <desc></desc> element.
Custom(String)
Custom elements not defined in the spec, the element name is stored in the given string.
Implementations§
Source§impl SsmlElement
impl SsmlElement
Returns whether a tag can contain other tags - will always be true for custom tags as we want to check just in case.
Sourcepub fn can_contain(&self, other: &Self) -> bool
pub fn can_contain(&self, other: &Self) -> bool
Check whether the provided element can contain another specified tag. For custom elements if an element can contain tags it will be assumed it can contain the custom one as these are outside of the SSML specification.
Trait Implementations§
Source§impl Clone for SsmlElement
impl Clone for SsmlElement
Source§fn clone(&self) -> SsmlElement
fn clone(&self) -> SsmlElement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SsmlElement
impl Debug for SsmlElement
Source§impl Display for SsmlElement
impl Display for SsmlElement
impl Eq for SsmlElement
Source§impl From<&ParsedElement> for SsmlElement
impl From<&ParsedElement> for SsmlElement
Source§fn from(elem: &ParsedElement) -> Self
fn from(elem: &ParsedElement) -> Self
Source§impl FromStr for SsmlElement
impl FromStr for SsmlElement
Source§impl Hash for SsmlElement
impl Hash for SsmlElement
Source§impl Ord for SsmlElement
impl Ord for SsmlElement
Source§fn cmp(&self, other: &SsmlElement) -> Ordering
fn cmp(&self, other: &SsmlElement) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SsmlElement
impl PartialEq for SsmlElement
Source§fn eq(&self, other: &SsmlElement) -> bool
fn eq(&self, other: &SsmlElement) -> bool
self and other values to be equal, and is used by ==.