ClassBuilder

Struct ClassBuilder 

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

Builder for creating class sets

Implementations§

Source§

impl ClassBuilder

Source

pub fn new() -> Self

Create a new class builder

Source

pub fn class(self, class: impl Into<String>) -> Self

Add a base class

Source

pub fn classes(self, classes: impl IntoIterator<Item = String>) -> Self

Add multiple base classes

Source

pub fn responsive( self, breakpoint: Breakpoint, class: impl Into<String>, ) -> Self

Add a responsive class

Source

pub fn conditional( self, condition: impl Into<String>, class: impl Into<String>, ) -> Self

Add a conditional class

Source

pub fn custom( self, property: impl Into<String>, value: impl Into<String>, ) -> Self

Add a custom CSS property

Source

pub fn custom_variant( self, variant: impl Into<String>, class: impl Into<String>, ) -> Self

Add a custom variant class (Tailwind v4.1.13 @custom-variant support)

Source

pub fn aria( self, aria_attr: impl Into<String>, class: impl Into<String>, ) -> Self

Add an ARIA variant class

Source

pub fn data( self, data_attr: impl Into<String>, value: Option<String>, class: impl Into<String>, ) -> Self

Add a data variant class

Source

pub fn supports( self, feature: impl Into<String>, class: impl Into<String>, ) -> Self

Add a supports variant class

Source

pub fn build(self) -> ClassSet

Build the class set

Source

pub fn build_string(self) -> String

Build the class set and convert to CSS string

Source§

impl ClassBuilder

Convenience methods for space-between utilities

Source

pub fn space_x_2(self) -> Self

Add horizontal space between child elements with value 2

Source

pub fn space_x_4(self) -> Self

Add horizontal space between child elements with value 4

Source

pub fn space_y_2(self) -> Self

Add vertical space between child elements with value 2

Source

pub fn space_y_4(self) -> Self

Add vertical space between child elements with value 4

Source§

impl ClassBuilder

Convenience methods for divide utilities

Source

pub fn divide_x_2(self) -> Self

Add horizontal divider between child elements with value 2

Source

pub fn divide_x_4(self) -> Self

Add horizontal divider between child elements with value 4

Source

pub fn divide_y_2(self) -> Self

Add vertical divider between child elements with value 2

Source

pub fn divide_y_4(self) -> Self

Add vertical divider between child elements with value 4

Source§

impl ClassBuilder

Source

pub fn typography( &mut self, family: Option<FontFamily>, size: Option<FontSize>, weight: Option<FontWeight>, align: Option<TextAlign>, line_height: Option<LineHeight>, letter_spacing: Option<LetterSpacing>, ) -> &mut Self

Apply comprehensive typography styling

Trait Implementations§

Source§

impl AdvancedPluginSystemConvenience for ClassBuilder

Source§

fn plugin_utility(self) -> Self

Set utility plugin
Source§

fn plugin_component(self) -> Self

Set component plugin
Source§

fn plugin_base(self) -> Self

Set base plugin
Source§

fn plugin_variant(self) -> Self

Set variant plugin
Source§

fn plugin_high_priority(self) -> Self

Set high priority plugin
Source§

fn plugin_critical_priority(self) -> Self

Set critical priority plugin
Source§

fn plugin_enabled(self) -> Self

Set enabled plugin
Source§

fn plugin_disabled(self) -> Self

Set disabled plugin
Source§

fn plugin_merge(self) -> Self

Set merge composition
Source§

fn plugin_extend(self) -> Self

Set extend composition
Source§

fn plugin_initialize(self) -> Self

Set initialize lifecycle
Source§

fn plugin_execute(self) -> Self

Set execute lifecycle
Source§

impl AdvancedPluginSystemUtilities for ClassBuilder

Source§

fn plugin_type(self, plugin_type: PluginType) -> Self

Set plugin type
Source§

fn plugin_priority(self, priority: PluginPriority) -> Self

Set plugin priority
Source§

fn plugin_config(self, config: PluginConfig) -> Self

Set plugin configuration
Source§

fn plugin_composition(self, composition: PluginComposition) -> Self

Set plugin composition
Source§

fn plugin_lifecycle(self, lifecycle: PluginLifecycle) -> Self

Set plugin lifecycle
Source§

fn plugin_custom(self, name: &str, _options: HashMap<String, String>) -> Self

Set plugin with custom options
Source§

impl AlignContentUtilities for ClassBuilder

Source§

fn align_content(self, align: AlignContent) -> Self

Source§

impl AlignItemsUtilities for ClassBuilder

Source§

fn align_items(self, align: AlignItems) -> Self

Source§

impl AlignSelfUtilities for ClassBuilder

Source§

fn align_self(self, align: AlignSelf) -> Self

Source§

impl AnimationUtilities for ClassBuilder

Source§

fn animation(self, animation: Animation) -> Self

Source§

fn animation_with_duration(self, animation: Animation, duration_ms: u32) -> Self

Add animation with custom duration
Source§

fn animation_once(self, animation: Animation) -> Self

Add animation that runs only once
Source§

fn animation_repeat(self, animation: Animation, count: u32) -> Self

Add animation that repeats a specific number of times
Source§

fn fade_in(self) -> Self

Add fade in animation
Source§

fn fade_out(self) -> Self

Add fade out animation
Source§

fn slide_in_left(self) -> Self

Add slide in from left animation
Source§

fn slide_in_right(self) -> Self

Add slide in from right animation
Source§

fn slide_in_top(self) -> Self

Add slide in from top animation
Source§

fn slide_in_bottom(self) -> Self

Add slide in from bottom animation
Source§

fn zoom_in(self) -> Self

Add zoom in animation
Source§

fn zoom_out(self) -> Self

