Enum selectors::parser::ParseRelative
source · pub enum ParseRelative {
ForHas,
ForNesting,
ForScope,
No,
}
Expand description
Flag indicating if we’re parsing relative selectors.
Variants§
ForHas
Expect selectors to start with a combinator, assuming descendant combinator if not present.
ForNesting
Allow selectors to start with a combinator, prepending a parent selector if so. Do nothing otherwise
ForScope
Allow selectors to start with a combinator, prepending a scope selector if so. Do nothing otherwise
No
Treat as parse error if any selector begins with a combinator.
Trait Implementations§
source§impl Clone for ParseRelative
impl Clone for ParseRelative
source§fn clone(&self) -> ParseRelative
fn clone(&self) -> ParseRelative
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 ParseRelative
impl PartialEq for ParseRelative
source§fn eq(&self, other: &ParseRelative) -> bool
fn eq(&self, other: &ParseRelative) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ParseRelative
impl StructuralPartialEq for ParseRelative
Auto Trait Implementations§
impl Freeze for ParseRelative
impl RefUnwindSafe for ParseRelative
impl Send for ParseRelative
impl Sync for ParseRelative
impl Unpin for ParseRelative
impl UnwindSafe for ParseRelative
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