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