#[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§
source§impl<'de> Deserialize<'de> for GridLine
impl<'de> Deserialize<'de> for GridLine
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)