Skip to main content

FlexboxLayoutData

Struct FlexboxLayoutData 

Source
#[repr(C)]
pub struct FlexboxLayoutData<'a> {
Show 13 fields pub width: Coord, pub height: Coord, pub spacing_h: Coord, pub spacing_v: Coord, pub padding_h: Padding, pub padding_v: Padding, pub alignment: LayoutAlignment, pub direction: FlexboxLayoutDirection, pub align_content: FlexboxLayoutAlignContent, pub cross_axis_alignment: CrossAxisAlignment, pub flex_wrap: FlexboxLayoutWrap, pub cells_h: Slice<'a, FlexboxLayoutItemInfo>, pub cells_v: Slice<'a, FlexboxLayoutItemInfo>,
}
Expand description

The FlexboxLayoutData is used for a flex layout.

Fields§

§width: Coord§height: Coord§spacing_h: Coord§spacing_v: Coord§padding_h: Padding§padding_v: Padding§alignment: LayoutAlignment§direction: FlexboxLayoutDirection§align_content: FlexboxLayoutAlignContent§cross_axis_alignment: CrossAxisAlignment§flex_wrap: FlexboxLayoutWrap§cells_h: Slice<'a, FlexboxLayoutItemInfo>

Horizontal constraints (width) for each cell

§cells_v: Slice<'a, FlexboxLayoutItemInfo>

Vertical constraints (height) for each cell

Trait Implementations§

Source§

impl<'a> Debug for FlexboxLayoutData<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for FlexboxLayoutData<'a>

§

impl<'a> RefUnwindSafe for FlexboxLayoutData<'a>

§

impl<'a> Send for FlexboxLayoutData<'a>

§

impl<'a> Sync for FlexboxLayoutData<'a>

§

impl<'a> Unpin for FlexboxLayoutData<'a>

§

impl<'a> UnsafeUnpin for FlexboxLayoutData<'a>

§

impl<'a> UnwindSafe for FlexboxLayoutData<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.