Enum xml5ever::serialize::TraversalScope
source · pub enum TraversalScope {
IncludeNode,
ChildrenOnly(Option<QualName>),
}
Expand description
Used as a parameter to serialize
, telling it if we want to skip the parent.
Variants§
IncludeNode
Include the parent node when serializing.
ChildrenOnly(Option<QualName>)
Only serialize the children of the node, treating any provided qualified name as the parent while serializing.
This is used in the implementation of html5ever::serialize::serialize
Trait Implementations§
source§impl Clone for TraversalScope
impl Clone for TraversalScope
source§fn clone(&self) -> TraversalScope
fn clone(&self) -> TraversalScope
Returns a copy 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 PartialEq for TraversalScope
impl PartialEq for TraversalScope
source§fn eq(&self, other: &TraversalScope) -> bool
fn eq(&self, other: &TraversalScope) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TraversalScope
Auto Trait Implementations§
impl Freeze for TraversalScope
impl RefUnwindSafe for TraversalScope
impl Send for TraversalScope
impl Sync for TraversalScope
impl Unpin for TraversalScope
impl UnwindSafe for TraversalScope
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