pub struct CSSContainerQuery<'a> { /* private fields */ }Expand description
CSS container query rule descriptor.
Implementations§
Source§impl<'a> CSSContainerQuery<'a>
impl<'a> CSSContainerQuery<'a>
Sourcepub fn builder(
text: impl Into<Cow<'a, str>>,
condition_text: impl Into<Cow<'a, str>>,
) -> CSSContainerQueryBuilder<'a>
pub fn builder( text: impl Into<Cow<'a, str>>, condition_text: impl Into<Cow<'a, str>>, ) -> CSSContainerQueryBuilder<'a>
Creates a builder for this type with the required parameters:
text: Container query text. Contains the query part without the container name for a single query. Deprecated in favor of conditionText which contains the full prelude after @container.condition_text: CSSContainerRule.conditionText
Sourcepub fn text(&self) -> &str
pub fn text(&self) -> &str
Container query text. Contains the query part without the container name for a single query. Deprecated in favor of conditionText which contains the full prelude after @container.
Sourcepub fn range(&self) -> Option<&SourceRange>
pub fn range(&self) -> Option<&SourceRange>
The associated rule header range in the enclosing stylesheet (if available).
Sourcepub fn style_sheet_id(&self) -> Option<&StyleSheetId<'a>>
pub fn style_sheet_id(&self) -> Option<&StyleSheetId<'a>>
Identifier of the stylesheet containing this object (if exists).
Sourcepub fn physical_axes(&self) -> Option<&PhysicalAxes>
pub fn physical_axes(&self) -> Option<&PhysicalAxes>
Optional physical axes queried for the container.
Sourcepub fn logical_axes(&self) -> Option<&LogicalAxes>
pub fn logical_axes(&self) -> Option<&LogicalAxes>
Optional logical axes queried for the container.
Sourcepub fn queries_scroll_state(&self) -> Option<bool>
pub fn queries_scroll_state(&self) -> Option<bool>
true if the query contains scroll-state() queries.
Sourcepub fn queries_anchored(&self) -> Option<bool>
pub fn queries_anchored(&self) -> Option<bool>
true if the query contains anchored() queries.
Sourcepub fn condition_text(&self) -> &str
pub fn condition_text(&self) -> &str
CSSContainerRule.conditionText
Trait Implementations§
Source§impl<'a> Clone for CSSContainerQuery<'a>
impl<'a> Clone for CSSContainerQuery<'a>
Source§fn clone(&self) -> CSSContainerQuery<'a>
fn clone(&self) -> CSSContainerQuery<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CSSContainerQuery<'a>
impl<'a> Debug for CSSContainerQuery<'a>
Source§impl<'a> Default for CSSContainerQuery<'a>
impl<'a> Default for CSSContainerQuery<'a>
Source§fn default() -> CSSContainerQuery<'a>
fn default() -> CSSContainerQuery<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for CSSContainerQuery<'a>
impl<'de, 'a> Deserialize<'de> for CSSContainerQuery<'a>
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<'a> Freeze for CSSContainerQuery<'a>
impl<'a> RefUnwindSafe for CSSContainerQuery<'a>
impl<'a> Send for CSSContainerQuery<'a>
impl<'a> Sync for CSSContainerQuery<'a>
impl<'a> Unpin for CSSContainerQuery<'a>
impl<'a> UnsafeUnpin for CSSContainerQuery<'a>
impl<'a> UnwindSafe for CSSContainerQuery<'a>
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