ArrayExt

Struct ArrayExt 

Source
pub struct ArrayExt<T: HasAfEnum>(/* private fields */);
Expand description

A wrapper around af::Array which defines common operations.

Implementations§

Source§

impl<T: HasAfEnum + Default> ArrayExt<T>

Source

pub fn constant(value: T, length: usize) -> Self
where T: ConstGenerator<OutType = T>,

Construct a new ArrayExt with the given value and length.

Source

pub fn concatenate(left: &Self, right: &Self) -> Self

Concatenate two instances of ArrayExt<T>.

Source

pub fn exp(&self) -> ArrayExt<T::UnaryOutType>

Raise e to the power of self.

Source

pub fn type_cast<D: HasAfEnum>(&self) -> ArrayExt<D>

Cast the values of this ArrayExt into a destination type D.

Source

pub fn get(&self, index: Indexer<'_>) -> Self

Get the values specified by the given af::Indexer.

Source

pub fn get_value(&self, index: usize) -> T

Get the value at the given index.

Source

pub fn into_inner(self) -> Array<T>

Deconstruct this ArrayExt<T> into its underlying af::Array.

Source

pub fn slice(&self, start: usize, end: usize) -> Self

Return a slice of this ArrayExt.

Panics: if end is out of bounds

Source

pub fn split(&self, at: usize) -> (Self, Self)

Split this ArrayExt<T> into two new instances at the given pivot.

Source§

impl<T: HasAfEnum + RealNumber + Clone + Default> ArrayExt<T>

Source

pub fn is_sorted(&self) -> bool
where T: RealNumber + Clone,

Return true if the elements of this ArrayExt are in sorted order.

Source

pub fn sort(&mut self, ascending: bool)

Sort this ArrayExt.

Source

pub fn sort_index(&self, ascending: bool) -> (ArrayExt<T>, ArrayExt<u32>)

Compute the indices needed to sort this ArrayExt.

Source

pub fn sorted(&self, ascending: bool) -> Self

Return a sorted copy of this ArrayExt.

Source

pub fn unique(&self, sorted: bool) -> Self

Return only the unique values from this ArrayExt.

Pass true for sorted if this ArrayExt is known to be in sorted order.

Source§

impl<T: HasAfEnum + FloatingPoint + Default> ArrayExt<T>

Source

pub fn random_normal(length: usize) -> Self

Construct a new ArrayExt with a random normal distribution.

Source

pub fn random_uniform(length: usize) -> Self

Construct a new ArrayExt with a uniform random distribution.

Source§

impl ArrayExt<bool>

Source

pub fn not(&self) -> Self

Logical not.

Source

pub fn and(&self, other: &Self) -> Self

Logical and.

Source

pub fn or(&self, other: &Self) -> Self

Logical or.

Source

pub fn xor(&self, other: &Self) -> Self

Logical xor.

Source§

impl ArrayExt<Complex<f32>>

Source

pub fn re(&self) -> ArrayExt<f32>

Get the real component of this array.

Source

pub fn im(&self) -> ArrayExt<f32>

Get the imaginary component of this array.

Source§

impl ArrayExt<Complex<f64>>

Source

pub fn re(&self) -> ArrayExt<f64>

Get the real component of this array.

Source

pub fn im(&self) -> ArrayExt<f64>

Get the imaginary component of this array.

Source§

impl ArrayExt<u64>

Source

pub fn range(start: u64, end: u64) -> Self

Construct a new ArrayExt<u64> with elements start..end.

Methods from Deref<Target = Array<T>>§

Source

pub fn get_backend(&self) -> Backend

Returns the backend of the Array

§Return Values

Returns an value of type Backend which indicates which backend was active when Array was created.

Source

pub fn get_device_id(&self) -> i32

Returns the device identifier(integer) on which the Array was created

§Return Values

Return the device id on which Array was created.

Source

pub fn elements(&self) -> usize

Returns the number of elements in the Array

Source

pub fn get_type(&self) -> DType

Returns the Array data type

Source

pub fn dims(&self) -> Dim4

Returns the dimensions of the Array

Source

pub fn strides(&self) -> Dim4

Returns the strides of the Array

Source

pub fn numdims(&self) -> u32

Returns the number of dimensions of the Array

Source

pub fn offset(&self) -> i64

Returns the offset to the pointer from where data begins

Source

pub unsafe fn get(&self) -> *mut c_void

Returns the native FFI handle for Rust object Array

Source

pub fn set(&mut self, handle: *mut c_void)

Set the native FFI handle for Rust object Array

Source

pub fn host<O>(&self, data: &mut [O])
where O: HasAfEnum,

Copies the data from the Array to the mutable slice data

§Examples

Basic case

let a:Vec<u8> = vec![0,1,2,3,4,5,6,7,8];
let b = Array::<u8>::new(&a,Dim4::new(&[3,3,1,1]));
let mut c = vec!(u8::default();b.elements());
b.host(&mut c);
assert_eq!(c,a);

Generic case

fn to_vec<T:HasAfEnum+Default+Clone>(array:&Array<T>) -> Vec<T> {
    let mut vec = vec!(T::default();array.elements());
    array.host(&mut vec);
    return vec;
}

let a = Array::<u8>::new(&[0,1,2,3,4,5,6,7,8],Dim4::new(&[3,3,1,1]));
let b:Vec<u8> = vec![0,1,2,3,4,5,6,7,8];
assert_eq!(to_vec(&a),b);
Source

pub fn eval(&self)

Evaluates any pending lazy expressions that represent the data in the Array object

Source

pub fn copy(&self) -> Array<T>

Makes an copy of the Array

This does a deep copy of the data into a new Array

Source

pub fn is_empty(&self) -> bool

Check if Array is empty

Source

pub fn is_scalar(&self) -> bool

Check if Array is scalar

Source

pub fn is_row(&self) -> bool

Check if Array is a row

Source

pub fn is_column(&self) -> bool

Check if Array is a column

Source

pub fn is_vector(&self) -> bool

Check if Array is a vector

Source

pub fn is_real(&self) -> bool

Check if Array is of real (not complex) type

Source

pub fn is_complex(&self) -> bool

Check if Array is of complex type

Source

pub fn is_double(&self) -> bool

Check if Array’s numerical type is of double precision

Source

pub fn is_single(&self) -> bool

Check if Array’s numerical type is of single precision

Source

pub fn is_half(&self) -> bool

Check if Array’s numerical type is of half precision

Source

pub fn is_integer(&self) -> bool

Check if Array is of integral type

Source

pub fn is_bool(&self) -> bool

Check if Array is of boolean type

Source

pub fn is_realfloating(&self) -> bool

Check if Array is floating point real(not complex) data type

Source

pub fn is_floating(&self) -> bool

Check if Array is floating point type, either real or complex data

Source

pub fn is_linear(&self) -> bool

Check if Array’s memory layout is continuous and one dimensional

Source

pub fn is_sparse(&self) -> bool

Check if Array is a sparse matrix

Source

pub fn is_owner(&self) -> bool

Check if Array’s memory is owned by it and not a view of another Array

Source

pub fn cast<O>(&self) -> Array<O>
where O: HasAfEnum,

Cast the Array data type to target_type

Source

pub fn lock(&self)

Lock the device buffer in the memory manager

Locked buffers are not freed by memory manager until unlock is called.

Source

pub fn unlock(&self)

Unlock the device buffer in the memory manager

This function will give back the control over the device pointer to the memory manager.

Source

pub unsafe fn device_ptr(&self) -> *mut c_void

Get the device pointer and lock the buffer in memory manager

The device pointer is not freed by memory manager until unlock is called.

Source

pub fn get_allocated_bytes(&self) -> usize

Get the size of physical allocated bytes.

This function will return the size of the parent/owner if the current Array object is an indexed Array.

Trait Implementations§

Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Add for &ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Add for ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: HasAfEnum> ArrayInstance for ArrayExt<T>

Source§

type DType = T

Source§

fn af_cast<T: HasAfEnum>(&self) -> Array<T>

Cast this instance into an af::Array with type T.
Source§

fn len(&self) -> usize

How many elements are in this ArrayInstance.
Source§

fn get(&self, index: Indexer<'_>) -> Array<Self::DType>

Get the values specified by the given af::Indexer.
Source§

fn set<T: ArrayInstance<DType = Self::DType>>( &mut self, index: &Indexer<'_>, other: &T, )

Set the values specified by the given af::Indexer to the corresponding values in T.
Source§

fn set_at(&mut self, offset: usize, value: Self::DType)

Set the value at the specified index to value.
Source§

fn to_vec(&self) -> Vec<Self::DType>
where Self::DType: Clone + Default,

Copy the data in this af::Array into a new Vec.
Source§

impl ArrayInstanceAbs for ArrayExt<Complex<f32>>

Source§

type AbsValue = f32

Source§

fn abs(&self) -> ArrayExt<f32>

Calculate the element-wise absolute value.
Source§

impl ArrayInstanceAbs for ArrayExt<Complex<f64>>

Source§

type AbsValue = f64

Source§

fn abs(&self) -> ArrayExt<f64>

Calculate the element-wise absolute value.
Source§

impl ArrayInstanceAbs for ArrayExt<f32>

Source§

type AbsValue = f32

Source§

fn abs(&self) -> ArrayExt<f32>

Calculate the element-wise absolute value.
Source§

impl ArrayInstanceAbs for ArrayExt<f64>

Source§

type AbsValue = f64

Source§

fn abs(&self) -> ArrayExt<f64>

Calculate the element-wise absolute value.
Source§

impl ArrayInstanceAbs for ArrayExt<i16>

Source§

type AbsValue = i16

Source§

fn abs(&self) -> ArrayExt<i16>

Calculate the element-wise absolute value.
Source§

impl ArrayInstanceAbs for ArrayExt<i32>

Source§

type AbsValue = i32

Source§

fn abs(&self) -> ArrayExt<i32>

Calculate the element-wise absolute value.
Source§

impl ArrayInstanceAbs for ArrayExt<i64>

Source§

type AbsValue = i64

Source§

fn abs(&self) -> ArrayExt<i64>

Calculate the element-wise absolute value.
Source§

impl ArrayInstanceAnyAll for ArrayExt<Complex<f32>>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<Complex<f64>>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<bool>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<f32>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<f64>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<i16>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<i32>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<i64>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<u16>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<u32>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<u64>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl ArrayInstanceAnyAll for ArrayExt<u8>

Source§

fn all(&self) -> bool

Returns true if all elements are nonzero.
Source§

fn any(&self) -> bool

Returns true if any element is nonzero.
Source§

impl<T, U> ArrayInstanceCompare<U> for ArrayExt<T>
where T: Clone + HasAfEnum + Convertable<OutType = T>, U: Convertable<OutType = T>, <T as Convertable>::OutType: ImplicitPromote<<U as Convertable>::OutType>, <U as Convertable>::OutType: ImplicitPromote<<T as Convertable>::OutType>,

Source§

fn eq(&self, other: &U) -> ArrayExt<bool>

Element-wise equality.
Source§

fn gt(&self, other: &U) -> ArrayExt<bool>

Element-wise greater-than comparison.
Source§

fn gte(&self, other: &U) -> ArrayExt<bool>

Element-wise greater-or-equal comparison
Source§

fn lt(&self, other: &U) -> ArrayExt<bool>

Element-wise less-than comparison.
Source§

fn lte(&self, other: &U) -> ArrayExt<bool>

Element-wise less-or-equal comparison.
Source§

fn ne(&self, other: &U) -> ArrayExt<bool>

Element-wise inequality.
Source§

impl ArrayInstanceIndex for ArrayExt<Complex<f32>>

Source§

fn argmax(&self) -> (usize, Complex<f32>)

Source§

impl ArrayInstanceIndex for ArrayExt<Complex<f64>>

Source§

fn argmax(&self) -> (usize, Complex<f64>)

Source§

impl ArrayInstanceIndex for ArrayExt<bool>

Source§

fn argmax(&self) -> (usize, bool)

Source§

impl ArrayInstanceIndex for ArrayExt<f32>

Source§

fn argmax(&self) -> (usize, f32)

Source§

impl ArrayInstanceIndex for ArrayExt<f64>

Source§

fn argmax(&self) -> (usize, f64)

Source§

impl ArrayInstanceIndex for ArrayExt<i16>

Source§

fn argmax(&self) -> (usize, i16)

Source§

impl ArrayInstanceIndex for ArrayExt<i32>

Source§

fn argmax(&self) -> (usize, i32)

Source§

impl ArrayInstanceIndex for ArrayExt<i64>

Source§

fn argmax(&self) -> (usize, i64)

Source§

impl ArrayInstanceIndex for ArrayExt<u16>

Source§

fn argmax(&self) -> (usize, u16)

Source§

impl ArrayInstanceIndex for ArrayExt<u32>

Source§

fn argmax(&self) -> (usize, u32)

Source§

impl ArrayInstanceIndex for ArrayExt<u64>

Source§

fn argmax(&self) -> (usize, u64)

Source§

impl ArrayInstanceIndex for ArrayExt<u8>

Source§

fn argmax(&self) -> (usize, u8)

Source§

impl<T, U> ArrayInstanceLog<T, U> for ArrayExt<T>

Source§

fn log( &self, base: &ArrayExt<U>, ) -> <ArrayExt<T::UnaryOutType> as Div<ArrayExt<U::UnaryOutType>>>::Output

Calculate the element-wise logarithm.
Source§

impl ArrayInstanceMinMax<Complex<f32>> for ArrayExt<Complex<f32>>

Source§

fn max(&self) -> Complex<f32>

Find the maximum element.
Source§

fn min(&self) -> Complex<f32>

Find the minimum element.
Source§

impl ArrayInstanceMinMax<Complex<f64>> for ArrayExt<Complex<f64>>

Source§

fn max(&self) -> Complex<f64>

Find the maximum element.
Source§

fn min(&self) -> Complex<f64>

Find the minimum element.
Source§

impl ArrayInstanceMinMax<bool> for ArrayExt<bool>

Source§

fn max(&self) -> bool

Find the maximum element.
Source§

fn min(&self) -> bool

Find the minimum element.
Source§

impl ArrayInstanceMinMax<f32> for ArrayExt<f32>

Source§

fn max(&self) -> f32

Find the maximum element.
Source§

fn min(&self) -> f32

Find the minimum element.
Source§

impl ArrayInstanceMinMax<f64> for ArrayExt<f64>

Source§

fn max(&self) -> f64

Find the maximum element.
Source§

fn min(&self) -> f64

Find the minimum element.
Source§

impl ArrayInstanceMinMax<i16> for ArrayExt<i16>

Source§

fn max(&self) -> i16

Find the maximum element.
Source§

fn min(&self) -> i16

Find the minimum element.
Source§

impl ArrayInstanceMinMax<i32> for ArrayExt<i32>

Source§

fn max(&self) -> i32

Find the maximum element.
Source§

fn min(&self) -> i32

Find the minimum element.
Source§

impl ArrayInstanceMinMax<i64> for ArrayExt<i64>

Source§

fn max(&self) -> i64

Find the maximum element.
Source§

fn min(&self) -> i64

Find the minimum element.
Source§

impl ArrayInstanceMinMax<u16> for ArrayExt<u16>

Source§

fn max(&self) -> u16

Find the maximum element.
Source§

fn min(&self) -> u16

Find the minimum element.
Source§

impl ArrayInstanceMinMax<u32> for ArrayExt<u32>

Source§

fn max(&self) -> u32

Find the maximum element.
Source§

fn min(&self) -> u32

Find the minimum element.
Source§

impl ArrayInstanceMinMax<u64> for ArrayExt<u64>

Source§

fn max(&self) -> u64

Find the maximum element.
Source§

fn min(&self) -> u64

Find the minimum element.
Source§

impl ArrayInstanceMinMax<u8> for ArrayExt<u8>

Source§

fn max(&self) -> u8

Find the maximum element.
Source§

fn min(&self) -> u8

Find the minimum element.
Source§

impl<T> ArrayInstanceNaturalLog<T> for ArrayExt<T>
where T: HasAfEnum,

Source§

fn ln(&self) -> ArrayExt<T::UnaryOutType>

Calculate the element-wise natural logarithm.
Source§

impl<T, U> ArrayInstancePow<U> for ArrayExt<T>

Source§

type Pow = <<T as Convertable>::OutType as ImplicitPromote<<U as Convertable>::OutType>>::Output

Source§

fn pow(&self, other: &U) -> ArrayExt<Self::Pow>

Calculate the element-wise exponentiation.
Source§

impl ArrayInstanceProduct<Complex<f32>> for ArrayExt<Complex<f32>>

Source§

type Product = Complex<f32>

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<Complex<f64>> for ArrayExt<Complex<f64>>

Source§

type Product = Complex<f64>

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<bool> for ArrayExt<bool>

Source§

type Product = <bool as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<f32> for ArrayExt<f32>

Source§

type Product = <f32 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<f64> for ArrayExt<f64>

Source§

type Product = <f64 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<i16> for ArrayExt<i16>

Source§

type Product = <i16 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<i32> for ArrayExt<i32>

Source§

type Product = <i32 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<i64> for ArrayExt<i64>

Source§

type Product = <i64 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<u16> for ArrayExt<u16>

Source§

type Product = <u16 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<u32> for ArrayExt<u32>

Source§

type Product = <u32 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<u64> for ArrayExt<u64>

Source§

type Product = <u64 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl ArrayInstanceProduct<u8> for ArrayExt<u8>

Source§

type Product = <u8 as HasAfEnum>::ProductOutType

Source§

fn product(&self) -> Self::Product

Calculate the cumulative product.
Source§

fn product_dtype() -> NumberType

The NumberType of the product of this array.
Source§

impl<T: HasAfEnum> ArrayInstanceRound for ArrayExt<T>

Source§

type Round = <T as HasAfEnum>::AbsOutType

Source§

fn round(&self) -> ArrayExt<Self::Round>

Round to the nearest integer, element-wise.
Source§

impl ArrayInstanceSum<Complex<f32>> for ArrayExt<Complex<f32>>

Source§

type Sum = Complex<f32>

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<Complex<f64>> for ArrayExt<Complex<f64>>

Source§

type Sum = Complex<f64>

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<bool> for ArrayExt<bool>

Source§

type Sum = <bool as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<f32> for ArrayExt<f32>

Source§

type Sum = <f32 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<f64> for ArrayExt<f64>

Source§

type Sum = <f64 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<i16> for ArrayExt<i16>

Source§

type Sum = <i16 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<i32> for ArrayExt<i32>

Source§

type Sum = <i32 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<i64> for ArrayExt<i64>

Source§

type Sum = <i64 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<u16> for ArrayExt<u16>

Source§

type Sum = <u16 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<u32> for ArrayExt<u32>

Source§

type Sum = <u32 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<u64> for ArrayExt<u64>

Source§

type Sum = <u64 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl ArrayInstanceSum<u8> for ArrayExt<u8>

Source§

type Sum = <u8 as HasAfEnum>::AggregateOutType

Source§

fn sum(&self) -> Self::Sum

Calculate the cumulative sum.
Source§

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.
Source§

impl<T: HasAfEnum + Default> ArrayInstanceTrig<T> for ArrayExt<T>

Source§

impl<T: HasAfEnum + ImplicitPromote<T>> ArrayInstanceUnreal for ArrayExt<T>

Source§

fn is_infinite(&self) -> ArrayExt<bool>

Element-wise check for infinite values.
Source§

fn is_nan(&self) -> ArrayExt<bool>

Element-wise check for non-numeric (NaN) values.
Source§

impl AsType<ArrayExt<Complex<f32>>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<Complex<f32>>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<Complex<f32>>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<Complex<f32>>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<Complex<f64>>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<Complex<f64>>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<Complex<f64>>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<Complex<f64>>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<bool>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<bool>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<bool>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<bool>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<f32>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<f32>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<f32>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<f32>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<f64>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<f64>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<f64>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<f64>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<i16>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<i16>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<i16>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<i16>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<i32>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<i32>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<i32>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<i32>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<i64>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<i64>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<i64>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<i64>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<u16>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<u16>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<u16>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<u16>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<u32>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<u32>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<u32>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<u32>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<u64>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<u64>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<u64>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<u64>>

Convert this instance into an instance of T if possible.
Source§

impl AsType<ArrayExt<u8>> for Array

Source§

fn as_type(&self) -> Option<&ArrayExt<u8>>

Borrow this instance as an instance of T if possible.
Source§

fn as_type_mut(&mut self) -> Option<&mut ArrayExt<u8>>

Borrow this instance mutably as an instance of T if possible.
Source§

fn into_type(self) -> Option<ArrayExt<u8>>

Convert this instance into an instance of T if possible.
Source§

impl<T: HasAfEnum> CastFrom<Array> for ArrayExt<T>

Source§

fn cast_from(array: Array) -> ArrayExt<T>

Cast an instance of T into an instance of Self.
Source§

impl<T: Clone + HasAfEnum> Clone for ArrayExt<T>

Source§

fn clone(&self) -> ArrayExt<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: HasAfEnum + Display + Default + Clone> Debug for ArrayExt<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: HasAfEnum> Deref for ArrayExt<T>

Source§

type Target = Array<T>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T: HasAfEnum> DerefMut for ArrayExt<T>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'de, T: HasAfEnum + Deserialize<'de> + 'de> Deserialize<'de> for ArrayExt<T>
where ArrayExt<T>: From<Vec<T>>,

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<T: HasAfEnum + Display + Default + Clone> Display for ArrayExt<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Div for &ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Div for ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> DivAssign for ArrayExt<T>

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl<T: HasAfEnum> From<&[T]> for ArrayExt<T>

Source§

fn from(values: &[T]) -> ArrayExt<T>

Converts to this type from the input type.
Source§

impl From<(ArrayExt<f32>, ArrayExt<f32>)> for ArrayExt<Complex<f32>>

Source§

fn from(elements: (ArrayExt<f32>, ArrayExt<f32>)) -> Self

Converts to this type from the input type.
Source§

impl From<(ArrayExt<f64>, ArrayExt<f64>)> for ArrayExt<Complex<f64>>

Source§

fn from(elements: (ArrayExt<f64>, ArrayExt<f64>)) -> Self

Converts to this type from the input type.
Source§

impl<T: HasAfEnum> From<Array<T>> for ArrayExt<T>

Source§

fn from(array: Array<T>) -> ArrayExt<T>

Converts to this type from the input type.
Source§

impl From<ArrayExt<Complex<f32>>> for Array

Source§

fn from(t: ArrayExt<Complex<f32>>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<Complex<f64>>> for Array

Source§

fn from(t: ArrayExt<Complex<f64>>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<bool>> for Array

Source§

fn from(t: ArrayExt<bool>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<f32>> for Array

Source§

fn from(t: ArrayExt<f32>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<f64>> for Array

Source§

fn from(t: ArrayExt<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<i16>> for Array

Source§

fn from(t: ArrayExt<i16>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<i32>> for Array

Source§

fn from(t: ArrayExt<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<i64>> for Array

Source§

fn from(t: ArrayExt<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<u16>> for Array

Source§

fn from(t: ArrayExt<u16>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<u32>> for Array

Source§

fn from(t: ArrayExt<u32>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<u64>> for Array

Source§

fn from(t: ArrayExt<u64>) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayExt<u8>> for Array

Source§

fn from(t: ArrayExt<u8>) -> Self

Converts to this type from the input type.
Source§

impl<T: HasAfEnum> From<Vec<T>> for ArrayExt<T>

Source§

fn from(values: Vec<T>) -> ArrayExt<T>

Converts to this type from the input type.
Source§

impl<T: HasAfEnum> FromIterator<T> for ArrayExt<T>

Source§

fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl FromStream for ArrayExt<bool>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<f32>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<f64>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<i16>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<i32>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<i64>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<u16>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<u32>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<u64>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl FromStream for ArrayExt<u8>

Source§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
Source§

fn from_stream<'life0, 'async_trait, D>( __arg0: (), decoder: &'life0 mut D, ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where D: 'async_trait + Decoder, Self: 'async_trait, 'life0: 'async_trait,

Parse this value using the given Decoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<bool>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<f32>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<f64>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<i16>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<i32>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<i64>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<u16>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<u32>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<u64>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<'en> IntoStream<'en> for ArrayExt<u8>

Source§

fn into_stream<E: Encoder<'en>>(self, encoder: E) -> Result<E::Ok, E::Error>

Take ownership of this value and serialize it into the given encoder.
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Mul for &ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Mul for ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Rem for &ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the % operator.
Source§

fn rem(self, other: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Rem for ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the % operator.
Source§

fn rem(self, other: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl<T: HasAfEnum + Clone + Default + Serialize> Serialize for ArrayExt<T>

Source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Sub for &ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> Sub for ArrayExt<T>

Source§

type Output = ArrayExt<<<T as Convertable>::OutType as ImplicitPromote<<T as Convertable>::OutType>>::Output>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: HasAfEnum + ImplicitPromote<T> + Convertable<OutType = T>> SubAssign for ArrayExt<T>

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl<'en> ToStream<'en> for ArrayExt<bool>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<f32>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<f64>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<i16>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<i32>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<i64>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<u16>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<u32>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<u64>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.
Source§

impl<'en> ToStream<'en> for ArrayExt<u8>

Source§

fn to_stream<E: Encoder<'en>>(&'en self, encoder: E) -> Result<E::Ok, E::Error>

Serialize this value into the given encoder.

Auto Trait Implementations§

§

impl<T> Freeze for ArrayExt<T>

§

impl<T> RefUnwindSafe for ArrayExt<T>
where T: RefUnwindSafe,

§

impl<T> Send for ArrayExt<T>

§

impl<T> Sync for ArrayExt<T>

§

impl<T> Unpin for ArrayExt<T>
where T: Unpin,

§

impl<T> UnwindSafe for ArrayExt<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<F, T> CastFrom<F> for T
where T: From<F>,

Source§

fn cast_from(f: F) -> T

Cast an instance of T into an instance of Self.
Source§

impl<T, F> CastInto<F> for T
where F: CastFrom<T>,

Source§

fn cast_into(self) -> F

Cast an instance of Self into an instance of T.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F> Match for F

Source§

fn matches<T>(&self) -> bool
where T: TryCastFrom<Self>,

Returns true if self can be cast into the target type T.
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<F, T> TryCastFrom<F> for T
where T: CastFrom<F>,

Source§

fn can_cast_from(_: &F) -> bool

Test if value can be cast into Self.
Source§

fn opt_cast_from(f: F) -> Option<T>

Returns Some(Self) if the source value can be cast into Self, otherwise None.
Source§

fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err>
where OnErr: FnOnce(&T) -> Err,

Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.
Source§

impl<F, T> TryCastInto<T> for F
where T: TryCastFrom<F>,

Source§

fn can_cast_into(&self) -> bool

Test if self can be cast into T.
Source§

fn opt_cast_into(self) -> Option<T>

Returns Some(T) if self can be cast into T, otherwise None.
Source§

fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>
where OnErr: FnOnce(&Self) -> Err,

Returns Ok(T) if self can be cast into T, otherwise calls on_err.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,