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

Method new_whitespace

crates/css_lexer/src/token.rs:433–436  ·  view source on GitHub ↗
(style: Whitespace, len: u32)

Source from the content-addressed store, hash-verified

431 /// Creates a [Kind::Whitesapce] token.
432 #[inline]
433 pub(crate) const fn new_whitespace(style: Whitespace, len: u32) -> Self {
434 let flags: u32 = Kind::Whitespace as u32 | ((style.to_bits() as u32) << 5);
435 Self((flags << 24) & KIND_MASK, len)
436 }
437
438 /// Creates a [Kind::Comment] token.
439 #[inline]

Callers

nothing calls this directly

Calls 1

to_bitsMethod · 0.45

Tested by

no test coverage detected