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

Method get_by_class

css-inline/src/html/document.rs:194–196  ·  view source on GitHub ↗
(&self, class: &LocalName)

Source from the content-addressed store, hash-verified

192 /// Lookup elements by class name.
193 #[inline]
194 pub(crate) fn get_by_class(&self, class: &LocalName) -> &[NodeId] {
195 self.by_class.get(class).map_or(&[], Vec::as_slice)
196 }
197
198 /// Lookup elements by tag name.
199 #[inline]

Callers 1

selectFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected