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

Method bits_to_str

crates/css_lexer/src/dyn_atom_registry.rs:170–175  ·  view source on GitHub ↗
(&self, bits: u32)

Source from the content-addressed store, hash-verified

168 }
169
170 fn bits_to_str(&self, bits: u32) -> &'static str {
171 if Self::is_dynamic(bits) {
172 return self.lookup(bits).unwrap_or_else(|| T::from_bits(0).to_str());
173 }
174 T::from_bits(bits).to_str()
175 }
176
177 fn bits(&self) -> u32 {
178 self.static_atoms.as_bits()

Callers

nothing calls this directly

Calls 2

lookupMethod · 0.80
to_strMethod · 0.80

Tested by

no test coverage detected