pub struct ResolveValuesReturns<'a> { /* private fields */ }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.’
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ResolveValuesReturns<'a>
impl<'a> Clone for ResolveValuesReturns<'a>
Source§fn clone(&self) -> ResolveValuesReturns<'a>
fn clone(&self) -> ResolveValuesReturns<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ResolveValuesReturns<'a>
impl<'a> Debug for ResolveValuesReturns<'a>
Source§impl<'a> Default for ResolveValuesReturns<'a>
impl<'a> Default for ResolveValuesReturns<'a>
Source§fn default() -> ResolveValuesReturns<'a>
fn default() -> ResolveValuesReturns<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ResolveValuesReturns<'a>
impl<'de, 'a> Deserialize<'de> for ResolveValuesReturns<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for ResolveValuesReturns<'a>
impl<'a> RefUnwindSafe for ResolveValuesReturns<'a>
impl<'a> Send for ResolveValuesReturns<'a>
impl<'a> Sync for ResolveValuesReturns<'a>
impl<'a> Unpin for ResolveValuesReturns<'a>
impl<'a> UnsafeUnpin for ResolveValuesReturns<'a>
impl<'a> UnwindSafe for ResolveValuesReturns<'a>
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