ImageKind

Trait ImageKind 

Source
pub trait ImageKind: ImageKindInternal + Sized {
    // Provided methods
    fn from_builtin(
        builtin: <Self::Handle as ImageHandleKind>::BuiltinType,
    ) -> Self { ... }
    fn from_module_by_name(
        module: &ExecutableModule,
        name: String,
    ) -> Result<Self> { ... }
    fn from_module_by_ordinal(
        module: &ExecutableModule,
        ordinal: u32,
    ) -> Result<Self> { ... }
    fn from_file<A: AsRef<Path>>(path: A) -> Result<Self> { ... }
}
Available on crate feature ui only.

Provided Methods§

Source

fn from_builtin(builtin: <Self::Handle as ImageHandleKind>::BuiltinType) -> Self

Source

fn from_module_by_name(module: &ExecutableModule, name: String) -> Result<Self>

Source

fn from_module_by_ordinal( module: &ExecutableModule, ordinal: u32, ) -> Result<Self>

Source

fn from_file<A: AsRef<Path>>(path: A) -> Result<Self>

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§