[][src]Trait arrayfire::Convertable

pub trait Convertable {
    type OutType: HasAfEnum;
    fn convert(&self) -> Array<Self::OutType>;

Type Trait to convert to an Array

Generic functions that overload the binary operations such as add, div, mul, rem, ge etc. are bound by this trait to allow combinations of scalar values and Array objects as parameters to those functions.

Internally, Convertable trait is implemented by following types.

Associated Types

type OutType: HasAfEnum

This type alias always points to Self which is the type of Array returned by the trait method convert.

Loading content...

Required methods

fn convert(&self) -> Array<Self::OutType>

Get an Array of implementors type

Loading content...


impl<T> Convertable for T where
    T: Clone + ConstGenerator<OutType = T>, 

type OutType = T

impl<T: HasAfEnum> Convertable for Array<T>[src]

type OutType = T

Loading content...