Style

Enum Style 

Source
pub enum Style {
Show 59 variants Width(Unit), Height(Unit), MaxWidth(Unit), MaxHeight(Unit), OutlineWidth(Unit), Top(Unit), Right(Unit), Bottom(Unit), Left(Unit), Padding(VecUnit), PaddingTop(Unit), PaddingRight(Unit), PaddingBottom(Unit), PaddingLeft(Unit), Margin(VecUnit), MarginTop(Unit), MarginRight(Unit), MarginBottom(Unit), MarginLeft(Unit), BorderTop(BoxBorder), BorderRight(BoxBorder), BorderBottom(BoxBorder), BorderLeft(BoxBorder), Border(BoxBorder), FontWeight(Unit), FontSize(Unit), FontStretch(Unit), LineHeight(Unit), Color(Color), BackgroundColor(Color), AlignItems(FlexPosition), JustifyContent(FlexPosition), FlexGrow(Unit), Order(Unit), GridAutoColumns(GridAuto), GridAutoRows(GridAuto), GridAutoFlow(GridFlow), GridColumnGap(Unit), GridRowGap(Unit), GridTemplateColumns(GridTemplate), GridTemplateRows(GridTemplate), ColumnCount(Unit), ColumnGap(Unit), ColumnRuleColor(Color), ColumnRuleStyle(MultiColumnLineStyle), FlexBasis(FlexBasis), FlexDirection(FlexDirection), FlexPosition(FlexPosition), FlexWrap(FlexWrap), BorderStyle(BorderStyle), GridAuto(GridAuto), GridFlow(GridFlow), GridTemplate(GridTemplate), FontStyle(FontStyle), FontFamily(FontFamily), TextAlign(TextAlign), BoxShadow(BoxShadow), Position(Position), BorderRadius(BorderRadius),
}
Expand description

Evlis Style

Variants§

§

Width(Unit)

Box Width

§

Height(Unit)

Box Height

§

MaxWidth(Unit)

Box Max Width

§

MaxHeight(Unit)

Box Max Height

§

OutlineWidth(Unit)

Box Outline Width

§

Top(Unit)

Box Top

§

Right(Unit)

Box Right

§

Bottom(Unit)

Box Bottom

§

Left(Unit)

Box Left

§

Padding(VecUnit)

Box Padding

§

PaddingTop(Unit)

Padding Top

§

PaddingRight(Unit)

Padding right

§

PaddingBottom(Unit)

Padding Bottom

§

PaddingLeft(Unit)

Padding left

§

Margin(VecUnit)

Box Margin

§

MarginTop(Unit)

Margin Top

§

MarginRight(Unit)

Margin right

§

MarginBottom(Unit)

Margin Bottom

§

MarginLeft(Unit)

Margin left

§

BorderTop(BoxBorder)

Border Top

§

BorderRight(BoxBorder)

Border Right

§

BorderBottom(BoxBorder)

Border Bottom

§

BorderLeft(BoxBorder)

Border Left

§

Border(BoxBorder)

Border Border

§

FontWeight(Unit)

Font Weight Style

§

FontSize(Unit)

Font Size Style

§

FontStretch(Unit)

Font Stretch Style

§

LineHeight(Unit)

Line Height Style

§

Color(Color)

Custom Color

§

BackgroundColor(Color)

Custom Color

§

AlignItems(FlexPosition)

AlignItem Style

§

JustifyContent(FlexPosition)

AlignItem Style

§

FlexGrow(Unit)

FlexGrow Style

§

Order(Unit)

FlexOrder Style

§

GridAutoColumns(GridAuto)

GridAutoColumn Style

§

GridAutoRows(GridAuto)

GridAutoColumn Style

§

GridAutoFlow(GridFlow)

GridAutoFlow Style

§

GridColumnGap(Unit)

GridColumnGap Style

§

GridRowGap(Unit)

GridColumnGap Style

§

