pub struct SetStyleTextsBuilder { /* private fields */ }Expand description
Builder for SetStyleTexts.
Implementations§
Source§impl SetStyleTextsBuilder
impl SetStyleTextsBuilder
pub fn edits<VALUE: Into<Vec<StyleDeclarationEdit>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn node_for_property_syntax_validation<VALUE: Into<NodeId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn node_for_property_syntax_validation<VALUE: Into<NodeId>>( &mut self, value: VALUE, ) -> &mut Self
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.
Sourcepub fn build(&self) -> Result<SetStyleTexts, SetStyleTextsBuilderError>
pub fn build(&self) -> Result<SetStyleTexts, SetStyleTextsBuilderError>
Trait Implementations§
Source§impl Clone for SetStyleTextsBuilder
impl Clone for SetStyleTextsBuilder
Source§fn clone(&self) -> SetStyleTextsBuilder
fn clone(&self) -> SetStyleTextsBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetStyleTextsBuilder
impl RefUnwindSafe for SetStyleTextsBuilder
impl Send for SetStyleTextsBuilder
impl Sync for SetStyleTextsBuilder
impl Unpin for SetStyleTextsBuilder
impl UnsafeUnpin for SetStyleTextsBuilder
impl UnwindSafe for SetStyleTextsBuilder
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