pub struct ColumnSpec {
pub vertical_arrangement: LinearArrangement,
pub horizontal_alignment: HorizontalAlignment,
}Expand description
Specification for Column layout behavior.
Fields§
§vertical_arrangement: LinearArrangementHow children are spaced along the vertical axis. Defaults to Start.
horizontal_alignment: HorizontalAlignmentHow children align on the horizontal axis. Defaults to Start.
Implementations§
Source§impl ColumnSpec
impl ColumnSpec
Sourcepub fn vertical_arrangement(self, arrangement: LinearArrangement) -> Self
pub fn vertical_arrangement(self, arrangement: LinearArrangement) -> Self
Sets how children are spaced along the vertical axis.
Sourcepub fn horizontal_alignment(self, alignment: HorizontalAlignment) -> Self
pub fn horizontal_alignment(self, alignment: HorizontalAlignment) -> Self
Sets how children align on the horizontal axis.
Trait Implementations§
Source§impl Clone for ColumnSpec
impl Clone for ColumnSpec
impl Copy for ColumnSpec
Source§impl Debug for ColumnSpec
impl Debug for ColumnSpec
Source§impl Default for ColumnSpec
impl Default for ColumnSpec
Source§impl PartialEq for ColumnSpec
impl PartialEq for ColumnSpec
impl StructuralPartialEq for ColumnSpec
Auto Trait Implementations§
impl Freeze for ColumnSpec
impl RefUnwindSafe for ColumnSpec
impl Send for ColumnSpec
impl Sync for ColumnSpec
impl Unpin for ColumnSpec
impl UnsafeUnpin for ColumnSpec
impl UnwindSafe for ColumnSpec
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