pub struct ResolveValues {
pub method: ResolveValuesMethod,
pub params: ResolveValuesParams,
}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.`
resolveValues
Fields§
§method: ResolveValuesMethod§params: ResolveValuesParamsImplementations§
Source§impl ResolveValues
impl ResolveValues
pub fn builder() -> ResolveValuesBuilder
Source§impl ResolveValues
impl ResolveValues
pub const IDENTIFIER: &'static str = "CSS.resolveValues"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ResolveValues
impl Clone for ResolveValues
Source§fn clone(&self) -> ResolveValues
fn clone(&self) -> ResolveValues
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 CommandResult for ResolveValues
impl CommandResult for ResolveValues
type Result = ResolveValuesResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for ResolveValues
impl Debug for ResolveValues
Source§impl<'de> Deserialize<'de> for ResolveValues
impl<'de> Deserialize<'de> for ResolveValues
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
Source§impl From<ResolveValues> for BrowserProtocolCommands
impl From<ResolveValues> for BrowserProtocolCommands
Source§fn from(v: ResolveValues) -> Self
fn from(v: ResolveValues) -> Self
Converts to this type from the input type.
Source§impl From<ResolveValues> for Command
impl From<ResolveValues> for Command
Source§fn from(v: ResolveValues) -> Self
fn from(v: ResolveValues) -> Self
Converts to this type from the input type.
Source§impl From<ResolveValues> for CssCommands
impl From<ResolveValues> for CssCommands
Source§fn from(v: ResolveValues) -> Self
fn from(v: ResolveValues) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResolveValues
impl PartialEq for ResolveValues
Source§impl Serialize for ResolveValues
impl Serialize for ResolveValues
Source§impl TryFrom<BrowserProtocolCommands> for ResolveValues
impl TryFrom<BrowserProtocolCommands> for ResolveValues
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <ResolveValues as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <ResolveValues as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for ResolveValues
impl TryFrom<Command> for ResolveValues
Source§impl TryFrom<CssCommands> for ResolveValues
impl TryFrom<CssCommands> for ResolveValues
Source§type Error = CssCommands
type Error = CssCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: CssCommands,
) -> Result<Self, <ResolveValues as TryFrom<CssCommands>>::Error>
fn try_from( e: CssCommands, ) -> Result<Self, <ResolveValues as TryFrom<CssCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for ResolveValues
Auto Trait Implementations§
impl Freeze for ResolveValues
impl RefUnwindSafe for ResolveValues
impl Send for ResolveValues
impl Sync for ResolveValues
impl Unpin for ResolveValues
impl UnsafeUnpin for ResolveValues
impl UnwindSafe for ResolveValues
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