pub struct SpacingScale { /* private fields */ }Expand description
Re-export core tailwind-rs functionality Spacing scale for consistent spacing values
Implementations§
Source§impl SpacingScale
impl SpacingScale
Sourcepub fn new() -> SpacingScale
pub fn new() -> SpacingScale
Creates a new spacing scale with default values
Sourcepub fn custom(
xs: &str,
sm: &str,
md: &str,
lg: &str,
xl: &str,
xl2: &str,
xl3: &str,
) -> SpacingScale
pub fn custom( xs: &str, sm: &str, md: &str, lg: &str, xl: &str, xl2: &str, xl3: &str, ) -> SpacingScale
Creates a custom spacing scale
Sourcepub fn get(&self, size: SpacingSize) -> &str
pub fn get(&self, size: SpacingSize) -> &str
Gets spacing value for a specific size
Trait Implementations§
Source§impl Default for SpacingScale
impl Default for SpacingScale
Source§fn default() -> SpacingScale
fn default() -> SpacingScale
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpacingScale
impl RefUnwindSafe for SpacingScale
impl Send for SpacingScale
impl Sync for SpacingScale
impl Unpin for SpacingScale
impl UnwindSafe for SpacingScale
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