pub enum CssValue {
Keyword(CssIdent),
Length(f32, Unit),
Number(f32),
String(String),
Color(String),
Function(String, Vec<Vec<CssValue>>),
List(Vec<CssValue>),
}Variants§
Keyword(CssIdent)
Length(f32, Unit)
Number(f32)
String(String)
Color(String)
Function(String, Vec<Vec<CssValue>>)
e.g. rgb(255,0,0).
Arguments are comma-separated; within each argument, whitespace
separates individual components. The result is a two-level structure:
the outer Vec holds comma-separated arguments, and each inner Vec
holds the whitespace-separated components of that argument.
List(Vec<CssValue>)
Implementations§
Trait Implementations§
Source§impl Display for CssValue
Renders values back to their CSS source text, e.g. 10px, rgb(1, 2, 3)
or 100px auto. Used by the DevTools style panels.
impl Display for CssValue
Renders values back to their CSS source text, e.g. 10px, rgb(1, 2, 3)
or 100px auto. Used by the DevTools style panels.
impl StructuralPartialEq for CssValue
Auto Trait Implementations§
impl Freeze for CssValue
impl RefUnwindSafe for CssValue
impl Send for CssValue
impl Sync for CssValue
impl Unpin for CssValue
impl UnsafeUnpin for CssValue
impl UnwindSafe for CssValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more