pub struct FlexOptions {
pub direction: Axis,
pub main_size: MainAxisSize,
pub main_align: MainAxisAlignment,
pub cross_align: CrossAxisAlignment,
}
Expand description
Options for a flex arranger.
Fields§
§direction: Axis
The direction to use as the main axis.
main_size: MainAxisSize
How much space should be occupied in the main axis.
main_align: MainAxisAlignment
How the group members should be placed along the main axis.
cross_align: CrossAxisAlignment
How the group members should be placed along the cross axis.
Implementations§
Source§impl FlexOptions
impl FlexOptions
Sourcepub fn column(
main_size: MainAxisSize,
main_align: MainAxisAlignment,
cross_align: CrossAxisAlignment,
) -> Self
pub fn column( main_size: MainAxisSize, main_align: MainAxisAlignment, cross_align: CrossAxisAlignment, ) -> Self
Create FlexOptions for a column.
Sourcepub fn row(
main_size: MainAxisSize,
main_align: MainAxisAlignment,
cross_align: CrossAxisAlignment,
) -> Self
pub fn row( main_size: MainAxisSize, main_align: MainAxisAlignment, cross_align: CrossAxisAlignment, ) -> Self
Create FlexOptions for a row.
Trait Implementations§
Source§impl Debug for FlexOptions
impl Debug for FlexOptions
Source§impl Default for FlexOptions
impl Default for FlexOptions
Source§fn default() -> FlexOptions
fn default() -> FlexOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlexOptions
impl RefUnwindSafe for FlexOptions
impl Send for FlexOptions
impl Sync for FlexOptions
impl Unpin for FlexOptions
impl UnwindSafe for FlexOptions
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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