Add zoom out animation
Source§

fn wobble(self) -> Self

Add wobble animation
Source§

fn shake(self) -> Self

Add shake animation
Source§

fn flip(self) -> Self

Add flip animation
Source§

fn heartbeat(self) -> Self

Add heartbeat animation
Source§

fn hover_animation(self, animation: Animation) -> Self

Add hover animation (animation only on hover)
Source§

fn focus_animation(self, animation: Animation) -> Self

Add focus animation (animation only on focus)
Source§

fn animation_pause(self) -> Self

Pause animation
Source§

fn animation_resume(self) -> Self

Resume animation
Source§

impl ArbitraryValueUtilities for ClassBuilder

Source§

fn arbitrary_value( self, property: impl Into<String>, value: impl Into<String>, ) -> Self

Add an arbitrary value class
Source§

fn w_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary width
Source§

fn h_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary height
Source§

fn p_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary padding
Source§

fn m_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary margin
Source§

fn bg_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary background color
Source§

fn text_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary text color
Source§

fn border_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary border color
Source§

fn text_size_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary font size
Source§

fn leading_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary line height
Source§

fn tracking_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary letter spacing
Source§

fn rounded_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary border radius
Source§

fn shadow_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary shadow
Source§

fn opacity_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary opacity
Source§

fn z_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary z-index
Source§

fn top_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary top position
Source§

fn right_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary right position
Source§

fn bottom_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary bottom position
Source§

fn left_arbitrary(self, value: impl Into<String>) -> Self

Add arbitrary left position
Source§

impl AspectRatioUtilities for ClassBuilder

Source§

fn aspect_ratio(self, aspect_ratio: AspectRatio) -> Self

Source§

impl BackdropFilterUtilities for ClassBuilder

Source§

fn backdrop_blur(self, blur: BackdropBlur) -> Self

Source§

fn backdrop_brightness(self, brightness: BackdropBrightness) -> Self

Source§

fn backdrop_contrast(self, contrast: BackdropContrast) -> Self

Source§

fn backdrop_grayscale(self, grayscale: BackdropGrayscale) -> Self

Source§

fn backdrop_hue_rotate(self, hue_rotate: BackdropHueRotate) -> Self

Source§

fn backdrop_invert(self, invert: BackdropInvert) -> Self

Source§

fn backdrop_opacity(self, opacity: BackdropOpacity) -> Self

Source§

fn backdrop_saturate(self, saturate: BackdropSaturate) -> Self

Source§

fn backdrop_sepia(self, sepia: BackdropSepia) -> Self

Source§

impl BackgroundAttachmentUtilities for ClassBuilder

Source§

impl BackgroundBlendModeUtilities for ClassBuilder

Source§

impl BackgroundClipUtilities for ClassBuilder

Source§

fn background_clip(self, clip: BackgroundClip) -> Self

Source§

impl BackgroundColorUtilities for ClassBuilder

Source§

fn background_color(self, color: Color) -> Self

Source§

fn background_color_palette_shade( self, palette: ColorPalette, shade: ColorShade, ) -> Self

Source§

impl BackgroundImageUtilities for ClassBuilder

Source§

fn background_image(self, image: BackgroundImage) -> Self

Source§

impl BackgroundOriginUtilities for ClassBuilder

Source§

impl BackgroundPositionUtilities for ClassBuilder

Source§

impl BackgroundRepeatUtilities for ClassBuilder

Source§

impl BackgroundSizeUtilities for ClassBuilder

Source§

fn background_size(self, size: BackgroundSize) -> Self

Source§

impl BlurUtilities for ClassBuilder

Source§

fn blur(self, blur: Blur) -> Self

Source§

impl BorderColorUtilities for ClassBuilder

Source§

fn border_color(self, color: Color) -> Self

Source§

fn border_color_palette_shade( self, palette: ColorPalette, shade: ColorShade, ) -> Self

Source§

impl BorderRadiusUtilities for ClassBuilder

Source§

fn border_radius(self, radius: BorderRadius) -> Self

Source§

fn border_radius_t(self, radius: BorderRadius) -> Self

Source§

fn border_radius_r(self, radius: BorderRadius) -> Self

Source§

fn border_radius_b(self, radius: BorderRadius) -> Self

Source§

fn border_radius_l(self, radius: BorderRadius) -> Self

Source§

fn border_radius_tl(self, radius: BorderRadius) -> Self

Source§

fn border_radius_tr(self, radius: BorderRadius) -> Self

Source§

fn border_radius_br(self, radius: BorderRadius) -> Self

Source§

fn border_radius_bl(self, radius: BorderRadius) -> Self

Source§

impl BorderStyleUtilities for ClassBuilder

Source§

fn border_style(self, style: BorderStyle) -> Self

Source§

impl BorderWidthUtilities for ClassBuilder

Source§

fn border_width(self, width: BorderWidth) -> Self

Source§

fn border_width_x(self, width: BorderWidth) -> Self

Source§

fn border_width_y(self, width: BorderWidth) -> Self

Source§

fn border_width_t(self, width: BorderWidth) -> Self

Source§

fn border_width_r(self, width: BorderWidth) -> Self

Source§

fn border_width_b(self, width: BorderWidth) -> Self

Source§

fn border_width_l(self, width: BorderWidth) -> Self

Source§

impl BoxShadowUtilities for ClassBuilder

Source§

fn box_shadow(self, shadow: BoxShadow) -> Self

Source§

impl BrightnessUtilities for ClassBuilder

Source§

fn brightness(self, brightness: Brightness) -> Self

Source§

impl ClearUtilities for ClassBuilder

Source§

fn clear(self, clear: Clear) -> Self

Source§

impl Clone for ClassBuilder

