pub struct WrapStyle {
pub axis: Axis,
pub align: Align,
pub column_gap: f32,
pub row_gap: f32,
}Fields§
§axis: Axis§align: Align§column_gap: f32§row_gap: f32Implementations§
Source§impl WrapStyle
impl WrapStyle
pub fn new(axis: Axis) -> Self
pub fn main_gap(self) -> f32
pub fn cross_gap(self) -> f32
pub fn gap(self, gap: f32) -> Self
pub fn column_gap(self, gap: f32) -> Self
pub fn row_gap(self, gap: f32) -> Self
pub fn align(self, align: Align) -> Self
pub fn axis(self, axis: Axis) -> Self
Trait Implementations§
impl Copy for WrapStyle
impl StructuralPartialEq for WrapStyle
Auto Trait Implementations§
impl Freeze for WrapStyle
impl RefUnwindSafe for WrapStyle
impl Send for WrapStyle
impl Sync for WrapStyle
impl Unpin for WrapStyle
impl UnsafeUnpin for WrapStyle
impl UnwindSafe for WrapStyle
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