fn full_extension(path: &Path) -> Option<&str> {
    path.file_name()
        .and_then(|file_name| file_name.to_str())
        .and_then(|str| str.split_once('.'))
        .map(|parts| parts.1)
}
/// Returns everything after the first dot in a path.
///
/// Useful for extensions like `.d.ts` where `path.extension` would return `.ts`.
Returns everything after the first dot in a path.
Returns everything after the first dot in a path .
fn full_extension(path: &Path) -> Option<&str> {
    path.file_name()
        .and_then(|file_name| file_name.to_str())
        .and_then(|str| str.split_once('.'))
        .map(|parts| parts.1)
}
fn full_extension ( path : & Path ) -> Option < & str > { path . file_name ( ) . and_then ( | file_name | file_name . to_str ( ) ) . and_then ( | str | str . split_once ( '.' ) ) . map ( | parts | parts . 1 ) }
Returns everything after the first dot in a path.
Returns everything after the first dot in a path .
path
&Path
path
&Path