Skip to main content

GridContainerConstants

Struct GridContainerConstants 

Source
struct GridContainerConstants {
Show 20 fields direction: Direction, contain: Contain, containing_block_claims: ContainingBlockClaims, padding: Rect<f32>, border: Rect<f32>, padding_border_size: Size<f32>, min_size: Size<Option<f32>>, max_size: Size<Option<f32>>, preferred_size: Size<Option<f32>>, scrollbar_gutter: Point<f32>, content_box_inset: Rect<f32>, align_content: AlignContent, justify_content: AlignContent, align_items: AlignItems, justify_items: AlignItems, available_grid_space: Size<AvailableSpace>, outer_node_size: Size<Option<f32>>, inner_min_size: Size<Option<f32>>, inner_max_size: Size<Option<f32>>, inner_node_size: Size<Option<f32>>,
}
Expand description

The grid container’s resolved box, size constraints, alignment styles and available space, computed once from the container’s style and the layout inputs before the grid is laid out

Fields§

§direction: Direction

The container’s direction style

§contain: Contain

The container’s contain style

§containing_block_claims: ContainingBlockClaims

Which positioning schemes the container is a containing block for

§padding: Rect<f32>

The container’s resolved padding

§border: Rect<f32>

The container’s resolved border

§padding_border_size: Size<f32>

The sum of padding and border in each axis

§min_size: Size<Option<f32>>

The container’s border-box min size, if definite

§max_size: Size<Option<f32>>

The container’s border-box max size, if definite

§preferred_size: Size<Option<f32>>

The container’s border-box preferred size, if definite

§scrollbar_gutter: Point<f32>

The space reserved for scrollbars in each axis

§content_box_inset: Rect<f32>

Padding, border and scrollbar gutter combined

§align_content: AlignContent

The container’s align-content style

§justify_content: AlignContent

The container’s justify-content style

§align_items: AlignItems

The container’s align-items style

§justify_items: AlignItems

The container’s justify-items style

§available_grid_space: Size<AvailableSpace>

The space available to size the grid tracks in each axis

§outer_node_size: Size<Option<f32>>

The container’s border-box size, if definite

§inner_min_size: Size<Option<f32>>

The container’s content-box min size, if definite

§inner_max_size: Size<Option<f32>>

The container’s content-box max size, if definite

§inner_node_size: Size<Option<f32>>

The container’s content-box size, if definite

Trait Implementations§

Source§

impl Clone for GridContainerConstants

Source§

fn clone(&self) -> GridContainerConstants

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GridContainerConstants

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.