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

Method atom_from_bits

crates/css_lexer/src/dyn_atom_registry.rs:92–94  ·  view source on GitHub ↗

Converts raw bits to a typed atom.

(&self, bits: u32)

Source from the content-addressed store, hash-verified

90
91 /// Converts raw bits to a typed atom.
92 pub fn atom_from_bits(&self, bits: u32) -> Atom<T> {
93 Atom::new(bits)
94 }
95
96 /// Converts an atom back to its string representation. Returns `None` for invalid atoms.
97 pub fn atom_to_str(&self, atom: Atom<T>) -> Option<&'static str> {

Callers 4

test_atom_from_bitsFunction · 0.80
extract_rule_dataMethod · 0.80
newMethod · 0.80
evaluate_if_featureMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_atom_from_bitsFunction · 0.64