pub type WordSpacing = Spacing<LengthPercentage>;
Expand description
A specified value for the word-spacing
property.
Aliased Type§
enum WordSpacing {
Normal,
Value(LengthPercentage),
}
Variants§
Implementations§
source§impl<Value> Spacing<Value>
impl<Value> Spacing<Value>
sourcepub fn parse_with<'i, 't, F>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
parse: F
) -> Result<Self, ParseError<'i>>where
F: FnOnce(&ParserContext<'_>, &mut Parser<'i, 't>) -> Result<Value, ParseError<'i>>,
pub fn parse_with<'i, 't, F>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, parse: F ) -> Result<Self, ParseError<'i>>where F: FnOnce(&ParserContext<'_>, &mut Parser<'i, 't>) -> Result<Value, ParseError<'i>>,
Parses.
Trait Implementations§
source§impl<Value> MallocSizeOf for Spacing<Value>where
Value: MallocSizeOf,
impl<Value> MallocSizeOf for Spacing<Value>where Value: MallocSizeOf,
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl Parse for WordSpacing
impl Parse for WordSpacing
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't> ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
source§impl<Value: PartialEq> PartialEq<Spacing<Value>> for Spacing<Value>
impl<Value: PartialEq> PartialEq<Spacing<Value>> for Spacing<Value>
source§impl<Value> SpecifiedValueInfo for Spacing<Value>where
Value: SpecifiedValueInfo,
impl<Value> SpecifiedValueInfo for Spacing<Value>where Value: SpecifiedValueInfo,
source§const SUPPORTED_TYPES: u8 = _
const SUPPORTED_TYPES: u8 = _
Supported CssTypes by the given value type. Read more
source§impl ToComputedValue for WordSpacing
impl ToComputedValue for WordSpacing
§type ComputedValue = LengthPercentage
type ComputedValue = LengthPercentage
The computed value type we’re going to be converted to.
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§fn from_computed_value(computed: &Self::ComputedValue) -> Self
fn from_computed_value(computed: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more