Trait sdl2::image::SaveSurface
source · 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>
Object Safety§
This trait is not object safe.