pub enum Combinator {
Descendant,
Child,
AdjacentSibling,
GeneralSibling,
}Expand description
Relationship between two adjacent SimpleSelectors in a
Selector chain.
Variants§
Descendant
.a .b — .b is a descendant (any depth) of .a.
Child
.a > .b — .b is a direct child of .a.
AdjacentSibling
.a + .b — .b immediately follows .a as a sibling.
GeneralSibling
.a ~ .b — .b follows .a as any sibling.
Trait Implementations§
Source§impl Clone for Combinator
impl Clone for Combinator
impl Copy for Combinator
Source§impl Debug for Combinator
impl Debug for Combinator
impl Eq for Combinator
Source§impl PartialEq for Combinator
impl PartialEq for Combinator
impl StructuralPartialEq for Combinator
Auto Trait Implementations§
impl Freeze for Combinator
impl RefUnwindSafe for Combinator
impl Send for Combinator
impl Sync for Combinator
impl Unpin for Combinator
impl UnsafeUnpin for Combinator
impl UnwindSafe for Combinator
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