pub enum EmptyElementHandling {
SelfClosed,
SelfClosedWithSpace,
Expanded,
}Available on crate feature
serialize only.Expand description
Specifies how empty elements are serialized. The default is self-closed with no space before the slash.
Variants§
SelfClosed
Empty elements will be written as <element/>. This is the default behavior.
SelfClosedWithSpace
The same, as SelfClosed, but an extra space will be written before
the slash, so empty elements will be written as <element />.
This is recommended by the W3C guidelines for XHTML.
Expanded
Empty elements will be expanded, as in: <element></element>.
Trait Implementations§
Source§impl Clone for EmptyElementHandling
impl Clone for EmptyElementHandling
Source§fn clone(&self) -> EmptyElementHandling
fn clone(&self) -> EmptyElementHandling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmptyElementHandling
impl Debug for EmptyElementHandling
Source§impl Default for EmptyElementHandling
impl Default for EmptyElementHandling
Source§fn default() -> EmptyElementHandling
fn default() -> EmptyElementHandling
Returns the “default value” for a type. Read more
Source§impl PartialEq for EmptyElementHandling
impl PartialEq for EmptyElementHandling
impl Copy for EmptyElementHandling
impl Eq for EmptyElementHandling
impl StructuralPartialEq for EmptyElementHandling
Auto Trait Implementations§
impl Freeze for EmptyElementHandling
impl RefUnwindSafe for EmptyElementHandling
impl Send for EmptyElementHandling
impl Sync for EmptyElementHandling
impl Unpin for EmptyElementHandling
impl UnwindSafe for EmptyElementHandling
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