Struct style::properties::generated::style_structs::Position

source ·
pub struct Position {
Show 39 fields pub top: T, pub right: T, pub bottom: T, pub left: T, pub z_index: T, pub flex_direction: T, pub flex_wrap: T, pub justify_content: T, pub align_content: T, pub align_items: T, pub justify_items: T, pub flex_grow: T, pub flex_shrink: T, pub align_self: T, pub justify_self: T, pub order: T, pub flex_basis: T, pub height: T, pub min_height: T, pub max_height: T, pub width: T, pub min_width: T, pub max_width: T, pub box_sizing: T, pub object_fit: T, pub object_position: T, pub grid_row_start: T, pub grid_row_end: T, pub grid_auto_rows: T, pub grid_template_rows: T, pub grid_column_start: T, pub grid_column_end: T, pub grid_auto_columns: T, pub grid_template_columns: T, pub grid_auto_flow: T, pub grid_template_areas: T, pub column_gap: T, pub row_gap: T, pub aspect_ratio: T,
}
Expand description

The Position style struct.

Fields§

§top: T

The top computed value.

§right: T

The right computed value.

§bottom: T

The bottom computed value.

§left: T

The left computed value.

§z_index: T

The z-index computed value.

§flex_direction: T

The flex-direction computed value.

§flex_wrap: T

The flex-wrap computed value.

§justify_content: T

The justify-content computed value.

§align_content: T

The align-content computed value.

§align_items: T

The align-items computed value.

§justify_items: T

The justify-items computed value.

§flex_grow: T

The flex-grow computed value.

§flex_shrink: T

The flex-shrink computed value.

§align_self: T

The align-self computed value.

§justify_self: T

The justify-self computed value.

§order: T

The order computed value.

§flex_basis: T

The flex-basis computed value.

§height: T

The height computed value.

§min_height: T

The min-height computed value.

§max_height: T

The max-height computed value.

§width: T

The width computed value.

§min_width: T

The min-width computed value.

§max_width: T

The max-width computed value.

§box_sizing: T

The box-sizing computed value.

§object_fit: T

The object-fit computed value.

§object_position: T

The object-position computed value.

§grid_row_start: T

The grid-row-start computed value.

§grid_row_end: T

The grid-row-end computed value.

§grid_auto_rows: T

The grid-auto-rows computed value.

§grid_template_rows: T

The grid-template-rows computed value.

§grid_column_start: T

The grid-column-start computed value.

§grid_column_end: T

The grid-column-end computed value.

§grid_auto_columns: T

The grid-auto-columns computed value.

§grid_template_columns: T

The grid-template-columns computed value.

§grid_auto_flow: T

The grid-auto-flow computed value.

§grid_template_areas: T

The grid-template-areas computed value.

§column_gap: T

The column-gap computed value.

§row_gap: T

The row-gap computed value.

§aspect_ratio: T

The aspect-ratio computed value.

Implementations§

source§

impl Position

source

pub fn set_top(&mut self, v: T)

Set top.

source

pub fn copy_top_from(&mut self, other: &Self)

Set top from other struct.

source

pub fn reset_top(&mut self, other: &Self)

Reset top from the initial struct.

source

pub fn clone_top(&self) -> T

Get the computed value for top.

source

pub fn set_right(&mut self, v: T)

Set right.

source

pub fn copy_right_from(&mut self, other: &Self)

Set right from other struct.

source

pub fn reset_right(&mut self, other: &Self)

Reset right from the initial struct.

source

pub fn clone_right(&self) -> T

Get the computed value for right.

source

pub fn set_bottom(&mut self, v: T)

Set bottom.

source

pub fn copy_bottom_from(&mut self, other: &Self)

Set bottom from other struct.

source

pub fn reset_bottom(&mut self, other: &Self)

Reset bottom from the initial struct.

source

pub fn clone_bottom(&self) -> T

Get the computed value for bottom.

source

pub fn set_left(&mut self, v: T)

Set left.

source

pub fn copy_left_from(&mut self, other: &Self)

Set left from other struct.

source

pub fn reset_left(&mut self, other: &Self)

Reset left from the initial struct.

source

pub fn clone_left(&self) -> T

Get the computed value for left.

source

pub fn set_z_index(&mut self, v: T)

Set z-index.

source

pub fn copy_z_index_from(&mut self, other: &Self)

Set z-index from other struct.

source

pub fn reset_z_index(&mut self, other: &Self)

Reset z-index from the initial struct.

source

pub fn clone_z_index(&self) -> T

