Struct Style

Source
pub struct Style(/* private fields */);
Expand description

A convenience wrapper around Props that provides auto-completion for style-related properties.

§Example

Style::new()
  .display("grid")
  .grid("1fr 1fr / 1fr 1fr")

Implementations§

Source§

impl Style

Source

pub fn new() -> Self

Creates a new, empty object.

Source

pub fn insert(self, key: &str, value: &JsValue) -> Self

Equivalent to props[key] = value;.

Source§

impl Style

Source

pub fn accent_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn align_content(self, value: impl Into<JsValue>) -> Self

Source

pub fn align_items(self, value: impl Into<JsValue>) -> Self

Source

pub fn align_self(self, value: impl Into<JsValue>) -> Self

Source

pub fn align_tracks(self, value: impl Into<JsValue>) -> Self

Source

pub fn all(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_delay(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_direction(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_duration(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_fill_mode(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_iteration_count(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_name(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_play_state(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_timeline(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation_timing_function(self, value: impl Into<JsValue>) -> Self

Source

pub fn animation(self, value: impl Into<JsValue>) -> Self

Source

pub fn appearance(self, value: impl Into<JsValue>) -> Self

Source

pub fn aspect_ratio(self, value: impl Into<JsValue>) -> Self

Source

pub fn backdrop_filter(self, value: impl Into<JsValue>) -> Self

Source

pub fn backface_visibility(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_attachment(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_blend_mode(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_clip(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_image(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_origin(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_position_x(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_position_y(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_repeat(self, value: impl Into<JsValue>) -> Self

Source

pub fn background_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn background(self, value: impl Into<JsValue>) -> Self

Source

pub fn block_overflow(self, value: impl Into<JsValue>) -> Self

Source

pub fn block_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_end_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_end_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_end_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_start_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_start_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_start_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_bottom_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_bottom_left_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_bottom_right_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_bottom_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_bottom_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_bottom(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_collapse(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_end_end_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_end_start_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_image_outset(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_image_repeat(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_image_slice(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_image_source(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_image_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_image(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_end_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_end_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_end_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_start_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_start_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_start_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_left_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_left_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_left_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_left(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_right_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_right_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_right_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_right(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_spacing(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_start_end_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_start_start_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_top_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_top_left_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_top_right_radius(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_top_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_top_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_top(self, value: impl Into<JsValue>) -> Self

Source

pub fn border_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn border(self, value: impl Into<JsValue>) -> Self

Source

pub fn bottom(self, value: impl Into<JsValue>) -> Self

Source

pub fn box_decoration_break(self, value: impl Into<JsValue>) -> Self

Source

pub fn box_shadow(self, value: impl Into<JsValue>) -> Self

Source

pub fn box_sizing(self, value: impl Into<JsValue>) -> Self

Source

pub fn break_after(self, value: impl Into<JsValue>) -> Self

Source

pub fn break_before(self, value: impl Into<JsValue>) -> Self

Source

pub fn break_inside(self, value: impl Into<JsValue>) -> Self

Source

pub fn caption_side(self, value: impl Into<JsValue>) -> Self

Source

pub fn caret_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn clear(self, value: impl Into<JsValue>) -> Self

Source

pub fn clip_path(self, value: impl Into<JsValue>) -> Self

Source

pub fn color_adjust(self, value: impl Into<JsValue>) -> Self

Source

pub fn color_scheme(self, value: impl Into<JsValue>) -> Self

Source

pub fn color(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_count(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_fill(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_gap(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_rule_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_rule_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_rule_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_rule(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_span(self, value: impl Into<JsValue>) -> Self

Source

pub fn column_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn columns(self, value: impl Into<JsValue>) -> Self

Source

pub fn contain(self, value: impl Into<JsValue>) -> Self

Source

pub fn content_visibility(self, value: impl Into<JsValue>) -> Self

Source

pub fn content(self, value: impl Into<JsValue>) -> Self

Source

pub fn counter_increment(self, value: impl Into<JsValue>) -> Self

Source

pub fn counter_reset(self, value: impl Into<JsValue>) -> Self

Source

pub fn counter_set(self, value: impl Into<JsValue>) -> Self

Source

pub fn cursor(self, value: impl Into<JsValue>) -> Self

Source

pub fn direction(self, value: impl Into<JsValue>) -> Self

Source

pub fn display(self, value: impl Into<JsValue>) -> Self

Source

pub fn empty_cells(self, value: impl Into<JsValue>) -> Self

Source

pub fn filter(self, value: impl Into<JsValue>) -> Self

Source

pub fn flex_basis(self, value: impl Into<JsValue>) -> Self

Source

pub fn flex_direction(self, value: impl Into<JsValue>) -> Self

Source

pub fn flex_flow(self, value: impl Into<JsValue>) -> Self

Source

pub fn flex_grow(self, value: impl Into<JsValue>) -> Self

Source

pub fn flex_shrink(self, value: impl Into<JsValue>) -> Self

Source

pub fn flex_wrap(self, value: impl Into<JsValue>) -> Self

Source

pub fn flex(self, value: impl Into<JsValue>) -> Self

Source

pub fn float(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_family(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_feature_settings(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_kerning(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_language_override(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_optical_sizing(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_size_adjust(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_smooth(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_stretch(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_synthesis(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variant_alternates(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variant_caps(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variant_east_asian(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variant_ligatures(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variant_numeric(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variant_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variant(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_variation_settings(self, value: impl Into<JsValue>) -> Self

Source

pub fn font_weight(self, value: impl Into<JsValue>) -> Self

Source

pub fn font(self, value: impl Into<JsValue>) -> Self

Source

pub fn forced_color_adjust(self, value: impl Into<JsValue>) -> Self

Source

pub fn gap(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_area(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_auto_columns(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_auto_flow(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_auto_rows(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_column_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_column_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_column(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_row_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_row_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_row(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_template_areas(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_template_columns(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_template_rows(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid_template(self, value: impl Into<JsValue>) -> Self

Source

pub fn grid(self, value: impl Into<JsValue>) -> Self

Source

pub fn hanging_punctuation(self, value: impl Into<JsValue>) -> Self

Source

pub fn height(self, value: impl Into<JsValue>) -> Self

Source

pub fn hyphenate_character(self, value: impl Into<JsValue>) -> Self

Source

pub fn hyphens(self, value: impl Into<JsValue>) -> Self

Source

pub fn image_orientation(self, value: impl Into<JsValue>) -> Self

Source

pub fn image_rendering(self, value: impl Into<JsValue>) -> Self

Source

pub fn image_resolution(self, value: impl Into<JsValue>) -> Self

Source

pub fn initial_letter(self, value: impl Into<JsValue>) -> Self

Source

pub fn inline_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn input_security(self, value: impl Into<JsValue>) -> Self

Source

pub fn inset_block_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn inset_block_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn inset_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn inset_inline_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn inset_inline_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn inset_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn inset(self, value: impl Into<JsValue>) -> Self

Source

pub fn isolation(self, value: impl Into<JsValue>) -> Self

Source

pub fn justify_content(self, value: impl Into<JsValue>) -> Self

Source

pub fn justify_items(self, value: impl Into<JsValue>) -> Self

Source

pub fn justify_self(self, value: impl Into<JsValue>) -> Self

Source

pub fn justify_tracks(self, value: impl Into<JsValue>) -> Self

Source

pub fn left(self, value: impl Into<JsValue>) -> Self

Source

pub fn letter_spacing(self, value: impl Into<JsValue>) -> Self

Source

pub fn line_break(self, value: impl Into<JsValue>) -> Self

Source

pub fn line_clamp(self, value: impl Into<JsValue>) -> Self

Source

pub fn line_height_step(self, value: impl Into<JsValue>) -> Self

Source

pub fn line_height(self, value: impl Into<JsValue>) -> Self

Source

pub fn list_style_image(self, value: impl Into<JsValue>) -> Self

Source

pub fn list_style_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn list_style_type(self, value: impl Into<JsValue>) -> Self

Source

pub fn list_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_block_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_block_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_bottom(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_inline_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_inline_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_left(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_right(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin_top(self, value: impl Into<JsValue>) -> Self

Source

pub fn margin(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_border_mode(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_border_outset(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_border_repeat(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_border_slice(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_border_source(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_border_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_border(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_clip(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_composite(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_image(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_mode(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_origin(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_repeat(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask_type(self, value: impl Into<JsValue>) -> Self

Source

pub fn mask(self, value: impl Into<JsValue>) -> Self

Source

pub fn math_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn max_block_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn max_height(self, value: impl Into<JsValue>) -> Self

Source

pub fn max_inline_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn max_lines(self, value: impl Into<JsValue>) -> Self

Source

pub fn max_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn min_block_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn min_height(self, value: impl Into<JsValue>) -> Self

Source

pub fn min_inline_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn min_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn mix_blend_mode(self, value: impl Into<JsValue>) -> Self

Source

pub fn motion_distance(self, value: impl Into<JsValue>) -> Self

Source

pub fn motion_path(self, value: impl Into<JsValue>) -> Self

Source

pub fn motion_rotation(self, value: impl Into<JsValue>) -> Self

Source

pub fn motion(self, value: impl Into<JsValue>) -> Self

Source

pub fn object_fit(self, value: impl Into<JsValue>) -> Self

Source

pub fn object_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn offset_anchor(self, value: impl Into<JsValue>) -> Self

Source

pub fn offset_distance(self, value: impl Into<JsValue>) -> Self

Source

pub fn offset_path(self, value: impl Into<JsValue>) -> Self

Source

pub fn offset_rotate(self, value: impl Into<JsValue>) -> Self

Source

pub fn offset_rotation(self, value: impl Into<JsValue>) -> Self

Source

pub fn offset(self, value: impl Into<JsValue>) -> Self

Source

pub fn opacity(self, value: impl Into<JsValue>) -> Self

Source

pub fn order(self, value: impl Into<JsValue>) -> Self

Source

pub fn orphans(self, value: impl Into<JsValue>) -> Self

Source

pub fn outline_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn outline_offset(self, value: impl Into<JsValue>) -> Self

Source

pub fn outline_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn outline_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn outline(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_anchor(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_clip_box(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_clip_margin(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_wrap(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_x(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow_y(self, value: impl Into<JsValue>) -> Self

Source

pub fn overflow(self, value: impl Into<JsValue>) -> Self

Source

pub fn overscroll_behavior_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn overscroll_behavior_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn overscroll_behavior_x(self, value: impl Into<JsValue>) -> Self

Source

pub fn overscroll_behavior_y(self, value: impl Into<JsValue>) -> Self

Source

pub fn overscroll_behavior(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_block_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_block_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_bottom(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_inline_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_inline_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_left(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_right(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding_top(self, value: impl Into<JsValue>) -> Self

Source

pub fn padding(self, value: impl Into<JsValue>) -> Self

Source

pub fn page_break_after(self, value: impl Into<JsValue>) -> Self

Source

pub fn page_break_before(self, value: impl Into<JsValue>) -> Self

Source

pub fn page_break_inside(self, value: impl Into<JsValue>) -> Self

Source

pub fn paint_order(self, value: impl Into<JsValue>) -> Self

Source

pub fn perspective_origin(self, value: impl Into<JsValue>) -> Self

Source

pub fn perspective(self, value: impl Into<JsValue>) -> Self

Source

pub fn place_content(self, value: impl Into<JsValue>) -> Self

Source

pub fn place_items(self, value: impl Into<JsValue>) -> Self

Source

pub fn place_self(self, value: impl Into<JsValue>) -> Self

Source

pub fn pointer_events(self, value: impl Into<JsValue>) -> Self

Source

pub fn position(self, value: impl Into<JsValue>) -> Self

Source

pub fn print_color_adjust(self, value: impl Into<JsValue>) -> Self

Source

pub fn quotes(self, value: impl Into<JsValue>) -> Self

Source

pub fn resize(self, value: impl Into<JsValue>) -> Self

Source

pub fn right(self, value: impl Into<JsValue>) -> Self

Source

pub fn rotate(self, value: impl Into<JsValue>) -> Self

Source

pub fn row_gap(self, value: impl Into<JsValue>) -> Self

Source

pub fn ruby_align(self, value: impl Into<JsValue>) -> Self

Source

pub fn ruby_merge(self, value: impl Into<JsValue>) -> Self

Source

pub fn ruby_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn scale(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_behavior(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_block_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_block_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_bottom(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_inline_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_inline_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_left(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_right(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin_top(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_margin(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_block_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_block_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_block(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_bottom(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_inline_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_inline_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_inline(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_left(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_right(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding_top(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_padding(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_align(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_margin_bottom(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_margin_left(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_margin_right(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_margin_top(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_margin(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_stop(self, value: impl Into<JsValue>) -> Self

Source

pub fn scroll_snap_type(self, value: impl Into<JsValue>) -> Self

Source

pub fn scrollbar_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn scrollbar_gutter(self, value: impl Into<JsValue>) -> Self

Source

pub fn scrollbar_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn shape_image_threshold(self, value: impl Into<JsValue>) -> Self

Source

pub fn shape_margin(self, value: impl Into<JsValue>) -> Self

Source

pub fn shape_outside(self, value: impl Into<JsValue>) -> Self

Source

pub fn tab_size(self, value: impl Into<JsValue>) -> Self

Source

pub fn table_layout(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_align_last(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_align(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_combine_upright(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration_line(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration_skip_ink(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration_skip(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration_thickness(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_decoration(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_emphasis_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_emphasis_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_emphasis_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_emphasis(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_indent(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_justify(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_orientation(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_overflow(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_rendering(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_shadow(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_size_adjust(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_transform(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_underline_offset(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_underline_position(self, value: impl Into<JsValue>) -> Self

Source

pub fn top(self, value: impl Into<JsValue>) -> Self

Source

pub fn touch_action(self, value: impl Into<JsValue>) -> Self

Source

pub fn transform_box(self, value: impl Into<JsValue>) -> Self

Source

pub fn transform_origin(self, value: impl Into<JsValue>) -> Self

Source

pub fn transform_style(self, value: impl Into<JsValue>) -> Self

Source

pub fn transform(self, value: impl Into<JsValue>) -> Self

Source

pub fn transition_delay(self, value: impl Into<JsValue>) -> Self

Source

pub fn transition_duration(self, value: impl Into<JsValue>) -> Self

Source

pub fn transition_property(self, value: impl Into<JsValue>) -> Self

Source

pub fn transition_timing_function(self, value: impl Into<JsValue>) -> Self

Source

pub fn transition(self, value: impl Into<JsValue>) -> Self

Source

pub fn translate(self, value: impl Into<JsValue>) -> Self

Source

pub fn unicode_bidi(self, value: impl Into<JsValue>) -> Self

Source

pub fn user_select(self, value: impl Into<JsValue>) -> Self

Source

pub fn vertical_align(self, value: impl Into<JsValue>) -> Self

Source

pub fn visibility(self, value: impl Into<JsValue>) -> Self

Source

pub fn white_space(self, value: impl Into<JsValue>) -> Self

Source

pub fn widows(self, value: impl Into<JsValue>) -> Self

Source

pub fn width(self, value: impl Into<JsValue>) -> Self

Source

pub fn will_change(self, value: impl Into<JsValue>) -> Self

Source

pub fn word_break(self, value: impl Into<JsValue>) -> Self

Source

pub fn word_spacing(self, value: impl Into<JsValue>) -> Self

Source

pub fn word_wrap(self, value: impl Into<JsValue>) -> Self

Source

pub fn writing_mode(self, value: impl Into<JsValue>) -> Self

Source

pub fn z_index(self, value: impl Into<JsValue>) -> Self

Source

pub fn zoom(self, value: impl Into<JsValue>) -> Self

Source

pub fn alignment_baseline(self, value: impl Into<JsValue>) -> Self

Source

pub fn baseline_shift(self, value: impl Into<JsValue>) -> Self

Source

pub fn clip(self, value: impl Into<JsValue>) -> Self

Source

pub fn clip_rule(self, value: impl Into<JsValue>) -> Self

Source

pub fn color_interpolation(self, value: impl Into<JsValue>) -> Self

Source

pub fn color_rendering(self, value: impl Into<JsValue>) -> Self

Source

pub fn dominant_baseline(self, value: impl Into<JsValue>) -> Self

Source

pub fn fill(self, value: impl Into<JsValue>) -> Self

Source

pub fn fill_opacity(self, value: impl Into<JsValue>) -> Self

Source

pub fn fill_rule(self, value: impl Into<JsValue>) -> Self

Source

pub fn flood_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn flood_opacity(self, value: impl Into<JsValue>) -> Self

Source

pub fn glyph_orientation_vertical(self, value: impl Into<JsValue>) -> Self

Source

pub fn lighting_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn marker(self, value: impl Into<JsValue>) -> Self

Source

pub fn marker_end(self, value: impl Into<JsValue>) -> Self

Source

pub fn marker_mid(self, value: impl Into<JsValue>) -> Self

Source

pub fn marker_start(self, value: impl Into<JsValue>) -> Self

Source

pub fn shape_rendering(self, value: impl Into<JsValue>) -> Self

Source

pub fn stop_color(self, value: impl Into<JsValue>) -> Self

Source

pub fn stop_opacity(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke_dasharray(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke_dashoffset(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke_linecap(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke_linejoin(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke_miterlimit(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke_opacity(self, value: impl Into<JsValue>) -> Self

Source

pub fn stroke_width(self, value: impl Into<JsValue>) -> Self

Source

pub fn text_anchor(self, value: impl Into<JsValue>) -> Self

Source

pub fn vector_effect(self, value: impl Into<JsValue>) -> Self

Trait Implementations§

Source§

impl AsRef<JsValue> for Style

Source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Style

Source§

fn clone(&self) -> Style

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 Style

Source§

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

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

impl Default for Style

Source§

fn default() -> Style

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

impl From<Style> for JsValue

Source§

fn from(style: Style) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Style

§

impl RefUnwindSafe for Style

§

impl !Send for Style

§

impl !Sync for Style

§

impl Unpin for Style

§

impl UnwindSafe for Style

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.