pub struct FlexStyle {
pub direction: FlexDirection,
pub justify_content: JustifyContent,
pub align_items: AlignItems,
pub gap: u16,
pub flex_grow: f32,
pub flex_shrink: f32,
}Expand description
Flex layout style properties
Fields§
§direction: FlexDirection§justify_content: JustifyContent§align_items: AlignItems§gap: u16§flex_grow: f32§flex_shrink: f32Implementations§
Source§impl FlexStyle
impl FlexStyle
pub fn new() -> Self
pub fn row(self) -> Self
pub fn column(self) -> Self
pub fn justify(self, justify: JustifyContent) -> Self
pub fn align(self, align: AlignItems) -> Self
pub fn gap(self, gap: u16) -> Self
pub fn flex_grow(self, grow: f32) -> Self
pub fn flex_shrink(self, shrink: f32) -> Self
Trait Implementations§
impl Copy for FlexStyle
Auto Trait Implementations§
impl Freeze for FlexStyle
impl RefUnwindSafe for FlexStyle
impl Send for FlexStyle
impl Sync for FlexStyle
impl Unpin for FlexStyle
impl UnsafeUnpin for FlexStyle
impl UnwindSafe for FlexStyle
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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