windows::Win32::AI::MachineLearning::WinML

Trait IWinMLRuntime_Impl

pub trait IWinMLRuntime_Impl: IUnknownImpl {
    // Required methods
    fn LoadModel(&self, path: &PCWSTR) -> Result<IWinMLModel>;
    fn CreateEvaluationContext(
        &self,
        device: Ref<'_, ID3D12Device>,
    ) -> Result<IWinMLEvaluationContext>;
    fn EvaluateModel(
        &self,
        pcontext: Ref<'_, IWinMLEvaluationContext>,
    ) -> Result<()>;
}

Required Methods§

fn LoadModel(&self, path: &PCWSTR) -> Result<IWinMLModel>

fn CreateEvaluationContext( &self, device: Ref<'_, ID3D12Device>, ) -> Result<IWinMLEvaluationContext>

fn EvaluateModel( &self, pcontext: Ref<'_, IWinMLEvaluationContext>, ) -> Result<()>

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§