MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / might_have_class

Method might_have_class

css-inline/src/html/attributes.rs:49–52  ·  view source on GitHub ↗
(self, name: &[u8])

Source from the content-addressed store, hash-verified

47 /// Otherwise, the element does not have this class.
48 #[inline]
49 fn might_have_class(self, name: &[u8]) -> bool {
50 let hash = hash_class_name(name);
51 self.might_contain_hash(hash)
52 }
53}
54
55const KEY_SIZE: usize = 32;

Callers 1

has_classMethod · 0.80

Calls 2

hash_class_nameFunction · 0.85
might_contain_hashMethod · 0.80

Tested by

no test coverage detected