pub trait FileRw {
// Required methods
fn file_id(&self) -> FileId;
fn path(&self) -> &StoragePath;
}Expand description
A file being read or written.
Required Methods§
Sourcefn path(&self) -> &StoragePath
fn path(&self) -> &StoragePath
Returns the file’s path.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".