Enum LayoutClass

Source
pub enum LayoutClass<'a> {
Show 76 variants MaxWidth(&'a str), MinCellWidth(&'a str), MinCols(&'a str), MaxCols(&'a str), Recursive, Reverse, Screen, TwinWidth, NoWrap, HideBar, AndText, Grow, Gap(&'a str), GapX(&'a str), GapY(&'a str), GapDir(&'a str), Scale(&'a str), Align(&'a str), Position(&'a str), Top(&'a str), Bottom(&'a str), Left(&'a str), Right(&'a str), Height(&'a str), ItemWidth(&'a str), MinHeight(&'a str), MaxHeight(&'a str), SideWidth(&'a str), Side(&'a str), ContentMin(&'a str), Threshold(&'a str), Limit(&'a str), KeepP, KeepPL, KeepPR, KeepCenter, Shrink, Template(&'a str), Col(&'a str), Row(&'a str), AlignSelf(&'a str), BgImg(&'a str), FlexBasis(&'a str), FlexGrow(&'a str), FlexShrink(&'a str), FontSize(&'a str), H(&'a str), HideOver(&'a str), HideUnder(&'a str), LineHeight(&'a str), Justify(&'a str), P(&'a str), PT(&'a str), PB(&'a str), PL(&'a str), PR(&'a str), PX(&'a str), PY(&'a str), PChild(&'a str), PTChild(&'a str), PBChild(&'a str), PLChild(&'a str), PRChild(&'a str), PXChild(&'a str), PYChild(&'a str), PRecursive(&'a str), PTRecursive(&'a str), PBRecursive(&'a str), PLRecursive(&'a str), PRRecursive(&'a str), PXRecursive(&'a str), PYRecursive(&'a str), Ratio(&'a str), Relative, W(&'a str), ZIndex(&'a str),
}

Variants§

§

MaxWidth(&'a str)

§

MinCellWidth(&'a str)

§

MinCols(&'a str)

§

MaxCols(&'a str)

§

Recursive

§

Reverse

§

Screen

§

TwinWidth

§

NoWrap

§

HideBar

§

AndText

§

Grow

§

Gap(&'a str)

§

GapX(&'a str)

§

GapY(&'a str)

§

GapDir(&'a str)

§

Scale(&'a str)

§

Align(&'a str)

§

Position(&'a str)

§

Top(&'a str)

§

Bottom(&'a str)

§

Left(&'a str)

§

Right(&'a str)

§

Height(&'a str)

§

ItemWidth(&'a str)

§

MinHeight(&'a str)

§

MaxHeight(&'a str)

§

SideWidth(&'a str)

§

Side(&'a str)

§

ContentMin(&'a str)

§

Threshold(&'a str)

§

Limit(&'a str)

§

KeepP

§

KeepPL

§

KeepPR

§

KeepCenter

§

Shrink

§

Template(&'a str)

§

Col(&'a str)

§

Row(&'a str)

§

AlignSelf(&'a str)

§

BgImg(&'a str)

§

FlexBasis(&'a str)

§

FlexGrow(&'a str)

§

FlexShrink(&'a str)

§

FontSize(&'a str)

§

H(&'a str)

§

HideOver(&'a str)

§

HideUnder(&'a str)

§

LineHeight(&'a str)

§

Justify(&'a str)

§

P(&'a str)

§

PT(&'a str)

§

PB(&'a str)

§

PL(&'a str)

§

PR(&'a str)

§

PX(&'a str)

§

PY(&'a str)

§

PChild(&'a str)

§

PTChild(&'a str)

§

PBChild(&'a str)

§

PLChild(&'a str)

§

PRChild(&'a str)

§

PXChild(&'a str)

§

PYChild(&'a str)

§

PRecursive(&'a str)

§

PTRecursive(&'a str)

§

PBRecursive(&'a str)

§

PLRecursive(&'a str)

§

PRRecursive(&'a str)

§

PXRecursive(&'a str)

§

PYRecursive(&'a str)

§

Ratio(&'a str)

§

Relative

§

W(&'a str)

§

ZIndex(&'a str)

Implementations§

Source§

impl<'a> LayoutClass<'a>

Source

pub fn insert_css(self, harmonic_ratio: f64, set: &mut HashSet<String>)

Generate the css of the layout class which are utilities and insert it inside the Hashset passed. This method consumes the LayoutClass, because we dont need it anymore after we get the css.

Trait Implementations§

Source§

impl<'a> Debug for LayoutClass<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Hash for LayoutClass<'a>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'a> PartialEq for LayoutClass<'a>

Source§

fn eq(&self, other: &LayoutClass<'a>) -> bool

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

const 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<'a> TryFrom<&'a str> for LayoutClass<'a>

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(input: &'a str) -> Result<LayoutClass<'a>, Self::Error>

Performs the conversion.
Source§

impl<'a> Eq for LayoutClass<'a>

Source§

impl<'a> StructuralPartialEq for LayoutClass<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for LayoutClass<'a>

§

impl<'a> RefUnwindSafe for LayoutClass<'a>

§

impl<'a> Send for LayoutClass<'a>

§

impl<'a> Sync for LayoutClass<'a>

§

impl<'a> Unpin for LayoutClass<'a>

§

impl<'a> UnwindSafe for LayoutClass<'a>

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