pub struct MC;Expand description
Markup compatibility (mc:) — mc:AlternateContent, mc:Choice,
mc:Fallback, mc:Ignorable, and the prefix-list attributes
(Ignorable, PreserveAttributes, PreserveElements,
ProcessContent, MustUnderstand, and the unqualified Requires
on mc:Choice) that the serializer must rewrite when prefixes are
rebound.
Marker for the namespace http://schemas.openxmlformats.org/markup-compatibility/2006.
All three associated items are generated:
Self::ns for the XNamespace, Self::name for an
XName in it, and Self::URI as a &'static str.
Implementations§
Source§impl MC
impl MC
Sourcepub const URI: &'static str = "http://schemas.openxmlformats.org/markup-compatibility/2006"
pub const URI: &'static str = "http://schemas.openxmlformats.org/markup-compatibility/2006"
The namespace URI as a &'static str. Use it in match arms
and other places that need a string constant.
Sourcepub fn ns() -> XNamespace
pub fn ns() -> XNamespace
The namespace, as an XNamespace rooted at this URI.
Source§impl MC
impl MC
Sourcepub fn alternate_content() -> XName
pub fn alternate_content() -> XName
Cached XName for the local name AlternateContent.
Stored in a process-wide OnceLock so every compare avoids
re-entering the interning table for the same syntactic name
(NAME-01).
Sourcepub fn choice() -> XName
pub fn choice() -> XName
Cached XName for the local name Choice.
Stored in a process-wide OnceLock so every compare avoids
re-entering the interning table for the same syntactic name
(NAME-01).
Sourcepub fn fallback() -> XName
pub fn fallback() -> XName
Cached XName for the local name Fallback.
Stored in a process-wide OnceLock so every compare avoids
re-entering the interning table for the same syntactic name
(NAME-01).
Sourcepub fn ignorable() -> XName
pub fn ignorable() -> XName
Cached XName for the local name Ignorable.
Stored in a process-wide OnceLock so every compare avoids
re-entering the interning table for the same syntactic name
(NAME-01).
Sourcepub fn preserve_elements() -> XName
pub fn preserve_elements() -> XName
Cached XName for the local name PreserveElements.
Stored in a process-wide OnceLock so every compare avoids
re-entering the interning table for the same syntactic name
(NAME-01).
Sourcepub fn preserve_attributes() -> XName
pub fn preserve_attributes() -> XName
Cached XName for the local name PreserveAttributes.
Stored in a process-wide OnceLock so every compare avoids
re-entering the interning table for the same syntactic name
(NAME-01).