Skip to main content

SpecifiedValue

Type Alias SpecifiedValue 

Source
pub type SpecifiedValue = VariableValue;
Expand description

Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.

Aliased Type§

pub struct SpecifiedValue {
    pub css: String,
    pub url_data: UrlExtraData,
    first_token_type: TokenSerializationType,
    last_token_type: TokenSerializationType,
    references: References,
}

Fields§

§css: String

The raw CSS string.

§url_data: UrlExtraData

The url data of the stylesheet where this value came from.

§first_token_type: TokenSerializationType§last_token_type: TokenSerializationType§references: References

var(), env(), attr() or non-custom property (e.g. through em) references.

Trait Implementations§

Source§

impl ToCss for SpecifiedValue

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Serialize self in CSS syntax, writing to dest.
Source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more
Source§

fn to_css_cssstring(&self) -> String

Serialize self in CSS syntax and return a CssString. Read more
Source§

impl ToTyped for SpecifiedValue

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Attempt to convert self into one or more TypedValue items. Read more
Source§

fn to_typed_value(&self) -> Option<TypedValue>

Attempt to convert self into a TypedValue. Read more
Source§

fn to_typed_value_list(&self) -> Option<TypedValueList>

Attempt to convert self into a TypedValueList. Read more