Source§

fn clone(&self) -> ClassBuilder

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 ColorSchemeVariantUtilities for ClassBuilder

Source§

fn light(self) -> Self

Add light color scheme variant
Source§

fn dark(self) -> Self

Add dark color scheme variant
Source§

impl ContrastUtilities for ClassBuilder

Source§

fn contrast(self, contrast: Contrast) -> Self

Source§

impl CssNestingConvenience for ClassBuilder

Source§

fn nested_hover(self, class: &str) -> Self

Set nested hover class
Source§

fn nested_focus(self, class: &str) -> Self

Set nested focus class
Source§

fn nested_active(self, class: &str) -> Self

Set nested active class
Source§

fn nested_first_child(self, class: &str) -> Self

Set nested first child class
Source§

fn nested_last_child(self, class: &str) -> Self

Set nested last child class
Source§

fn nested_sm(self, class: &str) -> Self

Set nested small screen class
Source§

fn nested_md(self, class: &str) -> Self

Set nested medium screen class
Source§

fn nested_lg(self, class: &str) -> Self

Set nested large screen class
Source§

fn nested_dark(self, class: &str) -> Self

Set nested dark mode class
Source§

fn nested_light(self, class: &str) -> Self

Set nested light mode class
Source§

impl CssNestingUtilities for ClassBuilder

Source§

fn nesting_selector(self, selector: NestingSelector) -> Self

Set nesting selector
Source§

fn nesting_pseudo_class(self, pseudo_class: NestingPseudoClass) -> Self

Set nesting pseudo-class
Source§

fn nesting_media_query(self, media_query: NestingMediaQuery) -> Self

Set nesting media query
Source§

fn nested_class(self, selector: NestingSelector, class: &str) -> Self

Set nested class with selector
Source§

fn nested_pseudo_class( self, pseudo_class: NestingPseudoClass, class: &str, ) -> Self

Set nested class with pseudo-class
Source§

fn nested_media_query(self, media_query: NestingMediaQuery, class: &str) -> Self

Set nested class with media query
Source§

impl DarkModeVariantUtilities for ClassBuilder

Source§

fn dark_mode(self, class: impl Into<String>) -> Self

Add a dark mode variant
Source§

fn dark_hover(self, class: impl Into<String>) -> Self

Add a dark mode hover variant
Source§

fn dark_focus(self, class: impl Into<String>) -> Self

Add a dark mode focus variant
Source§

fn dark_active(self, class: impl Into<String>) -> Self

Add a dark mode active variant
Source§

fn dark_disabled(self, class: impl Into<String>) -> Self

Add a dark mode disabled variant
Source§

fn dark_checked(self, class: impl Into<String>) -> Self

Add a dark mode checked variant
Source§

fn dark_group_hover(self, class: impl Into<String>) -> Self

Add a dark mode group hover variant
Source§

fn dark_group_focus(self, class: impl Into<String>) -> Self

Add a dark mode group focus variant
Source§

fn dark_bg(self, color: impl Into<String>) -> Self

Add a dark mode background color
Source§

fn dark_text(self, color: impl Into<String>) -> Self

Add a dark mode text color
Source§

fn dark_border(self, color: impl Into<String>) -> Self

Add a dark mode border color
Source§

fn dark_hover_bg(self, color: impl Into<String>) -> Self

Add a dark mode hover background color
Source§

fn dark_hover_text(self, color: impl Into<String>) -> Self

Add a dark mode hover text color
Source§

fn dark_focus_bg(self, color: impl Into<String>) -> Self

Add a dark mode focus background color
Source§

fn dark_focus_text(self, color: impl Into<String>) -> Self

Add a dark mode focus text color
Source§

impl Debug for ClassBuilder

Source§

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

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

impl Default for ClassBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl DisplayUtilities for ClassBuilder

Source§

fn display(self, display: Display) -> Self

Source§

impl DivideUtilities for ClassBuilder

Source§

fn divide_width(self, width: DivideWidth) -> Self

Source§

fn divide_width_x(self, width: DivideWidth) -> Self

Source§

fn divide_width_y(self, width: DivideWidth) -> Self

Source§

fn divide_style(self, style: DivideStyle) -> Self

Source§

impl DropShadowUtilities for ClassBuilder

Source§

fn drop_shadow(self, shadow: DropShadow) -> Self

Source§

fn drop_shadow_red(self) -> Self

Source§

fn drop_shadow_blue(self) -> Self

Source§

fn drop_shadow_green(self) -> Self

Source§

fn drop_shadow_yellow(self) -> Self

Source§

fn drop_shadow_purple(self) -> Self

Source§

fn drop_shadow_pink(self) -> Self

Source§

fn drop_shadow_orange(self) -> Self

Source§

fn drop_shadow_indigo(self) -> Self

Source§

fn drop_shadow_cyan(self) -> Self

Source§

fn drop_shadow_teal(self) -> Self

Source§

fn drop_shadow_lime(self) -> Self

Source§

fn drop_shadow_emerald(self) -> Self

Source§

fn drop_shadow_rose(self) -> Self

Source§

fn drop_shadow_violet(self) -> Self

Source§

fn drop_shadow_fuchsia(self) -> Self

Source§

fn drop_shadow_sky(self) -> Self

Source§

fn drop_shadow_amber(self) -> Self

Source§

fn drop_shadow_stone(self) -> Self

Source§

fn drop_shadow_neutral(self) -> Self

Source§

fn drop_shadow_zinc(self) -> Self

Source§

fn drop_shadow_gray(self) -> Self

Source§

fn drop_shadow_slate(self) -> Self

Source§

impl EnhancedBackdropFilterUtilities for ClassBuilder

Source§

fn backdrop_blur_none(self) -> Self

