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) -> FlexStyle
pub const fn horizontal() -> FlexStyle
pub const fn vertical() -> FlexStyle
pub fn wrap(self, wrap: FlexWrap) -> FlexStyle
pub fn gap(self, gap: f32) -> FlexStyle
pub fn main_gap(self, gap: f32) -> FlexStyle
pub fn cross_gap(self, gap: f32) -> FlexStyle
pub fn justify(self, justify: FlexJustify) -> FlexStyle
pub fn align_items(self, alignment: Alignment) -> FlexStyle
pub fn align_content(self, alignment: FlexAlignContent) -> FlexStyle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.