pub struct ContainerStyle {
pub axis: Axis,
pub gap: f32,
pub cross_gap: f32,
pub align: Align,
pub justify: Justify,
pub wrap: bool,
pub align_content: Align,
}Fields§
§axis: Axis§gap: f32§cross_gap: f32§align: Align§justify: Justify§wrap: bool§align_content: AlignImplementations§
Source§impl ContainerStyle
impl ContainerStyle
pub fn new(axis: Axis, gap: f32) -> 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 gaps(self, main: f32, cross: f32) -> Self
pub fn align_items(self, align: Align) -> Self
pub fn justify_content(self, justify: Justify) -> Self
pub fn wrap(self, wrap: bool) -> Self
pub fn wrapped(self) -> Self
pub fn align_content(self, align: Align) -> Self
pub fn axis(self, axis: Axis) -> Self
pub fn main_gaps_total(self, count: usize) -> f32
Trait Implementations§
Source§impl Clone for ContainerStyle
impl Clone for ContainerStyle
impl Copy for ContainerStyle
Source§impl Debug for ContainerStyle
impl Debug for ContainerStyle
Source§impl Default for ContainerStyle
impl Default for ContainerStyle
Source§impl PartialEq for ContainerStyle
impl PartialEq for ContainerStyle
impl StructuralPartialEq for ContainerStyle
Auto Trait Implementations§
impl Freeze for ContainerStyle
impl RefUnwindSafe for ContainerStyle
impl Send for ContainerStyle
impl Sync for ContainerStyle
impl Unpin for ContainerStyle
impl UnsafeUnpin for ContainerStyle
impl UnwindSafe for ContainerStyle
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