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
impl Position
sourcepub fn copy_top_from(&mut self, other: &Self)
pub fn copy_top_from(&mut self, other: &Self)
Set top from other struct.
sourcepub fn copy_right_from(&mut self, other: &Self)
pub fn copy_right_from(&mut self, other: &Self)
Set right from other struct.
sourcepub fn reset_right(&mut self, other: &Self)
pub fn reset_right(&mut self, other: &Self)
Reset right from the initial struct.
sourcepub fn clone_right(&self) -> T
pub fn clone_right(&self) -> T
Get the computed value for right.
sourcepub fn set_bottom(&mut self, v: T)
pub fn set_bottom(&mut self, v: T)
Set bottom.
sourcepub fn copy_bottom_from(&mut self, other: &Self)
pub fn copy_bottom_from(&mut self, other: &Self)
Set bottom from other struct.
sourcepub fn reset_bottom(&mut self, other: &Self)
pub fn reset_bottom(&mut self, other: &Self)
Reset bottom from the initial struct.
sourcepub fn clone_bottom(&self) -> T
pub fn clone_bottom(&self) -> T
Get the computed value for bottom.
sourcepub fn copy_left_from(&mut self, other: &Self)
pub fn copy_left_from(&mut self, other: &Self)
Set left from other struct.
sourcepub fn reset_left(&mut self, other: &Self)
pub fn reset_left(&mut self, other: &Self)
Reset left from the initial struct.
sourcepub fn clone_left(&self) -> T
pub fn clone_left(&self) -> T
Get the computed value for left.
sourcepub fn set_z_index(&mut self, v: T)
pub fn set_z_index(&mut self, v: T)
Set z-index.
sourcepub fn copy_z_index_from(&mut self, other: &Self)
pub fn copy_z_index_from(&mut self, other: &Self)
Set z-index from other struct.
sourcepub fn reset_z_index(&mut self, other: &Self)
pub fn reset_z_index(&mut self, other: &Self)
Reset z-index from the initial struct.
sourcepub fn clone_z_index(&self) -> T
pub fn clone_z_index(&self) -> T
Get the computed value for z-index.
sourcepub fn set_flex_direction(&mut self, v: T)
pub fn set_flex_direction(&mut self, v: T)
Set flex-direction.
sourcepub fn copy_flex_direction_from(&mut self, other: &Self)
pub fn copy_flex_direction_from(&mut self, other: &Self)
Set flex-direction from other struct.
sourcepub fn reset_flex_direction(&mut self, other: &Self)
pub fn reset_flex_direction(&mut self, other: &Self)
Reset flex-direction from the initial struct.
sourcepub fn clone_flex_direction(&self) -> T
pub fn clone_flex_direction(&self) -> T
Get the computed value for flex-direction.
sourcepub fn set_flex_wrap(&mut self, v: T)
pub fn set_flex_wrap(&mut self, v: T)
Set flex-wrap.
sourcepub fn copy_flex_wrap_from(&mut self, other: &Self)
pub fn copy_flex_wrap_from(&mut self, other: &Self)
Set flex-wrap from other struct.
sourcepub fn reset_flex_wrap(&mut self, other: &Self)
pub fn reset_flex_wrap(&mut self, other: &Self)
Reset flex-wrap from the initial struct.
sourcepub fn clone_flex_wrap(&self) -> T
pub fn clone_flex_wrap(&self) -> T
Get the computed value for flex-wrap.
sourcepub fn set_justify_content(&mut self, v: T)
pub fn set_justify_content(&mut self, v: T)
Set justify-content.
sourcepub fn copy_justify_content_from(&mut self, other: &Self)
pub fn copy_justify_content_from(&mut self, other: &Self)
Set justify-content from other struct.
sourcepub fn reset_justify_content(&mut self, other: &Self)
pub fn reset_justify_content(&mut self, other: &Self)
Reset justify-content from the initial struct.
sourcepub fn clone_justify_content(&self) -> T
pub fn clone_justify_content(&self) -> T
Get the computed value for justify-content.
sourcepub fn set_align_content(&mut self, v: T)
pub fn set_align_content(&mut self, v: T)
Set align-content.
sourcepub fn copy_align_content_from(&mut self, other: &Self)
pub fn copy_align_content_from(&mut self, other: &Self)
Set align-content from other struct.
sourcepub fn reset_align_content(&mut self, other: &Self)
pub fn reset_align_content(&mut self, other: &Self)
Reset align-content from the initial struct.
sourcepub fn clone_align_content(&self) -> T
pub fn clone_align_content(&self) -> T
Get the computed value for align-content.
sourcepub fn set_align_items(&mut self, v: T)
pub fn set_align_items(&mut self, v: T)
Set align-items.
sourcepub fn copy_align_items_from(&mut self, other: &Self)
pub fn copy_align_items_from(&mut self, other: &Self)
Set align-items from other struct.
sourcepub fn reset_align_items(&mut self, other: &Self)
pub fn reset_align_items(&mut self, other: &Self)
Reset align-items from the initial struct.
sourcepub fn clone_align_items(&self) -> T
pub fn clone_align_items(&self) -> T
Get the computed value for align-items.
sourcepub fn set_justify_items(&mut self, v: T)
pub fn set_justify_items(&mut self, v: T)
Set justify-items.
sourcepub fn copy_justify_items_from(&mut self, other: &Self)
pub fn copy_justify_items_from(&mut self, other: &Self)
Set justify-items from other struct.
sourcepub fn reset_justify_items(&mut self, other: &Self)
pub fn reset_justify_items(&mut self, other: &Self)
Reset justify-items from the initial struct.
sourcepub fn clone_justify_items(&self) -> T
pub fn clone_justify_items(&self) -> T
Get the computed value for justify-items.
sourcepub fn set_flex_grow(&mut self, v: T)
pub fn set_flex_grow(&mut self, v: T)
Set flex-grow.
sourcepub fn copy_flex_grow_from(&mut self, other: &Self)
pub fn copy_flex_grow_from(&mut self, other: &Self)
Set flex-grow from other struct.
sourcepub fn reset_flex_grow(&mut self, other: &Self)
pub fn reset_flex_grow(&mut self, other: &Self)
Reset flex-grow from the initial struct.
sourcepub fn clone_flex_grow(&self) -> T
pub fn clone_flex_grow(&self) -> T
Get the computed value for flex-grow.
sourcepub fn set_flex_shrink(&mut self, v: T)
pub fn set_flex_shrink(&mut self, v: T)
Set flex-shrink.
sourcepub fn copy_flex_shrink_from(&mut self, other: &Self)
pub fn copy_flex_shrink_from(&mut self, other: &Self)
Set flex-shrink from other struct.
sourcepub fn reset_flex_shrink(&mut self, other: &Self)
pub fn reset_flex_shrink(&mut self, other: &Self)
Reset flex-shrink from the initial struct.
sourcepub fn clone_flex_shrink(&self) -> T
pub fn clone_flex_shrink(&self) -> T
Get the computed value for flex-shrink.
sourcepub fn set_align_self(&mut self, v: T)
pub fn set_align_self(&mut self, v: T)
Set align-self.
sourcepub fn copy_align_self_from(&mut self, other: &Self)
pub fn copy_align_self_from(&mut self, other: &Self)
Set align-self from other struct.
sourcepub fn reset_align_self(&mut self, other: &Self)
pub fn reset_align_self(&mut self, other: &Self)
Reset align-self from the initial struct.
sourcepub fn clone_align_self(&self) -> T
pub fn clone_align_self(&self) -> T
Get the computed value for align-self.
sourcepub fn set_justify_self(&mut self, v: T)
pub fn set_justify_self(&mut self, v: T)
Set justify-self.
sourcepub fn copy_justify_self_from(&mut self, other: &Self)
pub fn copy_justify_self_from(&mut self, other: &Self)
Set justify-self from other struct.
sourcepub fn reset_justify_self(&mut self, other: &Self)
pub fn reset_justify_self(&mut self, other: &Self)
Reset justify-self from the initial struct.
sourcepub fn clone_justify_self(&self) -> T
pub fn clone_justify_self(&self) -> T
Get the computed value for justify-self.
sourcepub fn copy_order_from(&mut self, other: &Self)
pub fn copy_order_from(&mut self, other: &Self)
Set order from other struct.
sourcepub fn reset_order(&mut self, other: &Self)
pub fn reset_order(&mut self, other: &Self)
Reset order from the initial struct.
sourcepub fn clone_order(&self) -> T
pub fn clone_order(&self) -> T
Get the computed value for order.
sourcepub fn set_flex_basis(&mut self, v: T)
pub fn set_flex_basis(&mut self, v: T)
Set flex-basis.
sourcepub fn copy_flex_basis_from(&mut self, other: &Self)
pub fn copy_flex_basis_from(&mut self, other: &Self)
Set flex-basis from other struct.
sourcepub fn reset_flex_basis(&mut self, other: &Self)
pub fn reset_flex_basis(&mut self, other: &Self)
Reset flex-basis from the initial struct.
sourcepub fn clone_flex_basis(&self) -> T
pub fn clone_flex_basis(&self) -> T
Get the computed value for flex-basis.
sourcepub fn set_height(&mut self, v: T)
pub fn set_height(&mut self, v: T)
Set height.
sourcepub fn copy_height_from(&mut self, other: &Self)
pub fn copy_height_from(&mut self, other: &Self)
Set height from other struct.
sourcepub fn reset_height(&mut self, other: &Self)
pub fn reset_height(&mut self, other: &Self)
Reset height from the initial struct.
sourcepub fn clone_height(&self) -> T
pub fn clone_height(&self) -> T
Get the computed value for height.
sourcepub fn set_min_height(&mut self, v: T)
pub fn set_min_height(&mut self, v: T)
Set min-height.
sourcepub fn copy_min_height_from(&mut self, other: &Self)
pub fn copy_min_height_from(&mut self, other: &Self)
Set min-height from other struct.
sourcepub fn reset_min_height(&mut self, other: &Self)
pub fn reset_min_height(&mut self, other: &Self)
Reset min-height from the initial struct.
sourcepub fn clone_min_height(&self) -> T
pub fn clone_min_height(&self) -> T
Get the computed value for min-height.
sourcepub fn set_max_height(&mut self, v: T)
pub fn set_max_height(&mut self, v: T)
Set max-height.
sourcepub fn copy_max_height_from(&mut self, other: &Self)
pub fn copy_max_height_from(&mut self, other: &Self)
Set max-height from other struct.
sourcepub fn reset_max_height(&mut self, other: &Self)
pub fn reset_max_height(&mut self, other: &Self)
Reset max-height from the initial struct.
sourcepub fn clone_max_height(&self) -> T
pub fn clone_max_height(&self) -> T
Get the computed value for max-height.
sourcepub fn copy_width_from(&mut self, other: &Self)
pub fn copy_width_from(&mut self, other: &Self)
Set width from other struct.
sourcepub fn reset_width(&mut self, other: &Self)
pub fn reset_width(&mut self, other: &Self)
Reset width from the initial struct.
sourcepub fn clone_width(&self) -> T
pub fn clone_width(&self) -> T
Get the computed value for width.
sourcepub fn set_min_width(&mut self, v: T)
pub fn set_min_width(&mut self, v: T)
Set min-width.
sourcepub fn copy_min_width_from(&mut self, other: &Self)
pub fn copy_min_width_from(&mut self, other: &Self)
Set min-width from other struct.
sourcepub fn reset_min_width(&mut self, other: &Self)
pub fn reset_min_width(&mut self, other: &Self)
Reset min-width from the initial struct.
sourcepub fn clone_min_width(&self) -> T
pub fn clone_min_width(&self) -> T
Get the computed value for min-width.
sourcepub fn set_max_width(&mut self, v: T)
pub fn set_max_width(&mut self, v: T)
Set max-width.
sourcepub fn copy_max_width_from(&mut self, other: &Self)
pub fn copy_max_width_from(&mut self, other: &Self)
Set max-width from other struct.
sourcepub fn reset_max_width(&mut self, other: &Self)
pub fn reset_max_width(&mut self, other: &Self)
Reset max-width from the initial struct.
sourcepub fn clone_max_width(&self) -> T
pub fn clone_max_width(&self) -> T
Get the computed value for max-width.
sourcepub fn set_box_sizing(&mut self, v: T)
pub fn set_box_sizing(&mut self, v: T)
Set box-sizing.
sourcepub fn copy_box_sizing_from(&mut self, other: &Self)
pub fn copy_box_sizing_from(&mut self, other: &Self)
Set box-sizing from other struct.
sourcepub fn reset_box_sizing(&mut self, other: &Self)
pub fn reset_box_sizing(&mut self, other: &Self)
Reset box-sizing from the initial struct.
sourcepub fn clone_box_sizing(&self) -> T
pub fn clone_box_sizing(&self) -> T
Get the computed value for box-sizing.
sourcepub fn set_object_fit(&mut self, v: T)
pub fn set_object_fit(&mut self, v: T)
Set object-fit.
sourcepub fn copy_object_fit_from(&mut self, other: &Self)
pub fn copy_object_fit_from(&mut self, other: &Self)
Set object-fit from other struct.
sourcepub fn reset_object_fit(&mut self, other: &Self)
pub fn reset_object_fit(&mut self, other: &Self)
Reset object-fit from the initial struct.
sourcepub fn clone_object_fit(&self) -> T
pub fn clone_object_fit(&self) -> T
Get the computed value for object-fit.
sourcepub fn set_object_position(&mut self, v: T)
pub fn set_object_position(&mut self, v: T)
Set object-position.
sourcepub fn copy_object_position_from(&mut self, other: &Self)
pub fn copy_object_position_from(&mut self, other: &Self)
Set object-position from other struct.
sourcepub fn reset_object_position(&mut self, other: &Self)
pub fn reset_object_position(&mut self, other: &Self)
Reset object-position from the initial struct.
sourcepub fn clone_object_position(&self) -> T
pub fn clone_object_position(&self) -> T
Get the computed value for object-position.
sourcepub fn set_grid_row_start(&mut self, v: T)
pub fn set_grid_row_start(&mut self, v: T)
Set grid-row-start.
sourcepub fn copy_grid_row_start_from(&mut self, other: &Self)
pub fn copy_grid_row_start_from(&mut self, other: &Self)
Set grid-row-start from other struct.
sourcepub fn reset_grid_row_start(&mut self, other: &Self)
pub fn reset_grid_row_start(&mut self, other: &Self)
Reset grid-row-start from the initial struct.
sourcepub fn clone_grid_row_start(&self) -> T
pub fn clone_grid_row_start(&self) -> T
Get the computed value for grid-row-start.
sourcepub fn set_grid_row_end(&mut self, v: T)
pub fn set_grid_row_end(&mut self, v: T)
Set grid-row-end.
sourcepub fn copy_grid_row_end_from(&mut self, other: &Self)
pub fn copy_grid_row_end_from(&mut self, other: &Self)
Set grid-row-end from other struct.
sourcepub fn reset_grid_row_end(&mut self, other: &Self)
pub fn reset_grid_row_end(&mut self, other: &Self)
Reset grid-row-end from the initial struct.
sourcepub fn clone_grid_row_end(&self) -> T
pub fn clone_grid_row_end(&self) -> T
Get the computed value for grid-row-end.
sourcepub fn set_grid_auto_rows(&mut self, v: T)
pub fn set_grid_auto_rows(&mut self, v: T)
Set grid-auto-rows.
sourcepub fn copy_grid_auto_rows_from(&mut self, other: &Self)
pub fn copy_grid_auto_rows_from(&mut self, other: &Self)
Set grid-auto-rows from other struct.
sourcepub fn reset_grid_auto_rows(&mut self, other: &Self)
pub fn reset_grid_auto_rows(&mut self, other: &Self)
Reset grid-auto-rows from the initial struct.
sourcepub fn clone_grid_auto_rows(&self) -> T
pub fn clone_grid_auto_rows(&self) -> T
Get the computed value for grid-auto-rows.
sourcepub fn set_grid_template_rows(&mut self, v: T)
pub fn set_grid_template_rows(&mut self, v: T)
Set grid-template-rows.
sourcepub fn copy_grid_template_rows_from(&mut self, other: &Self)
pub fn copy_grid_template_rows_from(&mut self, other: &Self)
Set grid-template-rows from other struct.
sourcepub fn reset_grid_template_rows(&mut self, other: &Self)
pub fn reset_grid_template_rows(&mut self, other: &Self)
Reset grid-template-rows from the initial struct.
sourcepub fn clone_grid_template_rows(&self) -> T
pub fn clone_grid_template_rows(&self) -> T
Get the computed value for grid-template-rows.
sourcepub fn set_grid_column_start(&mut self, v: T)
pub fn set_grid_column_start(&mut self, v: T)
Set grid-column-start.
sourcepub fn copy_grid_column_start_from(&mut self, other: &Self)
pub fn copy_grid_column_start_from(&mut self, other: &Self)
Set grid-column-start from other struct.
sourcepub fn reset_grid_column_start(&mut self, other: &Self)
pub fn reset_grid_column_start(&mut self, other: &Self)
Reset grid-column-start from the initial struct.
sourcepub fn clone_grid_column_start(&self) -> T
pub fn clone_grid_column_start(&self) -> T
Get the computed value for grid-column-start.
sourcepub fn set_grid_column_end(&mut self, v: T)
pub fn set_grid_column_end(&mut self, v: T)
Set grid-column-end.
sourcepub fn copy_grid_column_end_from(&mut self, other: &Self)
pub fn copy_grid_column_end_from(&mut self, other: &Self)
Set grid-column-end from other struct.
sourcepub fn reset_grid_column_end(&mut self, other: &Self)
pub fn reset_grid_column_end(&mut self, other: &Self)
Reset grid-column-end from the initial struct.
sourcepub fn clone_grid_column_end(&self) -> T
pub fn clone_grid_column_end(&self) -> T
Get the computed value for grid-column-end.
sourcepub fn set_grid_auto_columns(&mut self, v: T)
pub fn set_grid_auto_columns(&mut self, v: T)
Set grid-auto-columns.
sourcepub fn copy_grid_auto_columns_from(&mut self, other: &Self)
pub fn copy_grid_auto_columns_from(&mut self, other: &Self)
Set grid-auto-columns from other struct.
sourcepub fn reset_grid_auto_columns(&mut self, other: &Self)
pub fn reset_grid_auto_columns(&mut self, other: &Self)
Reset grid-auto-columns from the initial struct.
sourcepub fn clone_grid_auto_columns(&self) -> T
pub fn clone_grid_auto_columns(&self) -> T
Get the computed value for grid-auto-columns.
sourcepub fn set_grid_template_columns(&mut self, v: T)
pub fn set_grid_template_columns(&mut self, v: T)
Set grid-template-columns.
sourcepub fn copy_grid_template_columns_from(&mut self, other: &Self)
pub fn copy_grid_template_columns_from(&mut self, other: &Self)
Set grid-template-columns from other struct.
sourcepub fn reset_grid_template_columns(&mut self, other: &Self)
pub fn reset_grid_template_columns(&mut self, other: &Self)
Reset grid-template-columns from the initial struct.
sourcepub fn clone_grid_template_columns(&self) -> T
pub fn clone_grid_template_columns(&self) -> T
Get the computed value for grid-template-columns.
sourcepub fn set_grid_auto_flow(&mut self, v: T)
pub fn set_grid_auto_flow(&mut self, v: T)
Set grid-auto-flow.
sourcepub fn copy_grid_auto_flow_from(&mut self, other: &Self)
pub fn copy_grid_auto_flow_from(&mut self, other: &Self)
Set grid-auto-flow from other struct.
sourcepub fn reset_grid_auto_flow(&mut self, other: &Self)
pub fn reset_grid_auto_flow(&mut self, other: &Self)
Reset grid-auto-flow from the initial struct.
sourcepub fn clone_grid_auto_flow(&self) -> T
pub fn clone_grid_auto_flow(&self) -> T
Get the computed value for grid-auto-flow.
sourcepub fn set_grid_template_areas(&mut self, v: T)
pub fn set_grid_template_areas(&mut self, v: T)
Set grid-template-areas.
sourcepub fn copy_grid_template_areas_from(&mut self, other: &Self)
pub fn copy_grid_template_areas_from(&mut self, other: &Self)
Set grid-template-areas from other struct.
sourcepub fn reset_grid_template_areas(&mut self, other: &Self)
pub fn reset_grid_template_areas(&mut self, other: &Self)
Reset grid-template-areas from the initial struct.
sourcepub fn clone_grid_template_areas(&self) -> T
pub fn clone_grid_template_areas(&self) -> T
Get the computed value for grid-template-areas.
sourcepub fn set_column_gap(&mut self, v: T)
pub fn set_column_gap(&mut self, v: T)
Set column-gap.
sourcepub fn copy_column_gap_from(&mut self, other: &Self)
pub fn copy_column_gap_from(&mut self, other: &Self)
Set column-gap from other struct.
sourcepub fn reset_column_gap(&mut self, other: &Self)
pub fn reset_column_gap(&mut self, other: &Self)
Reset column-gap from the initial struct.
sourcepub fn clone_column_gap(&self) -> T
pub fn clone_column_gap(&self) -> T
Get the computed value for column-gap.
sourcepub fn set_row_gap(&mut self, v: T)
pub fn set_row_gap(&mut self, v: T)
Set row-gap.
sourcepub fn copy_row_gap_from(&mut self, other: &Self)
pub fn copy_row_gap_from(&mut self, other: &Self)
Set row-gap from other struct.
sourcepub fn reset_row_gap(&mut self, other: &Self)
pub fn reset_row_gap(&mut self, other: &Self)
Reset row-gap from the initial struct.
sourcepub fn clone_row_gap(&self) -> T
pub fn clone_row_gap(&self) -> T
Get the computed value for row-gap.
sourcepub fn set_aspect_ratio(&mut self, v: T)
pub fn set_aspect_ratio(&mut self, v: T)
Set aspect-ratio.
sourcepub fn copy_aspect_ratio_from(&mut self, other: &Self)
pub fn copy_aspect_ratio_from(&mut self, other: &Self)
Set aspect-ratio from other struct.
sourcepub fn reset_aspect_ratio(&mut self, other: &Self)
pub fn reset_aspect_ratio(&mut self, other: &Self)
Reset aspect-ratio from the initial struct.
sourcepub fn clone_aspect_ratio(&self) -> T
pub fn clone_aspect_ratio(&self) -> T
Get the computed value for aspect-ratio.
Trait Implementations§
source§impl MallocSizeOf for Position
impl MallocSizeOf for Position
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq for Position
impl PartialEq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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