pub struct Position {Show 42 fields
pub align_content: T,
pub align_items: T,
pub align_self: T,
pub aspect_ratio: T,
pub bottom: T,
pub column_gap: T,
pub flex_basis: T,
pub flex_line_count: T,
pub flex_grow: T,
pub flex_shrink: T,
pub grid_auto_columns: T,
pub grid_auto_flow: T,
pub grid_auto_rows: T,
pub grid_column_end: T,
pub grid_column_start: T,
pub grid_row_end: T,
pub grid_row_start: T,
pub grid_template_areas: T,
pub grid_template_columns: T,
pub grid_template_rows: T,
pub height: T,
pub justify_content: T,
pub justify_items: T,
pub justify_self: T,
pub left: T,
pub max_height: T,
pub max_width: T,
pub min_height: T,
pub min_width: T,
pub object_position: T,
pub order: T,
pub position_area: T,
pub position_try_fallbacks: T,
pub right: T,
pub row_gap: T,
pub top: T,
pub width: T,
pub z_index: T,
pub flex_direction: T,
pub flex_wrap: T,
pub box_sizing: T,
pub object_fit: T,
}Expand description
The Position style struct.
Fields§
§align_content: TThe align-content computed value.
align_items: TThe align-items computed value.
align_self: TThe align-self computed value.
aspect_ratio: TThe aspect-ratio computed value.
bottom: TThe bottom computed value.
column_gap: TThe column-gap computed value.
flex_basis: TThe flex-basis computed value.
flex_line_count: TThe flex-line-count computed value.
flex_grow: TThe flex-grow computed value.
flex_shrink: TThe flex-shrink computed value.
grid_auto_columns: TThe grid-auto-columns computed value.
grid_auto_flow: TThe grid-auto-flow computed value.
grid_auto_rows: TThe grid-auto-rows computed value.
grid_column_end: TThe grid-column-end computed value.
grid_column_start: TThe grid-column-start computed value.
grid_row_end: TThe grid-row-end computed value.
grid_row_start: TThe grid-row-start computed value.
grid_template_areas: TThe grid-template-areas computed value.
grid_template_columns: TThe grid-template-columns computed value.
grid_template_rows: TThe grid-template-rows computed value.
height: TThe height computed value.
justify_content: TThe justify-content computed value.
justify_items: TThe justify-items computed value.
justify_self: TThe justify-self computed value.
left: TThe left computed value.
max_height: TThe max-height computed value.
max_width: TThe max-width computed value.
min_height: TThe min-height computed value.
min_width: TThe min-width computed value.
object_position: TThe object-position computed value.
order: TThe order computed value.
position_area: TThe position-area computed value.
position_try_fallbacks: TThe position-try-fallbacks computed value.
right: TThe right computed value.
row_gap: TThe row-gap computed value.
top: TThe top computed value.
width: TThe width computed value.
z_index: TThe z-index computed value.
flex_direction: TThe flex-direction computed value.
flex_wrap: TThe flex-wrap computed value.
box_sizing: TThe box-sizing computed value.
object_fit: TThe object-fit computed value.
Implementations§
Source§impl Position
impl Position
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 get_align_content(&self) -> &T
pub fn get_align_content(&self) -> &T
Get a reference to the computed value for align-content.
Sourcepub fn slow_clone_align_content(&self) -> T
pub fn slow_clone_align_content(&self) -> T
Clone the computed value for align-content. Prefer
get_align_content where a reference is enough.
Sourcepub fn align_content_equals(&self, other: &Self) -> bool
pub fn align_content_equals(&self, other: &Self) -> bool
Whether self and other have the same 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 get_align_items(&self) -> &T
pub fn get_align_items(&self) -> &T
Get a reference to the computed value for align-items.
Sourcepub fn slow_clone_align_items(&self) -> T
pub fn slow_clone_align_items(&self) -> T
Clone the computed value for align-items. Prefer
get_align_items where a reference is enough.
Sourcepub fn align_items_equals(&self, other: &Self) -> bool
pub fn align_items_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for align-items.
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 get_align_self(&self) -> &T
pub fn get_align_self(&self) -> &T
Get a reference to the computed value for align-self.
Sourcepub fn slow_clone_align_self(&self) -> T
pub fn slow_clone_align_self(&self) -> T
Clone the computed value for align-self. Prefer
get_align_self where a reference is enough.
Sourcepub fn align_self_equals(&self, other: &Self) -> bool
pub fn align_self_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for align-self.
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 get_aspect_ratio(&self) -> &T
pub fn get_aspect_ratio(&self) -> &T
Get a reference to the computed value for aspect-ratio.
Sourcepub fn slow_clone_aspect_ratio(&self) -> T
pub fn slow_clone_aspect_ratio(&self) -> T
Clone the computed value for aspect-ratio. Prefer
get_aspect_ratio where a reference is enough.
Sourcepub fn aspect_ratio_equals(&self, other: &Self) -> bool
pub fn aspect_ratio_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for aspect-ratio.
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 get_bottom(&self) -> &T
pub fn get_bottom(&self) -> &T
Get a reference to the computed value for bottom.
Sourcepub fn slow_clone_bottom(&self) -> T
pub fn slow_clone_bottom(&self) -> T
Clone the computed value for bottom. Prefer
get_bottom where a reference is enough.
Sourcepub fn bottom_equals(&self, other: &Self) -> bool
pub fn bottom_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for bottom.
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 get_column_gap(&self) -> &T
pub fn get_column_gap(&self) -> &T
Get a reference to the computed value for column-gap.
Sourcepub fn slow_clone_column_gap(&self) -> T
pub fn slow_clone_column_gap(&self) -> T
Clone the computed value for column-gap. Prefer
get_column_gap where a reference is enough.
Sourcepub fn column_gap_equals(&self, other: &Self) -> bool
pub fn column_gap_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for column-gap.
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 get_flex_basis(&self) -> &T
pub fn get_flex_basis(&self) -> &T
Get a reference to the computed value for flex-basis.
Sourcepub fn slow_clone_flex_basis(&self) -> T
pub fn slow_clone_flex_basis(&self) -> T
Clone the computed value for flex-basis. Prefer
get_flex_basis where a reference is enough.
Sourcepub fn flex_basis_equals(&self, other: &Self) -> bool
pub fn flex_basis_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for flex-basis.
Sourcepub fn set_flex_line_count(&mut self, v: T)
pub fn set_flex_line_count(&mut self, v: T)
Set flex-line-count.
Sourcepub fn copy_flex_line_count_from(&mut self, other: &Self)
pub fn copy_flex_line_count_from(&mut self, other: &Self)
Set flex-line-count from other struct.
Sourcepub fn reset_flex_line_count(&mut self, other: &Self)
pub fn reset_flex_line_count(&mut self, other: &Self)
Reset flex-line-count from the initial struct.
Sourcepub fn get_flex_line_count(&self) -> &T
pub fn get_flex_line_count(&self) -> &T
Get a reference to the computed value for flex-line-count.
Sourcepub fn slow_clone_flex_line_count(&self) -> T
pub fn slow_clone_flex_line_count(&self) -> T
Clone the computed value for flex-line-count. Prefer
get_flex_line_count where a reference is enough.
Sourcepub fn flex_line_count_equals(&self, other: &Self) -> bool
pub fn flex_line_count_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for flex-line-count.
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 get_flex_grow(&self) -> &T
pub fn get_flex_grow(&self) -> &T
Get a reference to the computed value for flex-grow.
Sourcepub fn slow_clone_flex_grow(&self) -> T
pub fn slow_clone_flex_grow(&self) -> T
Clone the computed value for flex-grow. Prefer
get_flex_grow where a reference is enough.
Sourcepub fn flex_grow_equals(&self, other: &Self) -> bool
pub fn flex_grow_equals(&self, other: &Self) -> bool
Whether self and other have the same 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 get_flex_shrink(&self) -> &T
pub fn get_flex_shrink(&self) -> &T
Get a reference to the computed value for flex-shrink.
Sourcepub fn slow_clone_flex_shrink(&self) -> T
pub fn slow_clone_flex_shrink(&self) -> T
Clone the computed value for flex-shrink. Prefer
get_flex_shrink where a reference is enough.
Sourcepub fn flex_shrink_equals(&self, other: &Self) -> bool
pub fn flex_shrink_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for flex-shrink.
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 get_grid_auto_columns(&self) -> &T
pub fn get_grid_auto_columns(&self) -> &T
Get a reference to the computed value for grid-auto-columns.
Sourcepub fn slow_clone_grid_auto_columns(&self) -> T
pub fn slow_clone_grid_auto_columns(&self) -> T
Clone the computed value for grid-auto-columns. Prefer
get_grid_auto_columns where a reference is enough.
Sourcepub fn grid_auto_columns_equals(&self, other: &Self) -> bool
pub fn grid_auto_columns_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-auto-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 get_grid_auto_flow(&self) -> &T
pub fn get_grid_auto_flow(&self) -> &T
Get a reference to the computed value for grid-auto-flow.
Sourcepub fn slow_clone_grid_auto_flow(&self) -> T
pub fn slow_clone_grid_auto_flow(&self) -> T
Clone the computed value for grid-auto-flow. Prefer
get_grid_auto_flow where a reference is enough.
Sourcepub fn grid_auto_flow_equals(&self, other: &Self) -> bool
pub fn grid_auto_flow_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-auto-flow.
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 get_grid_auto_rows(&self) -> &T
pub fn get_grid_auto_rows(&self) -> &T
Get a reference to the computed value for grid-auto-rows.
Sourcepub fn slow_clone_grid_auto_rows(&self) -> T
pub fn slow_clone_grid_auto_rows(&self) -> T
Clone the computed value for grid-auto-rows. Prefer
get_grid_auto_rows where a reference is enough.
Sourcepub fn grid_auto_rows_equals(&self, other: &Self) -> bool
pub fn grid_auto_rows_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-auto-rows.
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 get_grid_column_end(&self) -> &T
pub fn get_grid_column_end(&self) -> &T
Get a reference to the computed value for grid-column-end.
Sourcepub fn slow_clone_grid_column_end(&self) -> T
pub fn slow_clone_grid_column_end(&self) -> T
Clone the computed value for grid-column-end. Prefer
get_grid_column_end where a reference is enough.
Sourcepub fn grid_column_end_equals(&self, other: &Self) -> bool
pub fn grid_column_end_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-column-end.
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 get_grid_column_start(&self) -> &T
pub fn get_grid_column_start(&self) -> &T
Get a reference to the computed value for grid-column-start.
Sourcepub fn slow_clone_grid_column_start(&self) -> T
pub fn slow_clone_grid_column_start(&self) -> T
Clone the computed value for grid-column-start. Prefer
get_grid_column_start where a reference is enough.
Sourcepub fn grid_column_start_equals(&self, other: &Self) -> bool
pub fn grid_column_start_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-column-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 get_grid_row_end(&self) -> &T
pub fn get_grid_row_end(&self) -> &T
Get a reference to the computed value for grid-row-end.
Sourcepub fn slow_clone_grid_row_end(&self) -> T
pub fn slow_clone_grid_row_end(&self) -> T
Clone the computed value for grid-row-end. Prefer
get_grid_row_end where a reference is enough.
Sourcepub fn grid_row_end_equals(&self, other: &Self) -> bool
pub fn grid_row_end_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-row-end.
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 get_grid_row_start(&self) -> &T
pub fn get_grid_row_start(&self) -> &T
Get a reference to the computed value for grid-row-start.
Sourcepub fn slow_clone_grid_row_start(&self) -> T
pub fn slow_clone_grid_row_start(&self) -> T
Clone the computed value for grid-row-start. Prefer
get_grid_row_start where a reference is enough.
Sourcepub fn grid_row_start_equals(&self, other: &Self) -> bool
pub fn grid_row_start_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-row-start.
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 get_grid_template_areas(&self) -> &T
pub fn get_grid_template_areas(&self) -> &T
Get a reference to the computed value for grid-template-areas.
Sourcepub fn slow_clone_grid_template_areas(&self) -> T
pub fn slow_clone_grid_template_areas(&self) -> T
Clone the computed value for grid-template-areas. Prefer
get_grid_template_areas where a reference is enough.
Sourcepub fn grid_template_areas_equals(&self, other: &Self) -> bool
pub fn grid_template_areas_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-template-areas.
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 get_grid_template_columns(&self) -> &T
pub fn get_grid_template_columns(&self) -> &T
Get a reference to the computed value for grid-template-columns.
Sourcepub fn slow_clone_grid_template_columns(&self) -> T
pub fn slow_clone_grid_template_columns(&self) -> T
Clone the computed value for grid-template-columns. Prefer
get_grid_template_columns where a reference is enough.
Sourcepub fn grid_template_columns_equals(&self, other: &Self) -> bool
pub fn grid_template_columns_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-template-columns.
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 get_grid_template_rows(&self) -> &T
pub fn get_grid_template_rows(&self) -> &T
Get a reference to the computed value for grid-template-rows.
Sourcepub fn slow_clone_grid_template_rows(&self) -> T
pub fn slow_clone_grid_template_rows(&self) -> T
Clone the computed value for grid-template-rows. Prefer
get_grid_template_rows where a reference is enough.
Sourcepub fn grid_template_rows_equals(&self, other: &Self) -> bool
pub fn grid_template_rows_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for grid-template-rows.
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 get_height(&self) -> &T
pub fn get_height(&self) -> &T
Get a reference to the computed value for height.
Sourcepub fn slow_clone_height(&self) -> T
pub fn slow_clone_height(&self) -> T
Clone the computed value for height. Prefer
get_height where a reference is enough.
Sourcepub fn height_equals(&self, other: &Self) -> bool
pub fn height_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for height.
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 get_justify_content(&self) -> &T
pub fn get_justify_content(&self) -> &T
Get a reference to the computed value for justify-content.
Sourcepub fn slow_clone_justify_content(&self) -> T
pub fn slow_clone_justify_content(&self) -> T
Clone the computed value for justify-content. Prefer
get_justify_content where a reference is enough.
Sourcepub fn justify_content_equals(&self, other: &Self) -> bool
pub fn justify_content_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for justify-content.
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 get_justify_items(&self) -> &T
pub fn get_justify_items(&self) -> &T
Get a reference to the computed value for justify-items.
Sourcepub fn slow_clone_justify_items(&self) -> T
pub fn slow_clone_justify_items(&self) -> T
Clone the computed value for justify-items. Prefer
get_justify_items where a reference is enough.
Sourcepub fn justify_items_equals(&self, other: &Self) -> bool
pub fn justify_items_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for justify-items.
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 get_justify_self(&self) -> &T
pub fn get_justify_self(&self) -> &T
Get a reference to the computed value for justify-self.
Sourcepub fn slow_clone_justify_self(&self) -> T
pub fn slow_clone_justify_self(&self) -> T
Clone the computed value for justify-self. Prefer
get_justify_self where a reference is enough.
Sourcepub fn justify_self_equals(&self, other: &Self) -> bool
pub fn justify_self_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for justify-self.
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 slow_clone_left(&self) -> T
pub fn slow_clone_left(&self) -> T
Clone the computed value for left. Prefer
get_left where a reference is enough.
Sourcepub fn left_equals(&self, other: &Self) -> bool
pub fn left_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for left.
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 get_max_height(&self) -> &T
pub fn get_max_height(&self) -> &T
Get a reference to the computed value for max-height.
Sourcepub fn slow_clone_max_height(&self) -> T
pub fn slow_clone_max_height(&self) -> T
Clone the computed value for max-height. Prefer
get_max_height where a reference is enough.
Sourcepub fn max_height_equals(&self, other: &Self) -> bool
pub fn max_height_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for max-height.
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 get_max_width(&self) -> &T
pub fn get_max_width(&self) -> &T
Get a reference to the computed value for max-width.
Sourcepub fn slow_clone_max_width(&self) -> T
pub fn slow_clone_max_width(&self) -> T
Clone the computed value for max-width. Prefer
get_max_width where a reference is enough.
Sourcepub fn max_width_equals(&self, other: &Self) -> bool
pub fn max_width_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for max-width.
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 get_min_height(&self) -> &T
pub fn get_min_height(&self) -> &T
Get a reference to the computed value for min-height.
Sourcepub fn slow_clone_min_height(&self) -> T
pub fn slow_clone_min_height(&self) -> T
Clone the computed value for min-height. Prefer
get_min_height where a reference is enough.
Sourcepub fn min_height_equals(&self, other: &Self) -> bool
pub fn min_height_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for min-height.
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 get_min_width(&self) -> &T
pub fn get_min_width(&self) -> &T
Get a reference to the computed value for min-width.
Sourcepub fn slow_clone_min_width(&self) -> T
pub fn slow_clone_min_width(&self) -> T
Clone the computed value for min-width. Prefer
get_min_width where a reference is enough.
Sourcepub fn min_width_equals(&self, other: &Self) -> bool
pub fn min_width_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for min-width.
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 get_object_position(&self) -> &T
pub fn get_object_position(&self) -> &T
Get a reference to the computed value for object-position.
Sourcepub fn slow_clone_object_position(&self) -> T
pub fn slow_clone_object_position(&self) -> T
Clone the computed value for object-position. Prefer
get_object_position where a reference is enough.
Sourcepub fn object_position_equals(&self, other: &Self) -> bool
pub fn object_position_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for object-position.
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 slow_clone_order(&self) -> T
pub fn slow_clone_order(&self) -> T
Clone the computed value for order. Prefer
get_order where a reference is enough.
Sourcepub fn order_equals(&self, other: &Self) -> bool
pub fn order_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for order.
Sourcepub fn set_position_area(&mut self, v: T)
pub fn set_position_area(&mut self, v: T)
Set position-area.
Sourcepub fn copy_position_area_from(&mut self, other: &Self)
pub fn copy_position_area_from(&mut self, other: &Self)
Set position-area from other struct.
Sourcepub fn reset_position_area(&mut self, other: &Self)
pub fn reset_position_area(&mut self, other: &Self)
Reset position-area from the initial struct.
Sourcepub fn get_position_area(&self) -> &T
pub fn get_position_area(&self) -> &T
Get a reference to the computed value for position-area.
Sourcepub fn slow_clone_position_area(&self) -> T
pub fn slow_clone_position_area(&self) -> T
Clone the computed value for position-area. Prefer
get_position_area where a reference is enough.
Sourcepub fn position_area_equals(&self, other: &Self) -> bool
pub fn position_area_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for position-area.
Sourcepub fn set_position_try_fallbacks(&mut self, v: T)
pub fn set_position_try_fallbacks(&mut self, v: T)
Set position-try-fallbacks.
Sourcepub fn copy_position_try_fallbacks_from(&mut self, other: &Self)
pub fn copy_position_try_fallbacks_from(&mut self, other: &Self)
Set position-try-fallbacks from other struct.
Sourcepub fn reset_position_try_fallbacks(&mut self, other: &Self)
pub fn reset_position_try_fallbacks(&mut self, other: &Self)
Reset position-try-fallbacks from the initial struct.
Sourcepub fn get_position_try_fallbacks(&self) -> &T
pub fn get_position_try_fallbacks(&self) -> &T
Get a reference to the computed value for position-try-fallbacks.
Sourcepub fn slow_clone_position_try_fallbacks(&self) -> T
pub fn slow_clone_position_try_fallbacks(&self) -> T
Clone the computed value for position-try-fallbacks. Prefer
get_position_try_fallbacks where a reference is enough.
Sourcepub fn position_try_fallbacks_equals(&self, other: &Self) -> bool
pub fn position_try_fallbacks_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for position-try-fallbacks.
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 slow_clone_right(&self) -> T
pub fn slow_clone_right(&self) -> T
Clone the computed value for right. Prefer
get_right where a reference is enough.
Sourcepub fn right_equals(&self, other: &Self) -> bool
pub fn right_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for right.
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 get_row_gap(&self) -> &T
pub fn get_row_gap(&self) -> &T
Get a reference to the computed value for row-gap.
Sourcepub fn slow_clone_row_gap(&self) -> T
pub fn slow_clone_row_gap(&self) -> T
Clone the computed value for row-gap. Prefer
get_row_gap where a reference is enough.
Sourcepub fn row_gap_equals(&self, other: &Self) -> bool
pub fn row_gap_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for row-gap.
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 slow_clone_top(&self) -> T
pub fn slow_clone_top(&self) -> T
Clone the computed value for top. Prefer
get_top where a reference is enough.
Sourcepub fn top_equals(&self, other: &Self) -> bool
pub fn top_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for top.
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 slow_clone_width(&self) -> T
pub fn slow_clone_width(&self) -> T
Clone the computed value for width. Prefer
get_width where a reference is enough.
Sourcepub fn width_equals(&self, other: &Self) -> bool
pub fn width_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for width.
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 get_z_index(&self) -> &T
pub fn get_z_index(&self) -> &T
Get a reference to the computed value for z-index.
Sourcepub fn slow_clone_z_index(&self) -> T
pub fn slow_clone_z_index(&self) -> T
Clone the computed value for z-index. Prefer
get_z_index where a reference is enough.
Sourcepub fn z_index_equals(&self, other: &Self) -> bool
pub fn z_index_equals(&self, other: &Self) -> bool
Whether self and other have the same 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 get_flex_direction(&self) -> &T
pub fn get_flex_direction(&self) -> &T
Get a reference to the computed value for flex-direction.
Sourcepub fn slow_clone_flex_direction(&self) -> T
pub fn slow_clone_flex_direction(&self) -> T
Clone the computed value for flex-direction. Prefer
get_flex_direction where a reference is enough.
Sourcepub fn flex_direction_equals(&self, other: &Self) -> bool
pub fn flex_direction_equals(&self, other: &Self) -> bool
Whether self and other have the same 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 get_flex_wrap(&self) -> &T
pub fn get_flex_wrap(&self) -> &T
Get a reference to the computed value for flex-wrap.
Sourcepub fn slow_clone_flex_wrap(&self) -> T
pub fn slow_clone_flex_wrap(&self) -> T
Clone the computed value for flex-wrap. Prefer
get_flex_wrap where a reference is enough.
Sourcepub fn flex_wrap_equals(&self, other: &Self) -> bool
pub fn flex_wrap_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for flex-wrap.
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 get_box_sizing(&self) -> &T
pub fn get_box_sizing(&self) -> &T
Get a reference to the computed value for box-sizing.
Sourcepub fn slow_clone_box_sizing(&self) -> T
pub fn slow_clone_box_sizing(&self) -> T
Clone the computed value for box-sizing. Prefer
get_box_sizing where a reference is enough.
Sourcepub fn box_sizing_equals(&self, other: &Self) -> bool
pub fn box_sizing_equals(&self, other: &Self) -> bool
Whether self and other have the same 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 get_object_fit(&self) -> &T
pub fn get_object_fit(&self) -> &T
Get a reference to the computed value for object-fit.
Sourcepub fn slow_clone_object_fit(&self) -> T
pub fn slow_clone_object_fit(&self) -> T
Clone the computed value for object-fit. Prefer
get_object_fit where a reference is enough.
Sourcepub fn object_fit_equals(&self, other: &Self) -> bool
pub fn object_fit_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for object-fit.
Sourcepub fn get_inset(&self, s: PhysicalSide) -> &T
pub fn get_inset(&self, s: PhysicalSide) -> &T
Gets the value of the longhand of inset on the s side`.
Sourcepub fn set_inset(&mut self, s: PhysicalSide, v: T)
pub fn set_inset(&mut self, s: PhysicalSide, v: T)
Sets the value of the longhand of inset on the s side to v.
Sourcepub fn set_computed_justify_items(&mut self, v: JustifyItems)
pub fn set_computed_justify_items(&mut self, v: JustifyItems)
Sets the computed justify-items value without changing the specified value.
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
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 UnsafeUnpin 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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