pub struct Position {
Show 24 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 flex_grow: T, pub flex_shrink: T, pub align_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 column_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.

§flex_grow: T

The flex-grow computed value.

§flex_shrink: T

The flex-shrink computed value.

§align_self: T

The align-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.

§column_gap: T

The column-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_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_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_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_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<Position> 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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, Global>> for T

source§

fn maybe_boxed(self) -> Box<T, Global>

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

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere 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 Twhere 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 Twhere 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> Erased for T

source§

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

source§

impl<T> MaybeSendSync for T