Enum Container Copy item path Source #[non_exhaustive]
pub enum Container {
Show 14 variants Xs3,
Xs2,
Xs,
Sm,
Md,
Lg,
Xl,
Xl2,
Xl3,
Xl4,
Xl5,
Xl6,
Xl7,
Xl8,
}Expand description A width of the nearest query container a part of a style applies from.
The widths are the default container sizes of Panda CSS, from 16rem to
90rem. An ancestor becomes a query container with container-type, as
Style::new().container_type(ContainerType::InlineSize) sets it. Without
one, the condition never matches.
This enum is marked as non-exhaustive Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
From 16rem wide, Panda CSS’s @/3xs.
From 18rem wide, Panda CSS’s @/2xs.
From 20rem wide, Panda CSS’s @/xs.
From 24rem wide, Panda CSS’s @/sm.
From 28rem wide, Panda CSS’s @/md.
From 32rem wide, Panda CSS’s @/lg.
From 36rem wide, Panda CSS’s @/xl.
From 42rem wide, Panda CSS’s @/2xl.
From 48rem wide, Panda CSS’s @/3xl.
From 56rem wide, Panda CSS’s @/4xl.
From 64rem wide, Panda CSS’s @/5xl.
From 72rem wide, Panda CSS’s @/6xl.
From 80rem wide, Panda CSS’s @/7xl.
From 90rem wide, Panda CSS’s @/8xl.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Converts to this type from the input type.
Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.