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
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
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
)