Skip to main content

first_line_of

Function first_line_of 

Source
pub fn first_line_of(node: Node<'_>, source: &[u8]) -> Option<String>
Expand description

The first line of a node’s text, for use as a symbol signature.

Trailing whitespace is trimmed; the body of a multi-line definition is dropped, so the result stays a readable one-line summary.