pub trait FsRead: BaseFsRead {
// Provided methods
fn fs_read(&self, path: impl AsRef<Path>) -> Result<Cow<'static, [u8]>> { ... }
fn fs_read_to_string(
&self,
path: impl AsRef<Path>,
) -> Result<Cow<'static, str>> { ... }
fn fs_read_to_string_lossy(
&self,
path: impl AsRef<Path>,
) -> Result<Cow<'static, str>> { ... }
}Provided Methods§
fn fs_read(&self, path: impl AsRef<Path>) -> Result<Cow<'static, [u8]>>
fn fs_read_to_string(&self, path: impl AsRef<Path>) -> Result<Cow<'static, str>>
fn fs_read_to_string_lossy( &self, path: impl AsRef<Path>, ) -> Result<Cow<'static, str>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.