Set backdrop blur to none
Source§

fn backdrop_blur_sm(self) -> Self

Set backdrop blur to small
Source§

fn backdrop_blur(self) -> Self

Set backdrop blur to default
Source§

fn backdrop_blur_md(self) -> Self

Set backdrop blur to medium
Source§

fn backdrop_blur_lg(self) -> Self

Set backdrop blur to large
Source§

fn backdrop_blur_xl(self) -> Self

Set backdrop blur to extra large
Source§

fn backdrop_blur_2xl(self) -> Self

Set backdrop blur to 2XL
Source§

fn backdrop_blur_3xl(self) -> Self

Set backdrop blur to 3XL
Source§

fn backdrop_blur_custom(self, blur: EnhancedBackdropBlur) -> Self

Set backdrop blur with custom value
Source§

impl EnhancedValidationConvenience for ClassBuilder

Source§

fn validation_required(self) -> Self

Set required validation
Source§

fn validation_pattern(self, pattern: &str) -> Self

Set pattern validation
Source§

fn validation_length(self, min: usize, max: usize) -> Self

Set length validation
Source§

fn validation_range(self, min: f64, max: f64) -> Self

Set range validation
Source§

fn validation_error(self) -> Self

Set error severity
Source§

fn validation_warning(self) -> Self

Set warning severity
Source§

fn validation_info(self) -> Self

Set info severity
Source§

fn validation_success(self) -> Self

Set success severity
Source§

fn validation_global(self) -> Self

Set global scope
Source§

fn validation_local(self) -> Self

Set local scope
Source§

fn validation_component(self) -> Self

Set component scope
Source§

fn validation_page(self) -> Self

Set page scope
Source§

fn validation_strict(self) -> Self

Set strict mode
Source§

fn validation_loose(self) -> Self

Set loose mode
Source§

fn validation_custom_mode(self) -> Self

Set custom mode
Source§

fn validation_disabled(self) -> Self

Set disabled mode
Source§

fn validation_valid(self) -> Self

Set valid result
Source§

fn validation_invalid(self, message: &str) -> Self

Set invalid result
Source§

fn validation_warning_result(self, message: &str) -> Self

Set warning result
Source§

fn validation_info_result(self, message: &str) -> Self

Set info result
Source§

impl EnhancedValidationUtilities for ClassBuilder

Source§

fn validation_rule(self, rule: ValidationRule) -> Self

Set validation rule
Source§

fn validation_severity(self, severity: ValidationSeverity) -> Self

Set validation severity
Source§

fn validation_scope(self, scope: ValidationScope) -> Self

Set validation scope
Source§

fn validation_mode(self, mode: ValidationMode) -> Self

Set validation mode
Source§

fn validation_result(self, result: ValidationResult) -> Self

Set validation result
Source§

fn validation_custom( self, name: &str, _options: HashMap<String, String>, ) -> Self

Set validation with custom options
Source§

impl FlexBasisUtilities for ClassBuilder

Source§

fn flex_basis(self, basis: FlexBasis) -> Self

Source§

impl FlexDirectionUtilities for ClassBuilder

Source§

fn flex_direction(self, direction: FlexDirection) -> Self

Source§

impl FlexGrowUtilities for ClassBuilder

Source§

fn flex_grow(self, grow: FlexGrow) -> Self

Source§

impl FlexShrinkUtilities for ClassBuilder

Source§

fn flex_shrink(self, shrink: FlexShrink) -> Self

Source§

impl FlexUtilities for ClassBuilder

Source§

fn flex(self, flex: Flex) -> Self

Source§

impl FlexWrapUtilities for ClassBuilder

Source§

fn flex_wrap(self, wrap: FlexWrap) -> Self

Source§

impl FloatUtilities for ClassBuilder

Source§

fn float(self, float: Float) -> Self

Source§

impl FontFamilyUtilities for ClassBuilder

Source§

fn font_family(&mut self, family: FontFamily) -> &mut Self

Source§

fn font_sans(&mut self) -> &mut Self

Source§

fn font_serif(&mut self) -> &mut Self

Source§

fn font_mono(&mut self) -> &mut Self

Source§

impl FontSizeUtilities for ClassBuilder

Source§

fn text_size(&mut self, size: FontSize) -> &mut Self

Source§

fn text_xs(&mut self) -> &mut Self

Source§

fn text_sm(&mut self) -> &mut Self

Source§

fn text_base(&mut self) -> &mut Self

Source§

fn text_lg(&mut self) -> &mut Self

Source§

fn text_xl(&mut self) -> &mut Self

Source§

fn text_2xl(&mut self) -> &mut Self

Source§

fn text_3xl(&mut self) -> &mut Self

Source§

fn text_4xl(&mut self) -> &mut Self

Source§

fn text_5xl(&mut self) -> &mut Self

Source§

fn text_6xl(&mut self) -> &mut Self

Source§

fn text_7xl(&mut self) -> &mut Self

Source§

fn text_8xl(&mut self) -> &mut Self

Source§

fn text_9xl(&mut self) -> &mut Self

Source§

impl FontWeightUtilities for ClassBuilder

Source§

fn font_weight(&mut self, weight: FontWeight) -> &mut Self

Source§

fn font_thin(&mut self) -> &mut Self

Source§

fn font_extralight(&mut self) -> &mut Self

Source§

fn font_light(&mut self) -> &mut Self

Source§

fn font_normal(&mut self) -> &mut Self

Source§

fn font_medium(&mut self) -> &mut Self

Source§

fn font_semibold(&mut self) -> &mut Self

Source§

fn font_bold(&mut self) -> &mut Self

Source§

fn font_extrabold(&mut self) -> &mut Self

Source§

fn font_black(&mut self) -> &mut Self

