pub enum Spacing<Value> {
Normal,
Value(Value),
}
Expand description
A generic spacing value for the letter-spacing
and word-spacing
properties.
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>>
pub fn parse_with<'i, 't, F>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, parse: F, ) -> Result<Self, 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<Value: PartialEq> PartialEq for Spacing<Value>
impl<Value: PartialEq> PartialEq 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
impl<Value: Copy> Copy for Spacing<Value>
impl<Value> StructuralPartialEq for Spacing<Value>
Auto Trait Implementations§
impl<Value> Freeze for Spacing<Value>where
Value: Freeze,
impl<Value> RefUnwindSafe for Spacing<Value>where
Value: RefUnwindSafe,
impl<Value> Send for Spacing<Value>where
Value: Send,
impl<Value> Sync for Spacing<Value>where
Value: Sync,
impl<Value> Unpin for Spacing<Value>where
Value: Unpin,
impl<Value> UnwindSafe for Spacing<Value>where
Value: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert