Enum fontconfig_parser::Value[][src]

pub enum Value {
    Int(Int),
    Double(Double),
    String(CompactStr),
    Constant(Constant),
    Bool(Bool),
    Range(IntInt),
    LangSet(CompactStr),
    CharSet(CharSet),
    Property(PropertyTargetPropertyKind),
}
Expand description

Runtime typed fontconfig value

Variants

Int(Int)

<int>0</int>

Tuple Fields of Int

0: Int
Double(Double)

<double>1.5</double>

Tuple Fields of Double

0: Double
String(CompactStr)

<string>str</string>

Tuple Fields of String

0: CompactStr
Constant(Constant)

<const>hintslight</const>

Tuple Fields of Constant

0: Constant
Bool(Bool)

<bool>false</bool>

Tuple Fields of Bool

0: Bool
Range(IntInt)

This element holds the two Value::Int elements of a range representation.

Tuple Fields of Range

0: Int1: Int
LangSet(CompactStr)

This element holds at least one Value::String element of a RFC-3066-style languages or more.

Tuple Fields of LangSet

0: CompactStr
CharSet(CharSet)

This element holds at least one Value::Int element of an Unicode code point or more.

Tuple Fields of CharSet

0: CharSet

<name target="font">pixelsize</name>

Tuple Fields of Property

0: PropertyTarget1: PropertyKind

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.