#[repr(C)]pub enum TypedValue {
Keyword(CssString),
}
Expand description
A property-agnostic representation of a value, used by Typed OM.
TypedValue
is the internal counterpart of the various CSSStyleValue
subclasses defined by the Typed OM specification. It captures values that
can be represented independently of any particular property.
Variants§
Keyword(CssString)
A keyword value (e.g. "block"
, "none"
, "thin"
).
Keywords are stored as a CssString
so they can be represented and
transferred independently of any specific property. This corresponds
to CSSKeywordValue
in the Typed OM specification.
Trait Implementations§
Source§impl Clone for TypedValue
impl Clone for TypedValue
Source§fn clone(&self) -> TypedValue
fn clone(&self) -> TypedValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TypedValue
impl RefUnwindSafe for TypedValue
impl Send for TypedValue
impl Sync for TypedValue
impl Unpin for TypedValue
impl UnwindSafe for TypedValue
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