Lines Matching refs:AsRef
47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { in copy()
56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { in create_dir_all()
71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool { in exists()
78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> { in read()
94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> { in remove_file()
102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> { in remove_dir()
126 pub(crate) fn symlink_fail(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_fail()
144 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file()
149 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file()
158 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_dir()
166 pub(crate) fn write(path: impl AsRef<Path>, contents: impl AsRef<[u8]>) -> Result<()> { in write()