pub struct Selectors {
pub elements: Vec<String>,
pub compounds: Vec<Selector>,
pub combinators: Vec<Selector>,
pub list: Selector,
pub pseudo_classes: Vec<Selector>,
pub pseudo_elements: Vec<Selector>,
pub first_line_properties: Vec<String>,
}Expand description
The selector vocabulary.
Fields§
§elements: Vec<String>The element names, as the content tree produces them.
compounds: Vec<Selector>What a compound is made of besides pseudo-classes.
combinators: Vec<Selector>The combinators between two compounds.
list: SelectorHow selectors join in a list.
pseudo_classes: Vec<Selector>The pseudo-classes, functional ones with their parentheses.
pseudo_elements: Vec<Selector>The pseudo-elements.
first_line_properties: Vec<String>The properties ::first-line takes, out of the properties a
style rule may declare.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Selectors
impl<'de> Deserialize<'de> for Selectors
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Selectors
Auto Trait Implementations§
impl Freeze for Selectors
impl RefUnwindSafe for Selectors
impl Send for Selectors
impl Sync for Selectors
impl Unpin for Selectors
impl UnsafeUnpin for Selectors
impl UnwindSafe for Selectors
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.