pub struct Style {Show 33 fields
pub display: Display,
pub hidden: bool,
pub position: Position,
pub direction: TextDirection,
pub text_align: Option<TextAlign>,
pub scroll_x: bool,
pub scroll_y: bool,
pub inset: Edges,
pub width: Length,
pub height: Length,
pub min_width: Length,
pub min_height: Length,
pub max_width: Length,
pub max_height: Length,
pub aspect_ratio: Option<f32>,
pub margin: Edges,
pub padding: Edges,
pub flex_direction: FlexDirection,
pub flex_wrap: bool,
pub flex_grow: f32,
pub flex_shrink: f32,
pub flex_basis: Length,
pub align_items: Option<Align>,
pub align_self: Option<Align>,
pub justify_self: Option<Align>,
pub align_content: Option<Justify>,
pub justify_content: Option<Justify>,
pub row_gap: Length,
pub column_gap: Length,
pub grid_template_columns: Vec<Track>,
pub grid_template_rows: Vec<Track>,
pub grid_column: GridPlacement,
pub grid_row: GridPlacement,
}Fields§
§display: DisplayHidden nodes act like display: none but keep their display.
position: Position§direction: TextDirection§text_align: Option<TextAlign>Text only: where its lines go, resolved against direction.
scroll_x: boolContent may overflow along these axes and is scrolled natively.
Set by ScrollView; also lets it shrink below its content size.
scroll_y: bool§inset: Edges§width: Length§height: Length§min_width: Length§min_height: Length§max_width: Length§max_height: Length§aspect_ratio: Option<f32>§margin: Edges§padding: Edges§flex_direction: FlexDirection§flex_wrap: bool§flex_grow: f32§flex_shrink: f32§flex_basis: Length§align_items: Option<Align>§align_self: Option<Align>§justify_self: Option<Align>Alignment inside a grid cell along the inline axis.
align_content: Option<Justify>§justify_content: Option<Justify>§row_gap: Length§column_gap: Length§grid_template_columns: Vec<Track>§grid_template_rows: Vec<Track>§grid_column: GridPlacement§grid_row: GridPlacementImplementations§
Trait Implementations§
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Forget for Style
impl Freeze for Style
impl Move for Style
impl RefUnwindSafe for Style
impl Send for Stylewhere
RawVecInner: Send,
impl Sync for Stylewhere
RawVecInner: Sync,
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Stylewhere
RawVecInner: UnwindSafe,
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
Mutably borrows from an owned value. Read more