Function clippy_utils::source::snippet_opt
source · pub fn snippet_opt<T: LintContext>(cx: &T, span: Span) -> Option<String>
Expand description
Converts a span to a code snippet. Returns None
if not available.
pub fn snippet_opt<T: LintContext>(cx: &T, span: Span) -> Option<String>
Converts a span to a code snippet. Returns None
if not available.