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