pub struct AddRuleCommand { /* 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§
Source§impl AddRuleCommand
impl AddRuleCommand
pub fn new( style_sheet_id: StyleSheetId, rule_text: String, location: SourceRange, ) -> Self
Sourcepub fn style_sheet_id(&self) -> &StyleSheetId
pub fn style_sheet_id(&self) -> &StyleSheetId
The css style sheet identifier where a new rule should be inserted.
Sourcepub fn location(&self) -> &SourceRange
pub fn location(&self) -> &SourceRange
Text position of a new rule in the target style sheet.
Trait Implementations§
Source§impl Clone for AddRuleCommand
impl Clone for AddRuleCommand
Source§fn clone(&self) -> AddRuleCommand
fn clone(&self) -> AddRuleCommand
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 Command for AddRuleCommand
impl Command for AddRuleCommand
Source§impl Debug for AddRuleCommand
impl Debug for AddRuleCommand
Source§impl<'de> Deserialize<'de> for AddRuleCommand
impl<'de> Deserialize<'de> for AddRuleCommand
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 AddRuleCommand
impl RefUnwindSafe for AddRuleCommand
impl Send for AddRuleCommand
impl Sync for AddRuleCommand
impl Unpin for AddRuleCommand
impl UnwindSafe for AddRuleCommand
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