pub struct AddRuleBuilder { /* private fields */ }Implementations§
Source§impl AddRuleBuilder
impl AddRuleBuilder
pub fn style_sheet_id(self, style_sheet_id: impl Into<StyleSheetId>) -> Self
pub fn rule_text(self, rule_text: impl Into<String>) -> Self
pub fn location(self, location: impl Into<SourceRange>) -> Self
pub fn node_for_property_syntax_validation( self, node_for_property_syntax_validation: impl Into<NodeId>, ) -> Self
pub fn build(self) -> Result<AddRule, String>
Trait Implementations§
Source§impl Clone for AddRuleBuilder
impl Clone for AddRuleBuilder
Source§fn clone(&self) -> AddRuleBuilder
fn clone(&self) -> AddRuleBuilder
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 Default for AddRuleBuilder
impl Default for AddRuleBuilder
Source§fn default() -> AddRuleBuilder
fn default() -> AddRuleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddRuleBuilder
impl RefUnwindSafe for AddRuleBuilder
impl Send for AddRuleBuilder
impl Sync for AddRuleBuilder
impl Unpin for AddRuleBuilder
impl UnsafeUnpin for AddRuleBuilder
impl UnwindSafe for AddRuleBuilder
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