pub struct HexColour {
pub red: u8,
pub green: u8,
pub blue: u8,
}
Expand description
Hexadecimal colours.
Set to “#<hex>
” to insert any color in the hexadecimal color format.
Example: Using “#FF0000
” makes the component red.
Must be a full 6-digit value, not 3-digit.
assert_equiv!(r##""#66CCFF""##, HexColour { red: 0x66, green: 0xCC, blue: 0xFF });
assert_cannot_deserialize!(r##""#6CF"## => HexColour);
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Serialize this value into the given Serde serializer. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.