pub enum AttributeSelectorStep {
Tag(Tag),
Nested {
tag: Tag,
item: u32,
},
}
Expand description
A single step of an attribute selection.
A selector step may either select an element directly at the root (Tag
)
or a specific item in a sequence to navigate into (Nested
).
A full attribute selector can be specified
by using a sequence of these steps
(but should always end with the Tag
variant,
otherwise the operation would be unspecified).
Variants§
Tag(Tag)
Select the element with the tag reachable at the root of this data set
Nested
Select an item in a data set sequence, as an intermediate step
Trait Implementations§
Source§impl Clone for AttributeSelectorStep
impl Clone for AttributeSelectorStep
Source§fn clone(&self) -> AttributeSelectorStep
fn clone(&self) -> AttributeSelectorStep
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 Debug for AttributeSelectorStep
impl Debug for AttributeSelectorStep
Source§impl Display for AttributeSelectorStep
impl Display for AttributeSelectorStep
Source§impl From<Tag> for AttributeSelectorStep
impl From<Tag> for AttributeSelectorStep
Source§impl Hash for AttributeSelectorStep
impl Hash for AttributeSelectorStep
Source§impl PartialEq for AttributeSelectorStep
impl PartialEq for AttributeSelectorStep
impl Copy for AttributeSelectorStep
impl Eq for AttributeSelectorStep
impl StructuralPartialEq for AttributeSelectorStep
Auto Trait Implementations§
impl Freeze for AttributeSelectorStep
impl RefUnwindSafe for AttributeSelectorStep
impl Send for AttributeSelectorStep
impl Sync for AttributeSelectorStep
impl Unpin for AttributeSelectorStep
impl UnwindSafe for AttributeSelectorStep
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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