Trait sdl2::image::LoadSurface
source · pub trait LoadSurface: Sized {
// Required methods
fn from_file<P: AsRef<Path>>(filename: P) -> Result<Self, String>;
fn from_xpm_array(xpm: *const *const i8) -> Result<Self, String>;
}
Expand description
Static method extensions for creating Surfaces
Required Methods§
fn from_file<P: AsRef<Path>>(filename: P) -> Result<Self, String>
fn from_xpm_array(xpm: *const *const i8) -> Result<Self, String>
Object Safety§
This trait is not object safe.