Struct style::properties::UnparsedValue
source · pub struct UnparsedValue {
css: String,
first_token_type: TokenSerializationType,
url_data: UrlExtraData,
from_shorthand: Option<ShorthandId>,
}
Expand description
An unparsed property value that contains var()
functions.
Fields§
§css: String
The css serialization for this value.
first_token_type: TokenSerializationType
The first token type for this serialization.
url_data: UrlExtraData
The url data for resolving url values.
from_shorthand: Option<ShorthandId>
The shorthand this came from.
Implementations§
source§impl UnparsedValue
impl UnparsedValue
fn substitute_variables<'cache>(
&self,
longhand_id: LonghandId,
writing_mode: WritingMode,
custom_properties: Option<&Arc<CustomPropertiesMap>>,
quirks_mode: QuirksMode,
device: &Device,
shorthand_cache: &'cache mut ShorthandsWithPropertyReferencesCache
) -> Cow<'cache, PropertyDeclaration>
Trait Implementations§
source§impl Debug for UnparsedValue
impl Debug for UnparsedValue
source§impl PartialEq<UnparsedValue> for UnparsedValue
impl PartialEq<UnparsedValue> for UnparsedValue
source§fn eq(&self, other: &UnparsedValue) -> bool
fn eq(&self, other: &UnparsedValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToCss for UnparsedValue
impl ToCss for UnparsedValue
source§impl ToShmem for UnparsedValue
impl ToShmem for UnparsedValue
impl Eq for UnparsedValue
impl StructuralEq for UnparsedValue
impl StructuralPartialEq for UnparsedValue
Auto Trait Implementations§
impl RefUnwindSafe for UnparsedValue
impl Send for UnparsedValue
impl Sync for UnparsedValue
impl Unpin for UnparsedValue
impl UnwindSafe for UnparsedValue
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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