pub struct TailwindJustifyContent { /* private fields */ }Expand description
Utilities for controlling how flex and grid items are positioned along a container’s main axis..
§Reference
Implementations§
Source§impl TailwindJustifyContent
 
impl TailwindJustifyContent
Sourcepub fn map_keyword(s: &str) -> &str
 
pub fn map_keyword(s: &str) -> &str
Maps keyword aliases to their canonical CSS values.
This function ensures that shorthands used in Tailwind classes (like justify-between)
and direct instantiations are normalized to a single, consistent value before being stored.
For example, between is mapped to space-between.
It should be used internally by both the parse method and the From<T> implementation,
making this the single source of truth for keyword normalization.
§Examples
// The type name here would be whatever type the macro is implementing,
// for instance, `TailwindJustifyContent`.
assert_eq!(Self::map_keyword("between"), "space-between");
assert_eq!(Self::map_keyword("start"), "flex-start");
// Keywords without an alias are returned as-is.
assert_eq!(Self::map_keyword("center"), "center");Source§impl TailwindJustifyContent
 
impl TailwindJustifyContent
Sourcepub fn parse(pattern: &[&str], arbitrary: &TailwindArbitrary) -> Result<Self>
 
pub fn parse(pattern: &[&str], arbitrary: &TailwindArbitrary) -> Result<Self>
Sourcepub fn parse_arbitrary(arbitrary: &TailwindArbitrary) -> Result<Self>
 
pub fn parse_arbitrary(arbitrary: &TailwindArbitrary) -> Result<Self>
dispatch to justify-content
Trait Implementations§
Source§impl Clone for TailwindJustifyContent
 
impl Clone for TailwindJustifyContent
Source§fn clone(&self) -> TailwindJustifyContent
 
fn clone(&self) -> TailwindJustifyContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TailwindJustifyContent
 
impl Debug for TailwindJustifyContent
Source§impl Display for TailwindJustifyContent
 
impl Display for TailwindJustifyContent
Source§impl<T> From<T> for TailwindJustifyContent
 
impl<T> From<T> for TailwindJustifyContent
Source§impl TailwindInstance for TailwindJustifyContent
 
impl TailwindInstance for TailwindJustifyContent
Source§fn attributes(&self, _: &TailwindBuilder) -> CssAttributes
 
fn attributes(&self, _: &TailwindBuilder) -> CssAttributes
Attributes in css
Source§fn inlineable(&self) -> bool
 
fn inlineable(&self) -> bool
used to deduplication and marking
Source§fn selectors(&self, ctx: &TailwindBuilder) -> String
 
fn selectors(&self, ctx: &TailwindBuilder) -> String
Custom selector name
Source§fn additional(&self, ctx: &TailwindBuilder) -> String
 
fn additional(&self, ctx: &TailwindBuilder) -> String
Additional css in bundle
Auto Trait Implementations§
impl Freeze for TailwindJustifyContent
impl RefUnwindSafe for TailwindJustifyContent
impl Send for TailwindJustifyContent
impl Sync for TailwindJustifyContent
impl Unpin for TailwindJustifyContent
impl UnwindSafe for TailwindJustifyContent
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
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>
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 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>
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