Struct windows::Win32::AI::MachineLearning::WinML::IWinMLRuntime
pub struct IWinMLRuntime(/* private fields */);
Implementations§
§impl IWinMLRuntime
impl IWinMLRuntime
pub unsafe fn LoadModel<P0>(&self, path: P0) -> Result<IWinMLModel>where
P0: IntoParam<PCWSTR>,
pub unsafe fn CreateEvaluationContext<P0>(
&self,
device: P0
) -> Result<IWinMLEvaluationContext>where
P0: IntoParam<ID3D12Device>,
pub unsafe fn EvaluateModel<P0>(&self, pcontext: P0) -> Result<()>where
P0: IntoParam<IWinMLEvaluationContext>,
Trait Implementations§
§impl Clone for IWinMLRuntime
impl Clone for IWinMLRuntime
§fn clone(&self) -> IWinMLRuntime
fn clone(&self) -> IWinMLRuntime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IWinMLRuntime
impl Debug for IWinMLRuntime
§impl From<&IWinMLRuntime> for &IUnknown
impl From<&IWinMLRuntime> for &IUnknown
§fn from(value: &IWinMLRuntime) -> Self
fn from(value: &IWinMLRuntime) -> Self
Converts to this type from the input type.
§impl From<IWinMLRuntime> for IUnknown
impl From<IWinMLRuntime> for IUnknown
§fn from(value: IWinMLRuntime) -> Self
fn from(value: IWinMLRuntime) -> Self
Converts to this type from the input type.
§impl Interface for IWinMLRuntime
impl Interface for IWinMLRuntime
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IWinMLRuntime
impl PartialEq for IWinMLRuntime
§fn eq(&self, other: &IWinMLRuntime) -> bool
fn eq(&self, other: &IWinMLRuntime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IWinMLRuntime
impl StructuralPartialEq for IWinMLRuntime
Auto Trait Implementations§
impl RefUnwindSafe for IWinMLRuntime
impl !Send for IWinMLRuntime
impl !Sync for IWinMLRuntime
impl Unpin for IWinMLRuntime
impl UnwindSafe for IWinMLRuntime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more