GridTemplateColumns(GridTemplate)

GridTemplateColumns Style

§

GridTemplateRows(GridTemplate)

GridTemplateRow Style

§

ColumnCount(Unit)

ColumnCount Style

§

ColumnGap(Unit)

ColumnGap Style

§

ColumnRuleColor(Color)

ColumnRuleColor Style

§

ColumnRuleStyle(MultiColumnLineStyle)

ColumnRuleStyle Style

§

FlexBasis(FlexBasis)

FlexBasis style

§

FlexDirection(FlexDirection)

FlexDirection style

§

FlexPosition(FlexPosition)

FlexPosition style

§

FlexWrap(FlexWrap)

Flex Wrap Style

§

BorderStyle(BorderStyle)

Border Style

§

GridAuto(GridAuto)

Grid Auto Style

§

GridFlow(GridFlow)

Grid Flow Style

§

GridTemplate(GridTemplate)

Grid Template Style

§

FontStyle(FontStyle)

Font Style

§

FontFamily(FontFamily)

Font Family

§

TextAlign(TextAlign)

Text Align

§

BoxShadow(BoxShadow)

Box Shadow

§

Position(Position)

Box Position

§

BorderRadius(BorderRadius)

Border Radius

Implementations§

Source§

impl Style

Source

pub fn to_css(&self) -> String

Convert Style to css string

Trait Implementations§

Source§

impl Clone for Style

Source§

fn clone(&self) -> Style

Returns a duplicate 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 From<BorderRadius> for Style

Source§

fn from(s: BorderRadius) -> Style

Converts to this type from the input type.
Source§

impl From<BorderStyle> for Style

Source§

fn from(s: BorderStyle) -> Style

Converts to this type from the input type.
Source§

impl From<BoxShadow> for Style

Source§

fn from(s: BoxShadow) -> Style

Converts to this type from the input type.
Source§

impl From<FlexBasis> for Style

Source§

fn from(s: FlexBasis) -> Style

Converts to this type from the input type.
Source§

impl From<FlexDirection> for Style

Source§

fn from(s: FlexDirection) -> Style

Converts to this type from the input type.
Source§

impl From<FlexPosition> for Style

Source§

fn from(s: FlexPosition) -> Style

Converts to this type from the input type.
Source§

impl From<FlexWrap> for Style

Source§

fn from(s: FlexWrap) -> Style

Converts to this type from the input type.
Source§

impl From<FontFamily> for Style

Source§

fn from(s: FontFamily) -> Style

Converts to this type from the input type.
Source§

impl From<FontStyle> for Style

Source§

fn from(s: FontStyle) -> Style

Converts to this type from the input type.
Source§

impl From<GridAuto> for Style

Source§

fn from(s: GridAuto) -> Style

Converts to this type from the input type.
Source§

impl From<GridFlow> for Style

Source§

fn from(s: GridFlow) -> Style

Converts to this type from the input type.
Source§

impl From<GridTemplate> for Style

Source§

fn from(s: GridTemplate) -> Style

Converts to this type from the input type.
Source§

impl From<Position> for Style

Source§

fn from(s: Position) -> Style

Converts to this type from the input type.
Source§

impl From<TextAlign> for Style

Source§

fn from(s: TextAlign) -> Style

Converts to this type from the input type.
Source§

impl Into<Style> for Color

Source§

fn into(self) -> Style

Converts this type into the (usually inferred) input type.
Source§

impl Ord for Style

Source§

fn cmp(&self, other: &Style) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Style

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Style

Source§

fn partial_cmp(&self, other: &Style) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Eq for Style

Source§

impl StructuralPartialEq for Style

Auto Trait Implementations§

§

impl Freeze for Style

§

impl RefUnwindSafe for Style

§

impl Send for Style

§

impl Sync for Style

§

impl Unpin for Style

§

impl UnwindSafe for Style

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

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

Source§

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

Source§

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.