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§

source

fn save<P: AsRef<Path>>(&self, filename: P) -> Result<(), String>

source

fn save_rw(&self, dst: &mut RWops<'_>) -> Result<(), String>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> SaveSurface for Surface<'a>