pub struct CssSupportsBuilder { /* private fields */ }Expand description
Builder for CssSupports.
Implementations§
Source§impl CssSupportsBuilder
impl CssSupportsBuilder
Sourcepub fn active<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn active<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether the supports condition is satisfied.
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 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 build(&self) -> Result<CssSupports, CssSupportsBuilderError>
pub fn build(&self) -> Result<CssSupports, CssSupportsBuilderError>
Trait Implementations§
Source§impl Clone for CssSupportsBuilder
impl Clone for CssSupportsBuilder
Source§fn clone(&self) -> CssSupportsBuilder
fn clone(&self) -> CssSupportsBuilder
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 CssSupportsBuilder
impl RefUnwindSafe for CssSupportsBuilder
impl Send for CssSupportsBuilder
impl Sync for CssSupportsBuilder
impl Unpin for CssSupportsBuilder
impl UnsafeUnpin for CssSupportsBuilder
impl UnwindSafe for CssSupportsBuilder
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