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

Function hash_class_name

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

Source from the content-addressed store, hash-verified

126
127#[inline]
128pub(crate) fn hash_class_name(name: &[u8]) -> u64 {
129 let mut hasher = FxHasher::default();
130 name.hash(&mut hasher);
131 hasher.finish()
132}
133
134/// A collection of HTML attributes.
135#[derive(Debug)]

Callers 2

might_have_classMethod · 0.85
newMethod · 0.85

Calls 1

finishMethod · 0.80

Tested by

no test coverage detected