pub trait SaveSurface {
// Required methods
fn save<P: AsRef<Path>>(&self, filename: P) -> Result<(), String>;
fn save_rw(&self, dst: &mut RWops<'_>) -> Result<(), String>;
}Expand description
Method extensions to Surface for saving to disk
Required Methods§
fn save<P: AsRef<Path>>(&self, filename: P) -> Result<(), String>
fn save_rw(&self, dst: &mut RWops<'_>) -> Result<(), String>
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.