Method lrs::string::NoNullString::pop_file

Removes the file-part of the string, returning a reference to it.

Syntax

impl<H> NoNullString<H>
    where H: Allocator,
{
    fn pop_file(&mut self) -> &mut NoNullStr
}

Return value

Returns the now removed file-part.

Remarks

This first searches for the last '/' in the string, removes the trailing part up to and including the '/' and returns a reference to the part after the '/'.