pub struct RowSpec {
pub horizontal_arrangement: LinearArrangement,
pub vertical_alignment: VerticalAlignment,
}Expand description
Specification for Row layout behavior.
Fields§
§horizontal_arrangement: LinearArrangementHow children are spaced along the horizontal axis. Defaults to Start.
vertical_alignment: VerticalAlignmentHow children align on the vertical axis. Defaults to Top.
Implementations§
Source§impl RowSpec
impl RowSpec
Sourcepub fn horizontal_arrangement(self, arrangement: LinearArrangement) -> Self
pub fn horizontal_arrangement(self, arrangement: LinearArrangement) -> Self
Sets how children are spaced along the horizontal axis.
Sourcepub fn vertical_alignment(self, alignment: VerticalAlignment) -> Self
pub fn vertical_alignment(self, alignment: VerticalAlignment) -> Self
Sets how children align on the vertical axis.
Trait Implementations§
impl Copy for RowSpec
impl StructuralPartialEq for RowSpec
Auto Trait Implementations§
impl Freeze for RowSpec
impl RefUnwindSafe for RowSpec
impl Send for RowSpec
impl Sync for RowSpec
impl Unpin for RowSpec
impl UnsafeUnpin for RowSpec
impl UnwindSafe for RowSpec
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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