MCPcopy Create free account
hub / github.com/csskit/csskit / whitespace_style

Method whitespace_style

crates/css_lexer/src/token.rs:807–813  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

805 /// If the [Token] is not a [Kind::Whitespace] this will return [Whitespace::none()].
806 #[inline]
807 pub fn whitespace_style(&self) -> Whitespace {
808 if self.kind_bits() == Kind::Whitespace as u8 {
809 Whitespace::from_bits((self.0 >> 29) as u8)
810 } else {
811 Whitespace::none()
812 }
813 }
814
815 /// Returns the [AssociatedWhitespaceRules].
816 ///

Callers 4

fmtMethod · 0.80
fromMethod · 0.80
eqMethod · 0.80
writeMethod · 0.80

Calls 1

kind_bitsMethod · 0.80

Tested by

no test coverage detected