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