pub struct SetStyleSheetTextCommand { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Sets the new stylesheet text.
Implementations§
Source§impl SetStyleSheetTextCommand
impl SetStyleSheetTextCommand
pub fn new(style_sheet_id: StyleSheetId, text: String) -> Self
pub fn style_sheet_id(&self) -> &StyleSheetId
pub fn text(&self) -> &str
Trait Implementations§
Source§impl Clone for SetStyleSheetTextCommand
impl Clone for SetStyleSheetTextCommand
Source§fn clone(&self) -> SetStyleSheetTextCommand
fn clone(&self) -> SetStyleSheetTextCommand
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 Command for SetStyleSheetTextCommand
impl Command for SetStyleSheetTextCommand
Source§impl Debug for SetStyleSheetTextCommand
impl Debug for SetStyleSheetTextCommand
Source§impl<'de> Deserialize<'de> for SetStyleSheetTextCommand
impl<'de> Deserialize<'de> for SetStyleSheetTextCommand
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 Freeze for SetStyleSheetTextCommand
impl RefUnwindSafe for SetStyleSheetTextCommand
impl Send for SetStyleSheetTextCommand
impl Sync for SetStyleSheetTextCommand
impl Unpin for SetStyleSheetTextCommand
impl UnwindSafe for SetStyleSheetTextCommand
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