pub struct GridArea {
pub row_start: GridPlacement,
pub column_start: GridPlacement,
pub row_end: GridPlacement,
pub column_end: GridPlacement,
}Expand description
Represents the grid-area shorthand.
Fields§
§row_start: GridPlacementThe grid row start line.
column_start: GridPlacementThe grid column start line.
row_end: GridPlacementThe grid row end line.
column_end: GridPlacementThe grid column end line.
Trait Implementations§
Source§impl<'i> FromCss<'i> for GridArea
impl<'i> FromCss<'i> for GridArea
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.
impl StructuralPartialEq for GridArea
Auto Trait Implementations§
impl Freeze for GridArea
impl RefUnwindSafe for GridArea
impl Send for GridArea
impl Sync for GridArea
impl Unpin for GridArea
impl UnsafeUnpin for GridArea
impl UnwindSafe for GridArea
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