Source§

impl GapUtilities for ClassBuilder

Source§

fn gap(self, value: SpacingValue) -> Self

Add gap between grid/flex items
Source§

fn gap_x(self, value: SpacingValue) -> Self

Add horizontal gap between grid/flex items
Source§

fn gap_y(self, value: SpacingValue) -> Self

Add vertical gap between grid/flex items
Source§

impl GradientDirectionUtilities for ClassBuilder

Source§

fn gradient_direction(self, direction: GradientDirection) -> Self

Source§

impl GradientStopUtilities for ClassBuilder

Source§

fn gradient_from(self, color: Color) -> Self

Source§

fn gradient_via(self, color: Color) -> Self

Source§

fn gradient_to(self, color: Color) -> Self

Source§

impl GrayscaleUtilities for ClassBuilder

Source§

fn grayscale(self, grayscale: Grayscale) -> Self

Source§

impl GridAutoColumnsUtilities for ClassBuilder

Source§

fn grid_auto_columns(self, columns: GridAutoColumns) -> Self

Source§

impl GridAutoFlowUtilities for ClassBuilder

Source§

fn grid_auto_flow(self, flow: GridAutoFlow) -> Self

Source§

impl GridAutoRowsUtilities for ClassBuilder

Source§

fn grid_auto_rows(self, rows: GridAutoRows) -> Self

Source§

impl GridColumnSpanUtilities for ClassBuilder

Source§

impl GridGapUtilities for ClassBuilder

Source§

fn grid_gap(self, gap: GridGap) -> Self

Source§

fn gap(self, gap: SpacingValue) -> Self

Source§

impl GridPlacementUtilities for ClassBuilder

Source§

fn grid_column_start(self, start: GridColumnStart) -> Self

Source§

fn grid_column_end(self, end: GridColumnEnd) -> Self

Source§

fn grid_row_start(self, start: GridRowStart) -> Self

Source§

fn grid_row_end(self, end: GridRowEnd) -> Self

Source§

impl GridRowSpanUtilities for ClassBuilder

Source§

fn grid_row_span(self, span: GridRowSpan) -> Self

Source§

impl GridTemplateColumnsUtilities for ClassBuilder

Source§

impl GridTemplateRowsUtilities for ClassBuilder

Source§

impl HeightUtilities for ClassBuilder

Source§

fn height(self, height: SizingValue) -> Self

Source§

impl HueRotateUtilities for ClassBuilder

Source§

fn hue_rotate(self, hue_rotate: HueRotate) -> Self

Source§

impl InvertUtilities for ClassBuilder

Source§

fn invert(self, invert: Invert) -> Self

Source§

impl IsolationUtilities for ClassBuilder

Source§

fn isolation(self, isolation: Isolation) -> Self

Source§

impl JustifyContentUtilities for ClassBuilder

Source§

fn justify_content(self, justify: JustifyContent) -> Self

Source§

impl LetterSpacingUtilities for ClassBuilder

Source§

fn tracking(&mut self, spacing: LetterSpacing) -> &mut Self

Source§

fn tracking_tighter(&mut self) -> &mut Self

Source§

fn tracking_tight(&mut self) -> &mut Self

Source§

fn tracking_normal(&mut self) -> &mut Self

Source§

fn tracking_wide(&mut self) -> &mut Self

Source§

fn tracking_wider(&mut self) -> &mut Self

Source§

fn tracking_widest(&mut self) -> &mut Self

Source§

impl LineHeightUtilities for ClassBuilder

Source§

fn leading(&mut self, height: LineHeight) -> &mut Self

Source§

fn leading_none(&mut self) -> &mut Self

Source§

fn leading_tight(&mut self) -> &mut Self

Source§

fn leading_snug(&mut self) -> &mut Self

Source§

fn leading_normal(&mut self) -> &mut Self

Source§

fn leading_relaxed(&mut self) -> &mut Self

Source§

fn leading_loose(&mut self) -> &mut Self

Source§

fn leading_3(&mut self) -> &mut Self

Source§

fn leading_4(&mut self) -> &mut Self

Source§

fn leading_5(&mut self) -> &mut Self

Source§

fn leading_6(&mut self) -> &mut Self

Source§

fn leading_7(&mut self) -> &mut Self

Source§

fn leading_8(&mut self) -> &mut Self

Source§

fn leading_9(&mut self) -> &mut Self

Source§

fn leading_10(&mut self) -> &mut Self

Source§

impl LogicalPropertiesConvenience for ClassBuilder

Source§

fn margin_inline_start_4(self) -> Self

Set margin inline start to 4
Source§

fn margin_inline_end_4(self) -> Self

Set margin inline end to 4
Source§

fn padding_inline_start_2(self) -> Self

Set padding inline start to 2
Source§

fn padding_inline_end_2(self) -> Self

Set padding inline end to 2
Source§

fn border_inline_start_1(self) -> Self

Set border inline start to 1
Source§

fn border_inline_end_1(self) -> Self

Set border inline end to 1
Source§

fn padding_inline_start_4(self) -> Self

Set padding inline start to 4
Source§

fn padding_inline_end_4(self) -> Self

Set padding inline end to 4
Source§

fn border_inline_start_2(self) -> Self

Set border inline start to 2
Source§

fn border_inline_end_2(self) -> Self

Set border inline end to 2
Source§

impl LogicalPropertiesUtilities for ClassBuilder

Source§

fn margin_inline_start(self, value: SpacingValue) -> Self

Set margin inline start
Source§

fn margin_inline_end(self, value: SpacingValue) -> Self

Set margin inline end
Source§

fn margin_block_start(self, value: SpacingValue) -> Self

Set margin block start
Source§

fn margin_block_end(self, value: SpacingValue) -> Self

