pub struct AddRuleReturn { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the
position specified by location.
Implementations§
Methods from Deref<Target = CssRule>§
Sourcepub fn style_sheet_id(&self) -> Option<&StyleSheetId>
pub fn style_sheet_id(&self) -> Option<&StyleSheetId>
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Sourcepub fn selector_list(&self) -> &SelectorList
pub fn selector_list(&self) -> &SelectorList
Rule selector data.
Sourcepub fn origin(&self) -> &StyleSheetOrigin
pub fn origin(&self) -> &StyleSheetOrigin
Parent stylesheet’s origin.
Trait Implementations§
Source§impl Clone for AddRuleReturn
impl Clone for AddRuleReturn
Source§fn clone(&self) -> AddRuleReturn
fn clone(&self) -> AddRuleReturn
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 AddRuleReturn
impl Debug for AddRuleReturn
Source§impl Deref for AddRuleReturn
impl Deref for AddRuleReturn
Source§impl<'de> Deserialize<'de> for AddRuleReturn
impl<'de> Deserialize<'de> for AddRuleReturn
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 Freeze for AddRuleReturn
impl RefUnwindSafe for AddRuleReturn
impl Send for AddRuleReturn
impl Sync for AddRuleReturn
impl Unpin for AddRuleReturn
impl UnwindSafe for AddRuleReturn
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