Trait LoadSurface
pub trait LoadSurface: Sized {
// Required methods
fn from_file<P>(filename: P) -> Result<Self, String> ⓘ
where P: AsRef<Path>;
fn from_xpm_array(xpm: *const *const i8) -> Result<Self, String> ⓘ;
}
Available on crate feature
dep_sdl2
only.Expand description
Static method extensions for creating Surfaces
Required Methods§
fn from_file<P>(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.