Struct style::stylesheets::container_rule::ContainerSizeQueryResult
source · pub struct ContainerSizeQueryResult {
width: Option<Au>,
height: Option<Au>,
}
Expand description
Result of a container size query, signifying the hypothetical containment boundary in terms of physical axes. Defined by up to two size containers. Queries on logical axes are resolved with respect to the querying element’s writing mode.
Fields§
§width: Option<Au>
§height: Option<Au>
Implementations§
source§impl ContainerSizeQueryResult
impl ContainerSizeQueryResult
fn get_viewport_size(context: &Context<'_>) -> Size2D<Au>
fn get_logical_viewport_size(context: &Context<'_>) -> LogicalSize<Au>
sourcepub fn get_container_inline_size(&self, context: &Context<'_>) -> Au
pub fn get_container_inline_size(&self, context: &Context<'_>) -> Au
Get the inline-size of the query container.
sourcepub fn get_container_block_size(&self, context: &Context<'_>) -> Au
pub fn get_container_block_size(&self, context: &Context<'_>) -> Au
Get the block-size of the query container.
sourcepub fn get_container_width(&self, context: &Context<'_>) -> Au
pub fn get_container_width(&self, context: &Context<'_>) -> Au
Get the width of the query container.
sourcepub fn get_container_height(&self, context: &Context<'_>) -> Au
pub fn get_container_height(&self, context: &Context<'_>) -> Au
Get the height of the query container.
fn merge(self, new_result: Self) -> Self
fn is_complete(&self) -> bool
Trait Implementations§
source§impl Clone for ContainerSizeQueryResult
impl Clone for ContainerSizeQueryResult
source§fn clone(&self) -> ContainerSizeQueryResult
fn clone(&self) -> ContainerSizeQueryResult
Returns a copy 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 Default for ContainerSizeQueryResult
impl Default for ContainerSizeQueryResult
source§fn default() -> ContainerSizeQueryResult
fn default() -> ContainerSizeQueryResult
Returns the “default value” for a type. Read more
impl Copy for ContainerSizeQueryResult
Auto Trait Implementations§
impl Freeze for ContainerSizeQueryResult
impl RefUnwindSafe for ContainerSizeQueryResult
impl Send for ContainerSizeQueryResult
impl Sync for ContainerSizeQueryResult
impl Unpin for ContainerSizeQueryResult
impl UnwindSafe for ContainerSizeQueryResult
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert