Type Alias CSSInteger

Source
pub type CSSInteger = i32;
Expand description

A CSS <integer> value.

Trait Implementations§

Source§

impl<'i> Parse<'i> for CSSInteger

Source§

fn parse<'t>( input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i, ParserError<'i>>>

Parse a value of this type using an existing parser.
Source§

fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>

Parse a value from a string. Read more
Source§

impl ToCss for CSSInteger

Source§

fn to_css<W>( &self, dest: &mut Printer<'_, '_, '_, W>, ) -> Result<(), PrinterError>
where W: Write,

Serialize self in CSS syntax, writing to dest.
Source§

fn to_css_string( &self, options: PrinterOptions<'_>, ) -> Result<String, PrinterError>

Serialize self in CSS syntax and return a string. Read more
Source§

impl Zero for CSSInteger

Source§

fn zero() -> Self

Returns the zero value.
Source§

fn is_zero(&self) -> bool

Returns whether the value is zero.