pub enum Selector {
Type(String),
Class(String),
Id(String),
}Expand description
A CSS-like selector that matches components by type, class, or id.
Variants§
Type(String)
Type selector, e.g. Button matches component.type_name().
Class(String)
Class selector, e.g. .card matches component.class().
Id(String)
Id selector, e.g. #header matches component.id().
Trait Implementations§
impl Eq for Selector
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 UnsafeUnpin 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