#[non_exhaustive]pub struct GridAutoFlow {
pub direction: GridDirection,
pub dense: bool,
}Expand description
Represents the flow of the grid auto placement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.direction: GridDirectionThe direction of the grid auto flow.
dense: boolWhether the grid auto flow is dense.
Implementations§
Trait Implementations§
Source§impl Clone for GridAutoFlow
impl Clone for GridAutoFlow
Source§fn clone(&self) -> GridAutoFlow
fn clone(&self) -> GridAutoFlow
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 moreimpl Copy for GridAutoFlow
Source§impl Debug for GridAutoFlow
impl Debug for GridAutoFlow
Source§impl Default for GridAutoFlow
impl Default for GridAutoFlow
Source§fn default() -> GridAutoFlow
fn default() -> GridAutoFlow
Returns the “default value” for a type. Read more
Source§impl From<GridAutoFlow> for GridAutoFlow
impl From<GridAutoFlow> for GridAutoFlow
Source§fn from(value: GridAutoFlow) -> Self
fn from(value: GridAutoFlow) -> Self
Converts to this type from the input type.
Source§impl<'i> FromCss<'i> for GridAutoFlow
impl<'i> FromCss<'i> for GridAutoFlow
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl PartialEq for GridAutoFlow
impl PartialEq for GridAutoFlow
Source§fn eq(&self, other: &GridAutoFlow) -> bool
fn eq(&self, other: &GridAutoFlow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GridAutoFlow
Auto Trait Implementations§
impl Freeze for GridAutoFlow
impl RefUnwindSafe for GridAutoFlow
impl Send for GridAutoFlow
impl Sync for GridAutoFlow
impl Unpin for GridAutoFlow
impl UnsafeUnpin for GridAutoFlow
impl UnwindSafe for GridAutoFlow
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