pub enum StyleQuery {
Feature {
name: String,
value: Option<String>,
},
Range {
values: Vec<String>,
ops: Vec<Comparison>,
},
Not(Box<StyleQuery>),
And(Vec<StyleQuery>),
Or(Vec<StyleQuery>),
Unknown,
}Expand description
style()’s query, §6.2: a custom property’s value, that it has one,
or a range of values compared, and those joined with not, and and
or.
Variants§
Feature
--name: value, the value written as CSS writes it back, or
--name alone.
Range
10px < --a <= 2em: two or three values, each written as CSS
(a custom property’s name as var() of it), and the comparisons
between them.
Not(Box<StyleQuery>)
And(Vec<StyleQuery>)
Or(Vec<StyleQuery>)
Unknown
Anything else: unknown.
Trait Implementations§
Source§impl Clone for StyleQuery
impl Clone for StyleQuery
Source§fn clone(&self) -> StyleQuery
fn clone(&self) -> StyleQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleQuery
impl Debug for StyleQuery
Source§impl PartialEq for StyleQuery
impl PartialEq for StyleQuery
impl StructuralPartialEq for StyleQuery
Auto Trait Implementations§
impl Forget for StyleQuery
impl Freeze for StyleQuery
impl Move for StyleQuery
impl RefUnwindSafe for StyleQuery
impl Send for StyleQuery
impl Sync for StyleQuery
impl Unpin for StyleQuery
impl UnsafeUnpin for StyleQuery
impl UnwindSafe for StyleQuery
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