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) -> WrapStyle
pub fn main_gap(self) -> f32
pub fn cross_gap(self) -> f32
pub fn gap(self, gap: f32) -> WrapStyle
pub fn column_gap(self, gap: f32) -> WrapStyle
pub fn row_gap(self, gap: f32) -> WrapStyle
pub fn align(self, align: Align) -> WrapStyle
pub fn axis(self, axis: Axis) -> WrapStyle
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