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

Method with_sign_required

crates/css_lexer/src/cursor.rs:94–97  ·  view source on GitHub ↗

Returns a new [Cursor] with the `sign_is_required` flag set on the token. This indicates that the `+` sign should be preserved during minification. Asserts: the token `kind()` is [Kind::Number].

(&self)

Source from the content-addressed store, hash-verified

92 ///
93 /// Asserts: the token `kind()` is [Kind::Number].
94 pub fn with_sign_required(&self) -> Self {
95 debug_assert!(self.1 == Kind::Number);
96 Self::new(self.offset(), self.token().with_sign_required())
97 }
98
99 #[inline]
100 pub fn atom_bits(&self) -> u32 {

Callers

nothing calls this directly

Calls 2

offsetMethod · 0.45
tokenMethod · 0.45

Tested by

no test coverage detected