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

Method has_sign

crates/css_parse/src/token_macros.rs:552–554  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

550 }
551
552 pub fn has_sign(&self) -> bool {
553 self.0.token().has_sign()
554 }
555
556 pub fn preserve_sign(self) -> Self {
557 if self.has_sign() { Self(self.0.with_sign_required()) } else { self }

Callers 1

preserve_signMethod · 0.45

Calls 1

tokenMethod · 0.45

Tested by

no test coverage detected