pub struct FlexStyle {
pub axis: Axis,
pub wrap: FlexWrap,
pub main_gap: f32,
pub cross_gap: f32,
pub justify: FlexJustify,
pub align_items: Alignment,
pub align_content: FlexAlignContent,
}Fields§
§axis: Axis§wrap: FlexWrap§main_gap: f32§cross_gap: f32§justify: FlexJustify§align_items: Alignment§align_content: FlexAlignContentImplementations§
Source§impl FlexStyle
impl FlexStyle
pub const fn new(axis: Axis) -> Self
pub const fn horizontal() -> Self
pub const fn vertical() -> Self
pub fn wrap(self, wrap: FlexWrap) -> Self
pub fn gap(self, gap: f32) -> Self
pub fn main_gap(self, gap: f32) -> Self
pub fn cross_gap(self, gap: f32) -> Self
pub fn justify(self, justify: FlexJustify) -> Self
pub fn align_items(self, alignment: Alignment) -> Self
pub fn align_content(self, alignment: FlexAlignContent) -> Self
Trait Implementations§
impl Copy for FlexStyle
impl StructuralPartialEq for FlexStyle
Auto Trait Implementations§
impl Forget for FlexStyle
impl Freeze for FlexStyle
impl Move 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