#[repr(transparent)]pub struct GridLine(i16);
Expand description
Represents a grid line position in “CSS Grid Line” coordinates
“CSS Grid Line” coordinates are those used in grid-row/grid-column in the CSS grid spec:
- The line at left hand (or top) edge of the explicit grid is line 1 (and counts up from there)
- The line at the right hand (or bottom) edge of the explicit grid is -1 (and counts down from there)
- 0 is not a valid index
Tuple Fields§
§0: i16
Implementations§
Source§impl GridLine
impl GridLine
Sourcepub(crate) fn into_origin_zero_line(
self,
explicit_track_count: u16,
) -> OriginZeroLine
pub(crate) fn into_origin_zero_line( self, explicit_track_count: u16, ) -> OriginZeroLine
Convert into OriginZero coordinates using the specified explicit track count
Trait Implementations§
impl Copy for GridLine
impl Eq for GridLine
impl GridCoordinate for GridLine
impl StructuralPartialEq for GridLine
Auto Trait Implementations§
impl Freeze for GridLine
impl RefUnwindSafe for GridLine
impl Send for GridLine
impl Sync for GridLine
impl Unpin for GridLine
impl UnwindSafe for GridLine
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