Struct fontconfig_parser::Test
source · pub struct Test {
pub qual: TestQual,
pub target: TestTarget,
pub compare: TestCompare,
pub value: Property,
}
Expand description
This element contains a single value which is compared with the target (‘pattern’, ‘font’, ‘scan’ or ‘default’) property “property” (substitute any of the property names seen above).
‘compare’ can be one of “eq”, “not_eq”, “less”, “less_eq”, “more”, “more_eq”, “contains” or “not_contains”.
‘qual’ may either be the default, “any”, in which case the match succeeds if any value associated with the property matches the test value,
or “all”, in which case all of the values associated with the property must match the test value. ‘ignore-blanks’ takes a boolean value.
if ‘ignore-blanks’ is set “true”, any blanks in the string will be ignored on its comparison. this takes effects only when compare=“eq” or compare=“not_eq”.
When used in a
Fields§
§qual: TestQual
§target: TestTarget
§compare: TestCompare
§value: Property
Trait Implementations§
impl StructuralPartialEq for Test
Auto Trait Implementations§
impl Freeze for Test
impl RefUnwindSafe for Test
impl Send for Test
impl Sync for Test
impl Unpin for Test
impl UnwindSafe for Test
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)