Get the computed value for z-index.

source

pub fn set_flex_direction(&mut self, v: T)

Set flex-direction.

source

pub fn copy_flex_direction_from(&mut self, other: &Self)

Set flex-direction from other struct.

source

pub fn reset_flex_direction(&mut self, other: &Self)

Reset flex-direction from the initial struct.

source

pub fn clone_flex_direction(&self) -> T

Get the computed value for flex-direction.

source

pub fn set_flex_wrap(&mut self, v: T)

Set flex-wrap.

source

pub fn copy_flex_wrap_from(&mut self, other: &Self)

Set flex-wrap from other struct.

source

pub fn reset_flex_wrap(&mut self, other: &Self)

Reset flex-wrap from the initial struct.

source

pub fn clone_flex_wrap(&self) -> T

Get the computed value for flex-wrap.

source

pub fn set_justify_content(&mut self, v: T)

Set justify-content.

source

pub fn copy_justify_content_from(&mut self, other: &Self)

Set justify-content from other struct.

source

pub fn reset_justify_content(&mut self, other: &Self)

Reset justify-content from the initial struct.

source

pub fn clone_justify_content(&self) -> T

Get the computed value for justify-content.

source

pub fn set_align_content(&mut self, v: T)

Set align-content.

source

pub fn copy_align_content_from(&mut self, other: &Self)

Set align-content from other struct.

source

pub fn reset_align_content(&mut self, other: &Self)

Reset align-content from the initial struct.

source

pub fn clone_align_content(&self) -> T

Get the computed value for align-content.

source

pub fn set_align_items(&mut self, v: T)

Set align-items.

source

pub fn copy_align_items_from(&mut self, other: &Self)

Set align-items from other struct.

source

pub fn reset_align_items(&mut self, other: &Self)

Reset align-items from the initial struct.

source

pub fn clone_align_items(&self) -> T

Get the computed value for align-items.

source

pub fn set_justify_items(&mut self, v: T)

Set justify-items.

source

pub fn copy_justify_items_from(&mut self, other: &Self)

Set justify-items from other struct.

source

pub fn reset_justify_items(&mut self, other: &Self)

Reset justify-items from the initial struct.

source

pub fn clone_justify_items(&self) -> T

Get the computed value for justify-items.

source

pub fn set_flex_grow(&mut self, v: T)

Set flex-grow.

source

pub fn copy_flex_grow_from(&mut self, other: &Self)

Set flex-grow from other struct.

source

pub fn reset_flex_grow(&mut self, other: &Self)

Reset flex-grow from the initial struct.

source

pub fn clone_flex_grow(&self) -> T

Get the computed value for flex-grow.

source

pub fn set_flex_shrink(&mut self, v: T)

Set flex-shrink.

source

pub fn copy_flex_shrink_from(&mut self, other: &Self)

Set flex-shrink from other struct.

source

pub fn reset_flex_shrink(&mut self, other: &Self)

Reset flex-shrink from the initial struct.

source

pub fn clone_flex_shrink(&self) -> T

Get the computed value for flex-shrink.

source

pub fn set_align_self(&mut self, v: T)

Set align-self.

source

pub fn copy_align_self_from(&mut self, other: &Self)

Set align-self from other struct.

source

pub fn reset_align_self(&mut self, other: &Self)

Reset align-self from the initial struct.

source

pub fn clone_align_self(&self) -> T

Get the computed value for align-self.

source

pub fn set_justify_self(&mut self, v: T)

Set justify-self.

source

pub fn copy_justify_self_from(&mut self, other: &Self)

Set justify-self from other struct.

source

pub fn reset_justify_self(&mut self, other: &Self)

Reset justify-self from the initial struct.

source

pub fn clone_justify_self(&self) -> T

Get the computed value for justify-self.

source

pub fn set_order(&mut self, v: T)

Set order.

source

pub fn copy_order_from(&mut self, other: &Self)

Set order from other struct.

source

pub fn reset_order(&mut self, other: &Self)

Reset order from the initial struct.

source

pub fn clone_order(&self) -> T

Get the computed value for order.

source

pub fn set_flex_basis(&mut self, v: T)

Set flex-basis.

source

pub fn copy_flex_basis_from(&mut self, other: &Self)

Set flex-basis from other struct.

source

pub fn reset_flex_basis(&mut self, other: &Self)

Reset flex-basis from the initial struct.

source

pub fn clone_flex_basis(&self) -> T

Get the computed value for flex-basis.

source