Set margin block end
Source§

fn padding_inline_start(self, value: SpacingValue) -> Self

Set padding inline start
Source§

fn padding_inline_end(self, value: SpacingValue) -> Self

Set padding inline end
Source§

fn padding_block_start(self, value: SpacingValue) -> Self

Set padding block start
Source§

fn padding_block_end(self, value: SpacingValue) -> Self

Set padding block end
Source§

fn border_inline_start(self, value: SpacingValue) -> Self

Set border inline start
Source§

fn border_inline_end(self, value: SpacingValue) -> Self

Set border inline end
Source§

fn border_block_start(self, value: SpacingValue) -> Self

Set border block start
Source§

fn border_block_end(self, value: SpacingValue) -> Self

Set border block end
Source§

fn inset_inline_start(self, value: SpacingValue) -> Self

Set inset inline start
Source§

fn inset_inline_end(self, value: SpacingValue) -> Self

Set inset inline end
Source§

fn inset_block_start(self, value: SpacingValue) -> Self

Set inset block start
Source§

fn inset_block_end(self, value: SpacingValue) -> Self

Set inset block end
Source§

impl MarginUtilities for ClassBuilder

Source§

fn margin(self, value: SpacingValue) -> Self

Add margin to all sides
Source§

fn margin_x(self, value: SpacingValue) -> Self

Add horizontal margin (left and right)
Source§

fn margin_y(self, value: SpacingValue) -> Self

Add vertical margin (top and bottom)
Source§

fn margin_top(self, value: SpacingValue) -> Self

Add top margin
Source§

fn margin_right(self, value: SpacingValue) -> Self

Add right margin
Source§

fn margin_bottom(self, value: SpacingValue) -> Self

Add bottom margin
Source§

fn margin_left(self, value: SpacingValue) -> Self

Add left margin
Source§

fn margin_start(self, value: SpacingValue) -> Self

Add margin to start (left in LTR, right in RTL)
Source§

fn margin_end(self, value: SpacingValue) -> Self

Add margin to end (right in LTR, left in RTL)
Source§

fn margin_negative(self, value: SpacingValue) -> Self

Add negative margin to all sides
Source§

fn margin_x_negative(self, value: SpacingValue) -> Self

Add negative horizontal margin
Source§

fn margin_y_negative(self, value: SpacingValue) -> Self

Add negative vertical margin
Source§

fn margin_top_negative(self, value: SpacingValue) -> Self

Add negative top margin
Source§

fn margin_right_negative(self, value: SpacingValue) -> Self

Add negative right margin
Source§

fn margin_bottom_negative(self, value: SpacingValue) -> Self

Add negative bottom margin
Source§

fn margin_left_negative(self, value: SpacingValue) -> Self

Add negative left margin
Source§

impl MaskUtilities for ClassBuilder

Source§

fn mask_none(self) -> Self

Set mask to none
Source§

fn mask_alpha(self) -> Self

Set mask to alpha
Source§

fn mask_luminance(self) -> Self

Set mask to luminance
Source§

fn mask_repeat_none(self) -> Self

Set mask repeat to none
Source§

fn mask_repeat(self) -> Self

Set mask repeat to default
Source§

fn mask_repeat_x(self) -> Self

Set mask repeat to X
Source§

fn mask_repeat_y(self) -> Self

Set mask repeat to Y
Source§

fn mask_repeat_round(self) -> Self

Set mask repeat to round
Source§

fn mask_repeat_space(self) -> Self

Set mask repeat to space
Source§

fn mask_size_auto(self) -> Self

Set mask size to auto
Source§

fn mask_size_cover(self) -> Self

Set mask size to cover
Source§

fn mask_size_contain(self) -> Self

Set mask size to contain
Source§

fn mask_center(self) -> Self

Set mask position to center
Source§

fn mask_top(self) -> Self

Set mask position to top
Source§

fn mask_bottom(self) -> Self

Set mask position to bottom
Source§

fn mask_left(self) -> Self

Set mask position to left
Source§

fn mask_right(self) -> Self

Set mask position to right
Source§

fn mask_top_left(self) -> Self

Set mask position to top left
Source§

fn mask_top_right(self) -> Self

Set mask position to top right
Source§

fn mask_bottom_left(self) -> Self

Set mask position to bottom left
Source§

fn mask_bottom_right(self) -> Self

Set mask position to bottom right
Source§

fn mask_clip_border(self) -> Self

Set mask clip to border
Source§

fn mask_clip_padding(self) -> Self

Set mask clip to padding
Source§

fn mask_clip_content(self) -> Self

Set mask clip to content
Source§

fn mask_clip_text(self) -> Self

Set mask clip to text
Source§

fn mask_origin_border(self) -> Self

Set mask origin to border
Source§

fn mask_origin_padding(self) -> Self

Set mask origin to padding
Source§

fn mask_origin_content(self) -> Self

Set mask origin to content
Source§

impl MixBlendModeUtilities for ClassBuilder

Source§

fn mix_blend_mode(self, mode: MixBlendMode) -> Self

Source§

impl ModernCssFeaturesUtilities for ClassBuilder

Source§

fn layer_base(self) -> Self

Set cascade layer to base
Source§

fn layer_components(self) -> Self

Set cascade layer to components
Source§

fn layer_utilities(self) -> Self

Set cascade layer to utilities
Source§

fn layer_custom(self, name: &str) -> Self

Set cascade layer with custom name
Source§

fn layer_custom_value(self, layer: CascadeLayer) -> Self

Set cascade layer with custom value
Source§

fn custom_property(self, name: &str, value: &str) -> Self

Set custom property with name and value
Source§

fn custom_property_value(self, property: CustomProperty) -> Self

Set custom property with custom value
Source§

