pub struct CssMediaBuilder { /* private fields */ }Expand description
Builder for CssMedia.
Implementations§
Source§impl CssMediaBuilder
impl CssMediaBuilder
Sourcepub fn source<VALUE: Into<CssMediaSource>>(&mut self, value: VALUE) -> &mut Self
pub fn source<VALUE: Into<CssMediaSource>>(&mut self, value: VALUE) -> &mut Self
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<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn source_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
URL of the document containing the media query description.
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 associated rule (@media or @import) header range in the enclosing stylesheet (if available).
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
Identifier of the stylesheet containing this object (if exists).
Sourcepub fn media_list<VALUE: Into<Vec<MediaQuery>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn media_list<VALUE: Into<Vec<MediaQuery>>>( &mut self, value: VALUE, ) -> &mut Self
Array of media queries.
Trait Implementations§
Source§impl Clone for CssMediaBuilder
impl Clone for CssMediaBuilder
Source§fn clone(&self) -> CssMediaBuilder
fn clone(&self) -> CssMediaBuilder
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 CssMediaBuilder
impl RefUnwindSafe for CssMediaBuilder
impl Send for CssMediaBuilder
impl Sync for CssMediaBuilder
impl Unpin for CssMediaBuilder
impl UnsafeUnpin for CssMediaBuilder
impl UnwindSafe for CssMediaBuilder
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