[][src]Struct xaynet::sdk::api::PrimitiveModel

#[repr(C)]pub struct PrimitiveModel {
    pub ptr: *mut c_void,
    pub len: c_ulonglong,
    pub dtype: c_uint,
}

A fat pointer to a cached model of primitive data type which can be accessed from C.

This is returned from new_model() and get_model(). The length len will be small enough such that the respective array fits into memory and the data type dtype will be one of the following:

  • 0: void data type
  • 1: primitive data type f32
  • 2: primitive data type f64
  • 3: primitive data type i32
  • 4: primitive data type i64

Fields

ptr: *mut c_void

A raw mutable pointer to an array of primitive values.

len: c_ulonglong

The length of that array.

dtype: c_uint

The data type of the array's elements.

Trait Implementations

impl Clone for PrimitiveModel[src]

impl Copy for PrimitiveModel[src]

impl Debug for PrimitiveModel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]