Struct TailwindSizing

Source
pub struct TailwindSizing { /* private fields */ }
Expand description

§|width

Utilities for setting the minimum|width of an element.

ClassProperties
w-0width: 0px;
w-pxwidth: 1px;
w-0.5width: 0.125rem;
w-1width: 0.25rem;
w-1.5width: 0.375rem;
w-2width: 0.5rem;
w-2.5width: 0.625rem;
w-3width: 0.75rem;
w-3.5width: 0.875rem;
w-4width: 1rem;
w-5width: 1.25rem;
w-6width: 1.5rem;
w-7width: 1.75rem;
w-8width: 2rem;
w-9width: 2.25rem;
w-10width: 2.5rem;
w-11width: 2.75rem;
w-12width: 3rem;
w-14width: 3.5rem;
w-16width: 4rem;
w-20width: 5rem;
w-24width: 6rem;
w-28width: 7rem;
w-32width: 8rem;
w-36width: 9rem;
w-40width: 10rem;
w-44width: 11rem;
w-48width: 12rem;
w-52width: 13rem;
w-56width: 14rem;
w-60width: 15rem;
w-64width: 16rem;
w-72width: 18rem;
w-80width: 20rem;
w-96width: 24rem;
w-auto`width: auto;
w-1/2`width: 50%;
w-1/3`width: 33.333333%;
w-2/3`width: 66.666667%;
w-1/4`width: 25%;
w-2/4`width: 50%;
w-3/4`width: 75%;
w-1/5`width: 20%;
w-2/5`width: 40%;
w-3/5`width: 60%;
w-4/5`width: 80%;
w-1/6`width: 16.666667%;
w-2/6`width: 33.333333%;
w-3/6`width: 50%;
w-4/6`width: 66.666667%;
w-5/6`width: 83.333333%;
w-1/12`width: 8.333333%;
w-2/12`width: 16.666667%;
w-3/12`width: 25%;
w-4/12`width: 33.333333%;
w-5/12`width: 41.666667%;
w-6/12`width: 50%;
w-7/12`width: 58.333333%;
w-8/12`width: 66.666667%;
w-9/12`width: 75%;
w-10/12`width: 83.333333%;
w-11/12`width: 91.666667%;
w-full`width: 100%;
w-screen`width: 100vw;
w-min`width: min-content;
w-max`width: max-content;
w-fit`width: fit-content;

Implementations§

Source§

impl TailwindSizing

Source

pub fn parse_width( pattern: &[&str], arbitrary: &TailwindArbitrary, ) -> Result<Self>

Source

pub fn parse_width_max( pattern: &[&str], arbitrary: &TailwindArbitrary, ) -> Result<Self>

Source

pub fn parse_width_min( pattern: &[&str], arbitrary: &TailwindArbitrary, ) -> Result<Self>

Source

pub fn parse_height( pattern: &[&str], arbitrary: &TailwindArbitrary, ) -> Result<Self>

Source

pub fn parse_height_max( pattern: &[&str], arbitrary: &TailwindArbitrary, ) -> Result<Self>

Source

pub fn parse_height_min( pattern: &[&str], arbitrary: &TailwindArbitrary, ) -> Result<Self>

Trait Implementations§

Source§

impl Clone for TailwindSizing

Source§

fn clone(&self) -> TailwindSizing

Returns a copy 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 Debug for TailwindSizing

Source§

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

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

impl Display for TailwindSizing

Source§

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

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

impl TailwindInstance for TailwindSizing

Source§

fn attributes(&self, _: &TailwindBuilder) -> CssAttributes

Attributes in css
Source§

fn id(&self) -> String

used to deduplication and marking
Source§

fn inlineable(&self) -> bool

used to deduplication and marking
Source§

fn boxed(self) -> Box<dyn TailwindInstance>
where Self: Sized + 'static,

New tailwind instance
Source§

fn selectors(&self, ctx: &TailwindBuilder) -> String

Custom selector name
Source§

fn additional(&self, ctx: &TailwindBuilder) -> String

Additional css in bundle
Source§

impl Copy for TailwindSizing

Auto Trait Implementations§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.