Struct style::properties::shorthands::font::LonghandsToSerialize
[−]
[src]
pub struct LonghandsToSerialize<'a> { pub font_style: &'a SpecifiedValue, pub font_variant_caps: &'a SpecifiedValue, pub font_weight: &'a SpecifiedValue, pub font_stretch: &'a SpecifiedValue, pub font_size: &'a SpecifiedValue, pub line_height: &'a SpecifiedValue, pub font_family: &'a SpecifiedValue, }
Represents a serializable set of all of the longhand properties that correspond to a shorthand.
Fields
font_style: &'a SpecifiedValue
font_variant_caps: &'a SpecifiedValue
font_weight: &'a SpecifiedValue
font_stretch: &'a SpecifiedValue
font_size: &'a SpecifiedValue
line_height: &'a SpecifiedValue
font_family: &'a SpecifiedValue
Methods
impl<'a> LonghandsToSerialize<'a>
[src]
pub fn from_iter<I>(iter: I) -> Result<Self, ()> where
I: Iterator<Item = &'a PropertyDeclaration>,
[src]
I: Iterator<Item = &'a PropertyDeclaration>,
Tries to get a serializable set of longhands given a set of property declarations.