pub struct SetStyleTextsParams<'a> { /* private fields */ }Expand description
Applies specified style edits one after another in the given order.
Implementations§
Source§impl<'a> SetStyleTextsParams<'a>
impl<'a> SetStyleTextsParams<'a>
Sourcepub fn builder(
edits: Vec<StyleDeclarationEdit<'a>>,
) -> SetStyleTextsParamsBuilder<'a>
pub fn builder( edits: Vec<StyleDeclarationEdit<'a>>, ) -> SetStyleTextsParamsBuilder<'a>
Creates a builder for this type with the required parameters:
edits:
pub fn edits(&self) -> &[StyleDeclarationEdit<'a>]
Sourcepub fn node_for_property_syntax_validation(&self) -> Option<&NodeId>
pub fn node_for_property_syntax_validation(&self) -> Option<&NodeId>
NodeId for the DOM node in whose context custom property declarations for registered properties should be validated. If omitted, declarations in the new rule text can only be validated statically, which may produce incorrect results if the declaration contains a var() for example.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetStyleTextsParams<'a>
impl<'a> CdpCommand<'a> for SetStyleTextsParams<'a>
Source§impl<'a> Clone for SetStyleTextsParams<'a>
impl<'a> Clone for SetStyleTextsParams<'a>
Source§fn clone(&self) -> SetStyleTextsParams<'a>
fn clone(&self) -> SetStyleTextsParams<'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 SetStyleTextsParams<'a>
impl<'a> Debug for SetStyleTextsParams<'a>
Source§impl<'a> Default for SetStyleTextsParams<'a>
impl<'a> Default for SetStyleTextsParams<'a>
Source§fn default() -> SetStyleTextsParams<'a>
fn default() -> SetStyleTextsParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SetStyleTextsParams<'a>
impl<'de, 'a> Deserialize<'de> for SetStyleTextsParams<'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 SetStyleTextsParams<'a>
impl<'a> RefUnwindSafe for SetStyleTextsParams<'a>
impl<'a> Send for SetStyleTextsParams<'a>
impl<'a> Sync for SetStyleTextsParams<'a>
impl<'a> Unpin for SetStyleTextsParams<'a>
impl<'a> UnsafeUnpin for SetStyleTextsParams<'a>
impl<'a> UnwindSafe for SetStyleTextsParams<'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