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

Trait IMLOperatorAttributes_Impl

pub trait IMLOperatorAttributes_Impl: IUnknownImpl {
    // Required methods
    fn GetAttributeElementCount(
        &self,
        name: &PCSTR,
        type: MLOperatorAttributeType,
    ) -> Result<u32>;
    fn GetAttribute(
        &self,
        name: &PCSTR,
        type: MLOperatorAttributeType,
        elementcount: u32,
        elementbytesize: usize,
        value: *mut c_void,
    ) -> Result<()>;
    fn GetStringAttributeElementLength(
        &self,
        name: &PCSTR,
        elementindex: u32,
    ) -> Result<u32>;
    fn GetStringAttributeElement(
        &self,
        name: &PCSTR,
        elementindex: u32,
        attributeelementbytesize: u32,
        attributeelement: PSTR,
    ) -> Result<()>;
}

Required Methods§

fn GetAttributeElementCount( &self, name: &PCSTR, type: MLOperatorAttributeType, ) -> Result<u32>

fn GetAttribute( &self, name: &PCSTR, type: MLOperatorAttributeType, elementcount: u32, elementbytesize: usize, value: *mut c_void, ) -> Result<()>

fn GetStringAttributeElementLength( &self, name: &PCSTR, elementindex: u32, ) -> Result<u32>

fn GetStringAttributeElement( &self, name: &PCSTR, elementindex: u32, attributeelementbytesize: u32, attributeelement: PSTR, ) -> 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§