pub(crate) struct AreaLines {
row_start: u32,
row_end: u32,
column_start: u32,
column_end: u32,
}Expand description
The one-indexed positions of the first line that starts and the first line that ends a named grid area in
each axis, i.e. the first line named <area-name>-start/<area-name>-end (explicitly or by
grid-template-areas). A value of 0 means that there is no such line.
Fields§
§row_start: u32The first line that starts the area in the row axis
row_end: u32The first line that ends the area in the row axis
column_start: u32The first line that starts the area in the column axis
column_end: u32The first line that ends the area in the column axis
Implementations§
Source§impl AreaLines
impl AreaLines
Sourcefn line(&self, axis: GridAreaAxis, end: GridAreaEnd) -> Option<&u32>
fn line(&self, axis: GridAreaAxis, end: GridAreaEnd) -> Option<&u32>
The line for the passed edge of the area (if there is one)
Sourcefn line_mut(&mut self, axis: GridAreaAxis, end: GridAreaEnd) -> &mut u32
fn line_mut(&mut self, axis: GridAreaAxis, end: GridAreaEnd) -> &mut u32
The line for the passed edge of the area (0 if there is none)
Trait Implementations§
impl Copy for AreaLines
impl Eq for AreaLines
impl StructuralPartialEq for AreaLines
Auto Trait Implementations§
impl Freeze for AreaLines
impl RefUnwindSafe for AreaLines
impl Send for AreaLines
impl Sync for AreaLines
impl Unpin for AreaLines
impl UnsafeUnpin for AreaLines
impl UnwindSafe for AreaLines
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