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 more
sourceimpl PartialEq<TraversalScope> for TraversalScope
impl PartialEq<TraversalScope> for TraversalScope
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TraversalScope) -> bool
fn ne(&self, other: &TraversalScope) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more