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
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