pub fn set_height(&mut self, v: T)

Set height.

source

pub fn copy_height_from(&mut self, other: &Self)

Set height from other struct.

source

pub fn reset_height(&mut self, other: &Self)

Reset height from the initial struct.

source

pub fn clone_height(&self) -> T

Get the computed value for height.

source

pub fn set_min_height(&mut self, v: T)

Set min-height.

source

pub fn copy_min_height_from(&mut self, other: &Self)

Set min-height from other struct.

source

pub fn reset_min_height(&mut self, other: &Self)

Reset min-height from the initial struct.

source

pub fn clone_min_height(&self) -> T

Get the computed value for min-height.

source

pub fn set_max_height(&mut self, v: T)

Set max-height.

source

pub fn copy_max_height_from(&mut self, other: &Self)

Set max-height from other struct.

source

pub fn reset_max_height(&mut self, other: &Self)

Reset max-height from the initial struct.

source

pub fn clone_max_height(&self) -> T

Get the computed value for max-height.

source

pub fn set_width(&mut self, v: T)

Set width.

source

pub fn copy_width_from(&mut self, other: &Self)

Set width from other struct.

source

pub fn reset_width(&mut self, other: &Self)

Reset width from the initial struct.

source

pub fn clone_width(&self) -> T

Get the computed value for width.

source

pub fn set_min_width(&mut self, v: T)

Set min-width.

source

pub fn copy_min_width_from(&mut self, other: &Self)

Set min-width from other struct.

source

pub fn reset_min_width(&mut self, other: &Self)

Reset min-width from the initial struct.

source

pub fn clone_min_width(&self) -> T

Get the computed value for min-width.

source

pub fn set_max_width(&mut self, v: T)

Set max-width.

source

pub fn copy_max_width_from(&mut self, other: &Self)

Set max-width from other struct.

source

pub fn reset_max_width(&mut self, other: &Self)

Reset max-width from the initial struct.

source

pub fn clone_max_width(&self) -> T

Get the computed value for max-width.

source

pub fn set_box_sizing(&mut self, v: T)

Set box-sizing.

source

pub fn copy_box_sizing_from(&mut self, other: &Self)

Set box-sizing from other struct.

source

pub fn reset_box_sizing(&mut self, other: &Self)

Reset box-sizing from the initial struct.

source

pub fn clone_box_sizing(&self) -> T

Get the computed value for box-sizing.

source

pub fn set_object_fit(&mut self, v: T)

Set object-fit.

source

pub fn copy_object_fit_from(&mut self, other: &Self)

Set object-fit from other struct.

source

pub fn reset_object_fit(&mut self, other: &Self)

Reset object-fit from the initial struct.

source

pub fn clone_object_fit(&self) -> T

Get the computed value for object-fit.

source

pub fn set_object_position(&mut self, v: T)

Set object-position.

source

pub fn copy_object_position_from(&mut self, other: &Self)

Set object-position from other struct.

source

pub fn reset_object_position(&mut self, other: &Self)

Reset object-position from the initial struct.

source

pub fn clone_object_position(&self) -> T

Get the computed value for object-position.

source

pub fn set_grid_row_start(&mut self, v: T)

Set grid-row-start.

source

pub fn copy_grid_row_start_from(&mut self, other: &Self)

Set grid-row-start from other struct.

source

pub fn reset_grid_row_start(&mut self, other: &Self)

Reset grid-row-start from the initial struct.

source

pub fn clone_grid_row_start(&self) -> T

Get the computed value for grid-row-start.

source

pub fn set_grid_row_end(&mut self, v: T)

Set grid-row-end.

source

pub fn copy_grid_row_end_from(&mut self, other: &Self)

Set grid-row-end from other struct.

source

pub fn reset_grid_row_end(&mut self, other: &Self)

Reset grid-row-end from the initial struct.

source

pub fn clone_grid_row_end(&self) -> T

Get the computed value for grid-row-end.

source

pub fn set_grid_auto_rows(&mut self, v: T)

Set grid-auto-rows.

source

pub fn copy_grid_auto_rows_from(&mut self, other: &Self)

Set grid-auto-rows from other struct.

source

pub fn reset_grid_auto_rows(&mut self, other: &Self)

Reset grid-auto-rows from the initial struct.

source

pub fn clone_grid_auto_rows(&self) -> T

Get the computed value for grid-auto-rows.

source

pub fn set_grid_template_rows(&mut self, v: T)

Set grid-template-rows.

source

