Struct Rule

Source
pub struct Rule { /* private fields */ }

Implementations§

Source§

impl Rule

Source

pub fn select(self, selector: impl ToSelector) -> Self

Source

pub fn insert(self, property: impl ToString, value: impl ToString) -> Self

Source

pub fn styles( self, styles: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self

Source§

impl Rule

Source

pub fn align_items(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn background(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn background_color(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn block_size(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_bottom(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_collapse(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_color(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_left_color(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_right_color(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_top_color(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_bottom_color(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_left(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_radius(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_bottom_left_radius(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_bottom_right_radius(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_top_left_radius(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_top_right_radius(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_right(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_spacing(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn border_top(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn box_sizing(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn color(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn display(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn flex(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn flex_direction(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn font_family(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn font_size(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn font_weight(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn height(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn justify_content(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn line_height(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn list_style(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn margin(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn margin_bottom(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn margin_left(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn margin_right(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn margin_top(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn max_width(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn padding(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn padding_bottom(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn padding_left(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn padding_right(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn padding_top(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn scroll_behavior(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn scroll_snap_align(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn scroll_snap_stop(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn scroll_snap_type(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn text_align(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn text_decoration(self, value: impl ToString) -> Self

Source§

impl Rule

Source

pub fn width(self, value: impl ToString) -> Self

Trait Implementations§

Source§

impl Debug for Rule

Source§

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

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

impl Default for Rule

Source§

fn default() -> Rule

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

impl Display for Rule

Source§

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

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

impl PartialEq for Rule

Source§

fn eq(&self, other: &Rule) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Rule

Auto Trait Implementations§

§

impl Freeze for Rule

§

impl RefUnwindSafe for Rule

§

impl Send for Rule

§

impl Sync for Rule

§

impl Unpin for Rule

§

impl UnwindSafe for Rule

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