Trait WriteToFile

Source
pub trait WriteToFile {
    // Required method
    fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>;
}
Expand description

trait version of write_to_file. See also: write_to_file::write_to_file

Required Methods§

Source

fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>

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.

Implementations on Foreign Types§

Source§

impl WriteToFile for &str

impl &str version of trait of write_to_file. See also: write_to_file::write_to_file

Source§

fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>

Source§

impl WriteToFile for &[u8]

impl &u8 version of trait of write_to_file. See also: write_to_file::write_to_file

Source§

fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>

Source§

impl WriteToFile for String

impl String version of trait of write_to_file. See also: write_to_file::write_to_file

Source§

fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>

Source§

impl WriteToFile for Vec<u8>

impl Vec version of trait of write_to_file. See also: write_to_file::write_to_file

Source§

fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>

Implementors§