use std::fs; use std::io; use std::path::{Path, PathBuf};
/// Defines aliases on [`Path`](https://doc.rust-lang.org/std/path/struct.Path.html)for `fs_err` functions. /// /// This trait is sealed and can not be implemented by other crates. // // Because no one else can implement it, we can add methods backwards-compatibly. pubtrait PathExt: crate::Sealed { /// Wrapper for [`crate::metadata`]. fn fs_err_metadata(&self) -> io::Result<fs::Metadata>; /// Wrapper for [`crate::symlink_metadata`]. fn fs_err_symlink_metadata(&self) -> io::Result<fs::Metadata>; /// Wrapper for [`crate::canonicalize`]. fn fs_err_canonicalize(&self) -> io::Result<PathBuf>; /// Wrapper for [`crate::read_link`]. fn fs_err_read_link(&self) -> io::Result<PathBuf>; /// Wrapper for [`crate::read_dir`]. fn fs_err_read_dir(&self) -> io::Result<crate::ReadDir>;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.