pub struct StyleDeclarationEdit<'a> { /* private fields */ }Expand description
A descriptor of operation to mutate style declaration text.
Implementations§
Source§impl<'a> StyleDeclarationEdit<'a>
impl<'a> StyleDeclarationEdit<'a>
Sourcepub fn builder(
style_sheet_id: StyleSheetId<'a>,
range: SourceRange,
text: impl Into<Cow<'a, str>>,
) -> StyleDeclarationEditBuilder<'a>
pub fn builder( style_sheet_id: StyleSheetId<'a>, range: SourceRange, text: impl Into<Cow<'a, str>>, ) -> StyleDeclarationEditBuilder<'a>
Creates a builder for this type with the required parameters:
style_sheet_id: The css style sheet identifier.range: The range of the style text in the enclosing stylesheet.text: New style text.
Sourcepub fn style_sheet_id(&self) -> &StyleSheetId<'a>
pub fn style_sheet_id(&self) -> &StyleSheetId<'a>
The css style sheet identifier.
Sourcepub fn range(&self) -> &SourceRange
pub fn range(&self) -> &SourceRange
The range of the style text in the enclosing stylesheet.
Trait Implementations§
Source§impl<'a> Clone for StyleDeclarationEdit<'a>
impl<'a> Clone for StyleDeclarationEdit<'a>
Source§fn clone(&self) -> StyleDeclarationEdit<'a>
fn clone(&self) -> StyleDeclarationEdit<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for StyleDeclarationEdit<'a>
impl<'a> Debug for StyleDeclarationEdit<'a>
Source§impl<'a> Default for StyleDeclarationEdit<'a>
impl<'a> Default for StyleDeclarationEdit<'a>
Source§fn default() -> StyleDeclarationEdit<'a>
fn default() -> StyleDeclarationEdit<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for StyleDeclarationEdit<'a>
impl<'de, 'a> Deserialize<'de> for StyleDeclarationEdit<'a>
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<'a> Freeze for StyleDeclarationEdit<'a>
impl<'a> RefUnwindSafe for StyleDeclarationEdit<'a>
impl<'a> Send for StyleDeclarationEdit<'a>
impl<'a> Sync for StyleDeclarationEdit<'a>
impl<'a> Unpin for StyleDeclarationEdit<'a>
impl<'a> UnsafeUnpin for StyleDeclarationEdit<'a>
impl<'a> UnwindSafe for StyleDeclarationEdit<'a>
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