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

Method as_text

css-inline/src/html/node.rs:44–49  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

42 }
43 #[inline]
44 pub(crate) fn as_text(&self) -> Option<&str> {
45 match &self.data {
46 NodeData::Text { text } => Some(&**text),
47 _ => None,
48 }
49 }
50}
51
52/// `NodeId` is a unique identifier for each `Node` in the document.

Callers 1

stylesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected