Enum html5ever::serialize::TraversalScope
source · 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
sourceimpl Clone for TraversalScope
impl Clone for TraversalScope
sourcefn clone(&self) -> TraversalScope
fn clone(&self) -> TraversalScope
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<TraversalScope> for TraversalScope
impl PartialEq<TraversalScope> for TraversalScope
sourcefn eq(&self, other: &TraversalScope) -> bool
fn eq(&self, other: &TraversalScope) -> bool
impl StructuralPartialEq for TraversalScope
Auto Trait Implementations
impl RefUnwindSafe for TraversalScope
impl Send for TraversalScope
impl Sync for TraversalScope
impl Unpin for TraversalScope
impl UnwindSafe for TraversalScope
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more