pub enum SpanInfoKey {
AttributeName(Node, NameId),
AttributeValue(Node, NameId),
ElementStart(Node),
ElementEnd(Node),
Text(Node),
Comment(Node),
PiTarget(Node),
PiContent(Node),
}
Expand description
A key to use to look up span information using
SpanInfo::get
Variants§
AttributeName(Node, NameId)
The name part of an attribute.
In foo:name="value"
, the foo:name
part
AttributeValue(Node, NameId)
The value part of an attribute.
In foo:name="value"
, the value
part
ElementStart(Node)
The name part of a start element tag.
In <foo:name ..>
, the foo:name
part
ElementEnd(Node)
The closing part of the end element tag (or a self-closing element).
In </foo:name>
, the </foo:name>
part, or if it is an empty element
<foo:name/>
, the />
part
Text(Node)
Text node.
In <foo>text</foo>
, the text
part
Comment(Node)
Comment node.
In <!--comment-->
, the comment
part
PiTarget(Node)
The target part of a processing instruction.
In <?target content?>
, the target
part
PiContent(Node)
The content part of a processing instruction (if defined).
In <?target content?>
, the content
part
Trait Implementations§
Source§impl Clone for SpanInfoKey
impl Clone for SpanInfoKey
Source§fn clone(&self) -> SpanInfoKey
fn clone(&self) -> SpanInfoKey
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 SpanInfoKey
impl Debug for SpanInfoKey
Source§impl Hash for SpanInfoKey
impl Hash for SpanInfoKey
Source§impl PartialEq for SpanInfoKey
impl PartialEq for SpanInfoKey
impl Copy for SpanInfoKey
impl Eq for SpanInfoKey
impl StructuralPartialEq for SpanInfoKey
Auto Trait Implementations§
impl Freeze for SpanInfoKey
impl RefUnwindSafe for SpanInfoKey
impl Send for SpanInfoKey
impl Sync for SpanInfoKey
impl Unpin for SpanInfoKey
impl UnwindSafe for SpanInfoKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more