fn container_small(self) -> Self

Set container query to small
Source§

fn container_medium(self) -> Self

Set container query to medium
Source§

fn container_large(self) -> Self

Set container query to large
Source§

fn container_extra_large(self) -> Self

Set container query to extra large
Source§

fn container_custom(self, size: &str) -> Self

Set container query with custom size
Source§

fn container_custom_value(self, query: ModernContainerQuery) -> Self

Set container query with custom value
Source§

impl MotionVariantUtilities for ClassBuilder

Source§

fn motion_reduce(self) -> Self

Add motion reduce variant
Source§

fn motion_safe(self) -> Self

Add motion safe variant
Source§

impl ObjectFitUtilities for ClassBuilder

Source§

fn object_fit(self, object_fit: ObjectFit) -> Self

Source§

impl ObjectPositionUtilities for ClassBuilder

Source§

fn object_position(self, object_position: ObjectPosition) -> Self

Source§

impl OpacityUtilities for ClassBuilder

Source§

fn opacity(self, opacity: Opacity) -> Self

Source§

impl OrderUtilities for ClassBuilder

Source§

fn order(self, order: Order) -> Self

Source§

impl OutlineUtilities for ClassBuilder

Source§

fn outline_width(self, width: OutlineWidth) -> Self

Source§

fn outline_style(self, style: OutlineStyle) -> Self

Source§

fn outline_offset(self, offset: OutlineOffset) -> Self

Source§

impl OverflowUtilities for ClassBuilder

Source§

fn overflow(self, overflow: Overflow) -> Self

Source§

impl OverscrollBehaviorUtilities for ClassBuilder

Source§

fn overscroll_behavior(self, overscroll: OverscrollBehavior) -> Self

Source§

impl PaddingUtilities for ClassBuilder

Source§

fn padding(self, value: SpacingValue) -> Self

Add padding to all sides
Source§

fn padding_x(self, value: SpacingValue) -> Self

Add horizontal padding (left and right)
Source§

fn padding_y(self, value: SpacingValue) -> Self

Add vertical padding (top and bottom)
Source§

fn padding_top(self, value: SpacingValue) -> Self

Add top padding
Source§

fn padding_right(self, value: SpacingValue) -> Self

Add right padding
Source§

fn padding_bottom(self, value: SpacingValue) -> Self

Add bottom padding
Source§

fn padding_left(self, value: SpacingValue) -> Self

Add left padding
Source§

fn padding_start(self, value: SpacingValue) -> Self

Add padding to start (left in LTR, right in RTL)
Source§

fn padding_end(self, value: SpacingValue) -> Self

Add padding to end (right in LTR, left in RTL)
Source§

impl PointerVariantUtilities for ClassBuilder

Source§

fn pointer_coarse(self) -> Self

Add pointer coarse variant
Source§

fn pointer_fine(self) -> Self

Add pointer fine variant
Source§

fn any_pointer_coarse(self) -> Self

Add any pointer coarse variant
Source§

fn any_pointer_fine(self) -> Self

Add any pointer fine variant
Source§

impl PositionUtilities for ClassBuilder

Source§

fn position(self, position: Position) -> Self

Source§

impl RingColorUtilities for ClassBuilder

Source§

fn ring_color(self, color: Color) -> Self

Source§

fn ring_color_palette_shade( self, palette: ColorPalette, shade: ColorShade, ) -> Self

Source§

impl RingUtilities for ClassBuilder

Source§

fn ring_width(self, width: RingWidth) -> Self

Source§

fn ring_offset_width(self, width: RingOffsetWidth) -> Self

Source§

impl RotateUtilities for ClassBuilder

Source§

fn rotate(self, rotate: Rotate) -> Self

Source§

impl SaturateUtilities for ClassBuilder

Source§

fn saturate(self, saturate: Saturate) -> Self

Source§

impl ScaleUtilities for ClassBuilder

Source§

fn scale(self, scale: Scale) -> Self

Source§

fn scale_x(self, scale: Scale) -> Self

Source§

fn scale_y(self, scale: Scale) -> Self

Source§

impl SepiaUtilities for ClassBuilder

Source§

fn sepia(self, sepia: Sepia) -> Self

Source§

impl SkewUtilities for ClassBuilder

Source§

fn skew_x(self, skew: Skew) -> Self

Source§

fn skew_y(self, skew: Skew) -> Self

Source§

impl SpaceBetweenUtilities for ClassBuilder

Source§

fn space_x(self, value: SpacingValue) -> Self

Add horizontal space between child elements
Source§

fn space_y(self, value: SpacingValue) -> Self

Add vertical space between child elements
Source§

fn space_x_reverse(self) -> Self

Reverse horizontal space between child elements
Source§

fn space_y_reverse(self) -> Self

Reverse vertical space between child elements
Source§

impl SpacingDivideUtilities for ClassBuilder

Source§

fn divide_x(self, value: SpacingValue) -> Self

Add horizontal divider between child elements
Source§

fn divide_y(self, value: SpacingValue) -> Self

Add vertical divider between child elements
Source§

fn divide_x_reverse(self) -> Self

Reverse horizontal divider between child elements
Source§

fn divide_y_reverse(self) -> Self

Reverse vertical divider between child elements
Source§

impl TextAlignUtilities for ClassBuilder

Source§

fn text_align(&mut self, align: TextAlign) -> &mut Self

Source§

fn text_left(&mut self) -> &mut Self

Source§

fn text_center(&mut self) -> &mut Self

Source§

fn text_right(&mut self) -> &mut Self

Source§

fn text_justify(&mut self) -> &mut Self

Source§

fn text_start(&mut self) -> &mut Self

Source§

fn text_end(&mut self) -> &mut Self

Source§

