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) -> ContainerStyle
pub fn gap(self, gap: f32) -> ContainerStyle
pub fn main_gap(self, gap: f32) -> ContainerStyle
pub fn cross_gap(self, gap: f32) -> ContainerStyle
pub fn gaps(self, main: f32, cross: f32) -> ContainerStyle
pub fn align_items(self, align: Align) -> ContainerStyle
pub fn justify_content(self, justify: Justify) -> ContainerStyle
pub fn wrap(self, wrap: bool) -> ContainerStyle
pub fn wrapped(self) -> ContainerStyle
pub fn align_content(self, align: Align) -> ContainerStyle
pub fn axis(self, axis: Axis) -> ContainerStyle
pub fn main_gaps_total(self, count: usize) -> f32
Trait Implementations§
Source§impl Clone for ContainerStyle
impl Clone for ContainerStyle
Source§fn clone(&self) -> ContainerStyle
fn clone(&self) -> ContainerStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContainerStyle
Source§impl Debug for ContainerStyle
impl Debug for ContainerStyle
Source§impl Default for ContainerStyle
impl Default for ContainerStyle
Source§fn default() -> ContainerStyle
fn default() -> ContainerStyle
Returns the “default value” for a type. Read more
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