pub struct SetMediaTextReturn { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Modifies the rule selector.
Implementations§
Methods from Deref<Target = CssMedia>§
Sourcepub fn source(&self) -> &CssMediaSource
pub fn source(&self) -> &CssMediaSource
Source of the media query: “mediaRule” if specified by a @media rule, “importRule” if specified by an @import rule, “linkedSheet” if specified by a “media” attribute in a linked stylesheet’s LINK tag, “inlineSheet” if specified by a “media” attribute in an inline stylesheet’s STYLE tag.
Sourcepub fn source_url(&self) -> Option<&String>
pub fn source_url(&self) -> Option<&String>
URL of the document containing the media query description.
Sourcepub fn range(&self) -> Option<&SourceRange>
pub fn range(&self) -> Option<&SourceRange>
The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
Sourcepub fn style_sheet_id(&self) -> Option<&StyleSheetId>
pub fn style_sheet_id(&self) -> Option<&StyleSheetId>
Identifier of the stylesheet containing this object (if exists).
Sourcepub fn media_list(&self) -> Option<&Vec<MediaQuery>>
pub fn media_list(&self) -> Option<&Vec<MediaQuery>>
Array of media queries.
Trait Implementations§
Source§impl Clone for SetMediaTextReturn
impl Clone for SetMediaTextReturn
Source§fn clone(&self) -> SetMediaTextReturn
fn clone(&self) -> SetMediaTextReturn
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 Debug for SetMediaTextReturn
impl Debug for SetMediaTextReturn
Source§impl Deref for SetMediaTextReturn
impl Deref for SetMediaTextReturn
Source§impl<'de> Deserialize<'de> for SetMediaTextReturn
impl<'de> Deserialize<'de> for SetMediaTextReturn
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 SetMediaTextReturn
impl RefUnwindSafe for SetMediaTextReturn
impl Send for SetMediaTextReturn
impl Sync for SetMediaTextReturn
impl Unpin for SetMediaTextReturn
impl UnwindSafe for SetMediaTextReturn
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