[−][src]Struct orbtk::prelude::Selector
Describes a css selector.
Fields
id: Option<String>
element: Option<String>
classes: HashSet<String, RandomState>
pseudo_classes: HashSet<String, RandomState>
relation: Option<Box<SelectorRelation>>
dirty: bool
Methods
impl Selector
[src]
Inner selector value.
pub fn new() -> Selector
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn dirty(&self) -> bool
[src]
pub fn set_dirty(&mut self, dirty: bool)
[src]
pub fn specificity(&self) -> Specificity
[src]
pub fn matches(&self, other: &Selector) -> bool
[src]
pub fn with<S>(self, element: S) -> Selector where
S: Into<String>,
[src]
S: Into<String>,
pub fn id<S>(self, id: S) -> Selector where
S: Into<String>,
[src]
S: Into<String>,
pub fn class<S>(self, class: S) -> Selector where
S: Into<String>,
[src]
S: Into<String>,
pub fn without_class<S>(self, class: S) -> Selector where
S: Into<String>,
[src]
S: Into<String>,
pub fn pseudo_class<S>(self, pseudo_class: S) -> Selector where
S: Into<String>,
[src]
S: Into<String>,
pub fn without_pseudo_class<S>(self, pseudo_class: S) -> Selector where
S: Into<String>,
[src]
S: Into<String>,
Trait Implementations
impl IntoPropertySource<Selector> for Selector
[src]
fn into_source(self) -> PropertySource<Selector>
[src]
impl IntoPropertySource<Selector> for Entity
[src]
fn into_source(self) -> PropertySource<Selector>
[src]
impl<'_> IntoPropertySource<Selector> for &'_ str
[src]
fn into_source(self) -> PropertySource<Selector>
[src]
impl IntoPropertySource<Selector> for String
[src]
fn into_source(self) -> PropertySource<Selector>
[src]
impl<'_> IntoPropertySource<Selector> for (&'_ str, Entity)
[src]
fn into_source(self) -> PropertySource<Selector>
[src]
impl IntoPropertySource<Selector> for (String, Entity)
[src]
fn into_source(self) -> PropertySource<Selector>
[src]
impl Default for Selector
[src]
impl Display for Selector
[src]
impl<'_> From<&'_ str> for Selector
[src]
impl From<String> for Selector
[src]
impl Clone for Selector
[src]
impl PartialEq<Selector> for Selector
[src]
impl Debug for Selector
[src]
Auto Trait Implementations
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
impl RefUnwindSafe for Selector
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<E> Component for E where
E: Any,
[src]
E: Any,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,