MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / file_name

Method file_name

euralios_std/src/path.rs:475–480  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

473 /// ```
474 #[must_use]
475 pub fn file_name(&self) -> Option<&OsStr> {
476 self.components().next_back().and_then(|p| match p {
477 Component::Normal(p) => Some(p),
478 _ => None,
479 })
480 }
481
482 /// Creates an owned [`PathBuf`] with `path` adjoined to `self`.
483 ///

Callers

nothing calls this directly

Calls 2

next_backMethod · 0.80
componentsMethod · 0.80

Tested by

no test coverage detected