pub struct StyleDeclarationEditBuilder { /* private fields */ }Expand description
Builder for StyleDeclarationEdit.
Implementations§
Source§impl StyleDeclarationEditBuilder
impl StyleDeclarationEditBuilder
Sourcepub fn style_sheet_id<VALUE: Into<StyleSheetId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn style_sheet_id<VALUE: Into<StyleSheetId>>( &mut self, value: VALUE, ) -> &mut Self
The css style sheet identifier.
Sourcepub fn range<VALUE: Into<SourceRange>>(&mut self, value: VALUE) -> &mut Self
pub fn range<VALUE: Into<SourceRange>>(&mut self, value: VALUE) -> &mut Self
The range of the style text in the enclosing stylesheet.
Sourcepub fn build(
&self,
) -> Result<StyleDeclarationEdit, StyleDeclarationEditBuilderError>
pub fn build( &self, ) -> Result<StyleDeclarationEdit, StyleDeclarationEditBuilderError>
Trait Implementations§
Source§impl Clone for StyleDeclarationEditBuilder
impl Clone for StyleDeclarationEditBuilder
Source§fn clone(&self) -> StyleDeclarationEditBuilder
fn clone(&self) -> StyleDeclarationEditBuilder
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 StyleDeclarationEditBuilder
impl RefUnwindSafe for StyleDeclarationEditBuilder
impl Send for StyleDeclarationEditBuilder
impl Sync for StyleDeclarationEditBuilder
impl Unpin for StyleDeclarationEditBuilder
impl UnsafeUnpin for StyleDeclarationEditBuilder
impl UnwindSafe for StyleDeclarationEditBuilder
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