Trait arrayfire::Convertable [−][src]
pub trait Convertable {
type OutType;
fn convert(&self) -> Array<Self::OutType>
where
Self::OutType: HasAfEnum;
}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.
- f32
- f64
- num::Complex<f32>
- num::Complex<f64>
- bool
- i32
- u32
- u8
- i64
- u64
- i16
- u16
Associated Types
type OutType
Required Methods
fn convert(&self) -> Array<Self::OutType> where
Self::OutType: HasAfEnum,
Self::OutType: HasAfEnum,
Get an Array of implementors type
Implementations on Foreign Types
impl Convertable for Complex<f64>[src]
impl Convertable for Complex<f64>impl Convertable for Complex<f32>[src]
impl Convertable for Complex<f32>impl Convertable for u64[src]
impl Convertable for u64impl Convertable for i64[src]
impl Convertable for i64impl Convertable for f64[src]
impl Convertable for f64impl Convertable for f32[src]
impl Convertable for f32impl Convertable for i32[src]
impl Convertable for i32impl Convertable for u32[src]
impl Convertable for u32impl Convertable for i16[src]
impl Convertable for i16impl Convertable for u16[src]
impl Convertable for u16impl Convertable for u8[src]
impl Convertable for u8impl Convertable for bool[src]
impl Convertable for bool