pub enum Selector {
Inlined,
Root,
Id(Id),
Element(Element),
Class(Class),
}Variants§
Implementations§
Source§impl Selector
impl Selector
Sourcepub const fn is_inlined(&self) -> bool
pub const fn is_inlined(&self) -> bool
Returns true if the enum is Selector::Inlined otherwise false
Sourcepub const fn is_element(&self) -> bool
pub const fn is_element(&self) -> bool
Returns true if the enum is Selector::Element otherwise false
Trait Implementations§
Source§impl SelectorDisplay for Selector
impl SelectorDisplay for Selector
fn as_styles_content(&self) -> String
fn as_attribute_value(&self) -> String
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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