Trait FsRead

Source
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§

Source

fn fs_read(&self, path: impl AsRef<Path>) -> Result<Cow<'static, [u8]>>

Source

fn fs_read_to_string(&self, path: impl AsRef<Path>) -> Result<Cow<'static, str>>

Source

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.

Implementors§

Source§

impl<T: BaseFsRead> FsRead for T