pub struct Expression {
pub modifier: Option<Modifier>,
pub feature: String,
pub value: Option<String>,
}Expand description
A single (feature: value) test within a query.
Fields§
§modifier: Option<Modifier>Some when the feature was written min-/max- prefixed.
feature: StringThe feature name, lowercased and with any min-/max- prefix stripped.
value: Option<String>The raw value text, or None for a boolean feature like (color).
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§impl Debug for Expression
impl Debug for Expression
impl Eq for Expression
Source§impl PartialEq for Expression
impl PartialEq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Forget for Expression
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expression
impl UnwindSafe for Expression
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