#[non_exhaustive]pub enum GridTemplateColumns {
Auto,
MaxContent,
MinContent,
None,
Subgrid,
Length(Length),
Percentage(Percentage),
Raw(Raw),
}Expand description
A value of grid-template-columns.
Variants (Non-exhaustive)§
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.
Auto
auto.
MaxContent
max-content.
MinContent
min-content.
None
none.
Subgrid
subgrid.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for GridTemplateColumns
impl Clone for GridTemplateColumns
Source§fn clone(&self) -> GridTemplateColumns
fn clone(&self) -> GridTemplateColumns
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 Debug for GridTemplateColumns
impl Debug for GridTemplateColumns
Source§impl Display for GridTemplateColumns
impl Display for GridTemplateColumns
Source§impl From<Length> for GridTemplateColumns
impl From<Length> for GridTemplateColumns
Source§impl From<Percentage> for GridTemplateColumns
impl From<Percentage> for GridTemplateColumns
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for GridTemplateColumns
impl From<Raw> for GridTemplateColumns
Source§impl PartialEq for GridTemplateColumns
impl PartialEq for GridTemplateColumns
impl StructuralPartialEq for GridTemplateColumns
Auto Trait Implementations§
impl Freeze for GridTemplateColumns
impl RefUnwindSafe for GridTemplateColumns
impl Send for GridTemplateColumns
impl Sync for GridTemplateColumns
impl Unpin for GridTemplateColumns
impl UnsafeUnpin for GridTemplateColumns
impl UnwindSafe for GridTemplateColumns
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