pub fn file_name(&self) -> Option<&CStr> {
        match self.component.as_bytes() {
            b"/" => None,
            b".." => None,
            b"." => None,
            _ => Some(self.component.as_c_str()),
        }
    }
/// Returns the name of the last component of this path or None
/// if the path is directory (e.g. root dir or parent dir).
/// Doesn't allocate anything on the heap.
Returns the name of the last component of this path or None
if the path is directory .
Doesn't allocate anything on the heap.
Returns the name of the last component of this path or None if the path is directory . Doesn ' t allocate anything on the heap .
pub fn file_name(&self) -> Option<&CStr> {
        match self.component.as_bytes() {
            b"/" => None,
            b".." => None,
            b"." => None,
            _ => Some(self.component.as_c_str()),
        }
    }
pub fn file_name ( & self ) -> Option < & CStr > { match self . component . as_bytes ( ) { b" " => None , b" " => None , b" " => None , _ => Some ( self . component . as_c_str ( ) ) , } }
Returns the name of the last component of this path or None
if the path is directory (e.g.
Returns the name of the last component of this path or None if the path is directory ( e . g .
&self
&self