[go: up one dir, main page]

Trait 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>

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<'a> SaveSurface for Surface<'a>