Movatterモバイル変換


[0]ホーム

URL:


Search

Lib.rs

Filesystem
#path#relative-path#sub#diff#os

pathsub

Subtract one path from another, yielding the subtraction difference rather than relative path

1 unstable release

0.1.1Dec 11, 2023
0.1.0Dec 11, 2023

#1596 inFilesystem

Apache-2.0

6KB
58lines

pathsub

Subtract one path from another, yielding the subtraction difference rather than relative path, unlikepathdiff

Version badgeDownloads badgeLicense badge

Example:

usepathsub::sub_paths;usestd::path::Path;let a=Path::new("foo/bar");let b=Path::new("foo");sub_paths(a, b);// Some("bar")

lib.rs:

pathsub

Subtract one path from another, returns subtraction difference not the relative path

Example:

usepathsub::sub_paths;usestd::path::Path;let a=Path::new("foo/bar");let b=Path::new("foo");sub_paths(a, b);// Some("bar")

Made with <3 by Dervex

No runtime deps


[8]ページ先頭

©2009-2025 Movatter.jp