pub fn copy_grid_template_rows_from(&mut self, other: &Self)

Set grid-template-rows from other struct.

source

pub fn reset_grid_template_rows(&mut self, other: &Self)

Reset grid-template-rows from the initial struct.

source

pub fn clone_grid_template_rows(&self) -> T

Get the computed value for grid-template-rows.

source

pub fn set_grid_column_start(&mut self, v: T)

Set grid-column-start.

source

pub fn copy_grid_column_start_from(&mut self, other: &Self)

Set grid-column-start from other struct.

source

pub fn reset_grid_column_start(&mut self, other: &Self)

Reset grid-column-start from the initial struct.

source

pub fn clone_grid_column_start(&self) -> T

Get the computed value for grid-column-start.

source

pub fn set_grid_column_end(&mut self, v: T)

Set grid-column-end.

source

pub fn copy_grid_column_end_from(&mut self, other: &Self)

Set grid-column-end from other struct.

source

pub fn reset_grid_column_end(&mut self, other: &Self)

Reset grid-column-end from the initial struct.

source

pub fn clone_grid_column_end(&self) -> T

Get the computed value for grid-column-end.

source

pub fn set_grid_auto_columns(&mut self, v: T)

Set grid-auto-columns.

source

pub fn copy_grid_auto_columns_from(&mut self, other: &Self)

Set grid-auto-columns from other struct.

source

pub fn reset_grid_auto_columns(&mut self, other: &Self)

Reset grid-auto-columns from the initial struct.

source

pub fn clone_grid_auto_columns(&self) -> T

Get the computed value for grid-auto-columns.

source

pub fn set_grid_template_columns(&mut self, v: T)

Set grid-template-columns.

source

pub fn copy_grid_template_columns_from(&mut self, other: &Self)

Set grid-template-columns from other struct.

source

pub fn reset_grid_template_columns(&mut self, other: &Self)

Reset grid-template-columns from the initial struct.

source

pub fn clone_grid_template_columns(&self) -> T

Get the computed value for grid-template-columns.

source

pub fn set_grid_auto_flow(&mut self, v: T)

Set grid-auto-flow.

source

pub fn copy_grid_auto_flow_from(&mut self, other: &Self)

Set grid-auto-flow from other struct.

source

pub fn reset_grid_auto_flow(&mut self, other: &Self)

Reset grid-auto-flow from the initial struct.

source

pub fn clone_grid_auto_flow(&self) -> T

Get the computed value for grid-auto-flow.

source

pub fn set_grid_template_areas(&mut self, v: T)

Set grid-template-areas.

source

pub fn copy_grid_template_areas_from(&mut self, other: &Self)

Set grid-template-areas from other struct.

source

pub fn reset_grid_template_areas(&mut self, other: &Self)

Reset grid-template-areas from the initial struct.

source

pub fn clone_grid_template_areas(&self) -> T

Get the computed value for grid-template-areas.

source

pub fn set_column_gap(&mut self, v: T)

Set column-gap.

source

pub fn copy_column_gap_from(&mut self, other: &Self)

Set column-gap from other struct.

source

pub fn reset_column_gap(&mut self, other: &Self)

Reset column-gap from the initial struct.

source

pub fn clone_column_gap(&self) -> T

Get the computed value for column-gap.

source

pub fn set_row_gap(&mut self, v: T)

Set row-gap.

source

pub fn copy_row_gap_from(&mut self, other: &Self)

Set row-gap from other struct.

source

pub fn reset_row_gap(&mut self, other: &Self)

Reset row-gap from the initial struct.

source

pub fn clone_row_gap(&self) -> T

Get the computed value for row-gap.

source

pub fn set_aspect_ratio(&mut self, v: T)

Set aspect-ratio.

source

pub fn copy_aspect_ratio_from(&mut self, other: &Self)

Set aspect-ratio from other struct.

source

pub fn reset_aspect_ratio(&mut self, other: &Self)

Reset aspect-ratio from the initial struct.

source

pub fn clone_aspect_ratio(&self) -> T

Get the computed value for aspect-ratio.

Trait Implementations§

source§

impl Clone for Position

source§

fn clone(&self) -> Position

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Position

source§

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

Formats the value using the given formatter. Read more
source§

impl MallocSizeOf for Position

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl PartialEq for Position

source§

fn eq(&self, other: &Position) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Position

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> 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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> MaybeBoxed<Box<T>> for T

source§

fn maybe_boxed(self) -> Box<T>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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.
source§

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

source§

impl<T> MaybeSendSync for T