discontinuedPackage rust_std has been discontinued and replaced by rust_core.

fileName method

String fileName()

Returns the final component of the Path, if there is one.

Implementation

String fileName() => _windows.basename(string);