Enum fontconfig_parser::Value
source · pub enum Value {
Int(Int),
Double(Double),
String(String),
Constant(Constant),
Bool(Bool),
Range(Int, Int),
LangSet(String),
CharSet(CharSet),
Property(PropertyTarget, PropertyKind),
}
Expand description
Runtime typed fontconfig value
Variants§
Int(Int)
<int>0</int>
Double(Double)
<double>1.5</double>
String(String)
<string>str</string>
Constant(Constant)
<const>hintslight</const>
Bool(Bool)
<bool>false</bool>
Range(Int, Int)
This element holds the two Value::Int
elements of a range representation.
LangSet(String)
This element holds at least one Value::String
element of a RFC-3066-style languages or more.
CharSet(CharSet)
This element holds at least one Value::Int
element of an Unicode code point or more.
Property(PropertyTarget, PropertyKind)
<name target="font">pixelsize</name>
Trait Implementations§
source§impl From<(PropertyTarget, PropertyKind)> for Value
impl From<(PropertyTarget, PropertyKind)> for Value
source§fn from((target, kind): (PropertyTarget, PropertyKind)) -> Self
fn from((target, kind): (PropertyTarget, PropertyKind)) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)