Skip to main content

source_file_stem

Function source_file_stem 

Source
fn source_file_stem(path: &str) -> Option<String>
Expand description

The stem of a standalone function’s source file: the topic an explicit @rdname names to group the file’s functions on one page (see StandaloneFragment). None for lib.rs / mod.rs, whose stems name no page of their own.

"src/rust/zero_copy_tests.rs" → Some("zero_copy_tests") "lib.rs" → None