pub struct GridFacts {
pub is_row: bool,
pub row_valign: Option<CrossAlign>,
pub col_span: u16,
pub align: Option<Alignment>,
}Expand description
Per-node grid facts (docs/grid.md), carried on Flex — the shipped form of the §7.2
ChildRef facts surface. Set at build time by grid_row and the .grid_span/.grid_align
modifiers; only GridLayout reads them.
Fields§
§is_row: boolThe node is a grid_row carrier: its children are that row’s cells.
row_valign: Option<CrossAlign>Row-only: vertical alignment override for the row’s cells.
col_span: u16Cell-only: columns spanned (0 = unset = 1).
align: Option<Alignment>Cell-only: alignment override within the cell rect.
Trait Implementations§
impl Copy for GridFacts
impl StructuralPartialEq for GridFacts
Auto Trait Implementations§
impl Freeze for GridFacts
impl RefUnwindSafe for GridFacts
impl Send for GridFacts
impl Sync for GridFacts
impl Unpin for GridFacts
impl UnsafeUnpin for GridFacts
impl UnwindSafe for GridFacts
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more