pub struct CssContainerQueryBuilder { /* private fields */ }Expand description
Builder for CssContainerQuery.
Implementations§
Source§impl CssContainerQueryBuilder
impl CssContainerQueryBuilder
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 name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Optional name for the container.
Sourcepub fn physical_axes<VALUE: Into<PhysicalAxes>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn physical_axes<VALUE: Into<PhysicalAxes>>( &mut self, value: VALUE, ) -> &mut Self
Optional physical axes queried for the container.
Sourcepub fn logical_axes<VALUE: Into<LogicalAxes>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn logical_axes<VALUE: Into<LogicalAxes>>( &mut self, value: VALUE, ) -> &mut Self
Optional logical axes queried for the container.
Sourcepub fn queries_scroll_state<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn queries_scroll_state<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
true if the query contains scroll-state() queries.
Sourcepub fn queries_anchored<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn queries_anchored<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
true if the query contains anchored() queries.
Sourcepub fn build(&self) -> Result<CssContainerQuery, CssContainerQueryBuilderError>
pub fn build(&self) -> Result<CssContainerQuery, CssContainerQueryBuilderError>
Trait Implementations§
Source§impl Clone for CssContainerQueryBuilder
impl Clone for CssContainerQueryBuilder
Source§fn clone(&self) -> CssContainerQueryBuilder
fn clone(&self) -> CssContainerQueryBuilder
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 CssContainerQueryBuilder
impl RefUnwindSafe for CssContainerQueryBuilder
impl Send for CssContainerQueryBuilder
impl Sync for CssContainerQueryBuilder
impl Unpin for CssContainerQueryBuilder
impl UnsafeUnpin for CssContainerQueryBuilder
impl UnwindSafe for CssContainerQueryBuilder
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