pub struct AddRule { /* private fields */ }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 AddRule
impl AddRule
pub fn new( style_sheet_id: impl Into<StyleSheetId>, rule_text: impl Into<String>, location: impl Into<SourceRange>, ) -> Self
pub fn with_node_for_property_syntax_validation( self, node_for_property_syntax_validation: impl Into<NodeId>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AddRule
impl RefUnwindSafe for AddRule
impl Send for AddRule
impl Sync for AddRule
impl Unpin for AddRule
impl UnwindSafe for AddRule
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