impl TextColorUtilities for ClassBuilder

Source§

fn text_color(self, color: Color) -> Self

Source§

fn text_color_palette_shade( self, palette: ColorPalette, shade: ColorShade, ) -> Self

Source§

impl TextDecorationUtilities for ClassBuilder

Source§

fn text_decoration(&mut self, decoration: TextDecoration) -> &mut Self

Source§

fn underline(&mut self) -> &mut Self

Source§

fn overline(&mut self) -> &mut Self

Source§

fn line_through(&mut self) -> &mut Self

Source§

fn no_underline(&mut self) -> &mut Self

Source§

fn decoration_style(&mut self, style: TextDecorationStyle) -> &mut Self

Source§

fn decoration_solid(&mut self) -> &mut Self

Source§

fn decoration_double(&mut self) -> &mut Self

Source§

fn decoration_dotted(&mut self) -> &mut Self

Source§

fn decoration_dashed(&mut self) -> &mut Self

Source§

fn decoration_wavy(&mut self) -> &mut Self

Source§

fn decoration_thickness( &mut self, thickness: TextDecorationThickness, ) -> &mut Self

Source§

fn decoration_auto(&mut self) -> &mut Self

Source§

fn decoration_from_font(&mut self) -> &mut Self

Source§

fn decoration_0(&mut self) -> &mut Self

Source§

fn decoration_1(&mut self) -> &mut Self

Source§

fn decoration_2(&mut self) -> &mut Self

Source§

fn decoration_4(&mut self) -> &mut Self

Source§

fn decoration_8(&mut self) -> &mut Self

Source§

fn underline_offset(&mut self, offset: TextUnderlineOffset) -> &mut Self

Source§

fn underline_offset_auto(&mut self) -> &mut Self

Source§

fn underline_offset_0(&mut self) -> &mut Self

Source§

fn underline_offset_1(&mut self) -> &mut Self

Source§

fn underline_offset_2(&mut self) -> &mut Self

Source§

fn underline_offset_4(&mut self) -> &mut Self

Source§

fn underline_offset_8(&mut self) -> &mut Self

Source§

impl TextShadowUtilities for ClassBuilder

Source§

fn text_shadow_none(self) -> Self

Set text shadow to none
Source§

fn text_shadow_sm(self) -> Self

Set text shadow to small
Source§

fn text_shadow_md(self) -> Self

Set text shadow to medium
Source§

fn text_shadow(self) -> Self

Set text shadow to default
Source§

fn text_shadow_lg(self) -> Self

Set text shadow to large
Source§

fn text_shadow_xl(self) -> Self

Set text shadow to extra large
Source§

fn text_shadow_2xl(self) -> Self

Set text shadow to 2XL
Source§

fn text_shadow_inner(self) -> Self

Set text shadow to inner
Source§

fn text_shadow_custom(self, shadow: TextShadow) -> Self

Set text shadow with custom value
Source§

impl TextTransformUtilities for ClassBuilder

Source§

fn text_transform(&mut self, transform: TextTransform) -> &mut Self

Source§

fn uppercase(&mut self) -> &mut Self

Source§

fn lowercase(&mut self) -> &mut Self

Source§

fn capitalize(&mut self) -> &mut Self

Source§

fn normal_case(&mut self) -> &mut Self

Source§

fn text_overflow(&mut self, overflow: TextOverflow) -> &mut Self

Source§

fn truncate(&mut self) -> &mut Self

Source§

fn text_clip(&mut self) -> &mut Self

Source§

fn white_space(&mut self, whitespace: WhiteSpace) -> &mut Self

Source§

fn whitespace_normal(&mut self) -> &mut Self

Source§

fn whitespace_nowrap(&mut self) -> &mut Self

Source§

fn whitespace_pre(&mut self) -> &mut Self

Source§

fn whitespace_pre_line(&mut self) -> &mut Self

Source§

fn whitespace_pre_wrap(&mut self) -> &mut Self

Source§

fn whitespace_break_spaces(&mut self) -> &mut Self

Source§

fn word_break(&mut self, word_break: WordBreak) -> &mut Self

Source§

fn break_normal(&mut self) -> &mut Self

Source§

fn break_all(&mut self) -> &mut Self

Source§

fn break_keep(&mut self) -> &mut Self

Source§

fn break_words(&mut self) -> &mut Self

Source§

fn overflow_wrap(&mut self, wrap: OverflowWrap) -> &mut Self

Source§

fn overflow_wrap_normal(&mut self) -> &mut Self

Source§

fn overflow_wrap_break_word(&mut self) -> &mut Self

Source§

fn overflow_wrap_anywhere(&mut self) -> &mut Self

Source§

impl TransformOriginUtilities for ClassBuilder

Source§

fn transform_origin(self, origin: TransformOrigin) -> Self

Source§

impl TransitionDelayUtilities for ClassBuilder

Source§

fn transition_delay(self, delay: TransitionDelay) -> Self

Source§

impl TransitionDurationUtilities for ClassBuilder

Source§

impl TransitionPropertyUtilities for ClassBuilder

Source§

impl TransitionTimingFunctionUtilities for ClassBuilder

Source§

impl TranslateUtilities for ClassBuilder

Source§

fn translate_x(self, translate: Translate) -> Self

Source§

fn translate_y(self, translate: Translate) -> Self

Source§

impl VisibilityUtilities for ClassBuilder

Source§

fn visibility(self, visibility: Visibility) -> Self

Source§

impl WidthUtilities for ClassBuilder

Source§

fn width(self, width: SizingValue) -> Self

Source§

impl ZIndexUtilities for ClassBuilder

Source§

fn z_index(self, z_index: ZIndex) -> Self

Source§

impl TypographyUtilities for ClassBuilder

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