pub struct ResolveValuesReturnObject {
pub results: Vec<String>,
}Expand description
Resolve the specified values in the context of the provided element.
For example, a value of ‘1em’ is evaluated according to the computed
‘font-size’ of the element and a value ‘calc(1px + 2px)’ will be
resolved to ‘3px’.
If the propertyName was specified the values are resolved as if
they were property’s declaration. If a value cannot be parsed according
to the provided property syntax, the value is parsed using combined
syntax as if null propertyName was provided. If the value cannot be
resolved even then, return the provided value without any changes.
Note: this function currently does not resolve CSS random() function,
it returns unmodified random() function parts.`
Fields§
§results: Vec<String>Trait Implementations§
Source§impl Clone for ResolveValuesReturnObject
impl Clone for ResolveValuesReturnObject
Source§fn clone(&self) -> ResolveValuesReturnObject
fn clone(&self) -> ResolveValuesReturnObject
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 moreSource§impl Debug for ResolveValuesReturnObject
impl Debug for ResolveValuesReturnObject
Source§impl<'de> Deserialize<'de> for ResolveValuesReturnObject
impl<'de> Deserialize<'de> for ResolveValuesReturnObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ResolveValuesReturnObject
Auto Trait Implementations§
impl Freeze for ResolveValuesReturnObject
impl RefUnwindSafe for ResolveValuesReturnObject
impl Send for ResolveValuesReturnObject
impl Sync for ResolveValuesReturnObject
impl Unpin for ResolveValuesReturnObject
impl UnsafeUnpin for ResolveValuesReturnObject
impl UnwindSafe for ResolveValuesReturnObject
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