Enum afarray::Array[][src]

pub enum Array {
    Bool(ArrayExt<bool>),
    C32(ArrayExt<Complex<f32>>),
    C64(ArrayExt<Complex<f64>>),
    F32(ArrayExt<f32>),
    F64(ArrayExt<f64>),
    I16(ArrayExt<i16>),
    I32(ArrayExt<i32>),
    I64(ArrayExt<i64>),
    U8(ArrayExt<u8>),
    U16(ArrayExt<u16>),
    U32(ArrayExt<u32>),
    U64(ArrayExt<u64>),
}
Expand description

A generic one-dimensional array which supports all variants of NumberType.

Variants

Bool(ArrayExt<bool>)

Tuple Fields of Bool

0: ArrayExt<bool>

Tuple Fields of C32

0: ArrayExt<Complex<f32>>

Tuple Fields of C64

0: ArrayExt<Complex<f64>>

Tuple Fields of F32

0: ArrayExt<f32>

Tuple Fields of F64

0: ArrayExt<f64>

Tuple Fields of I16

0: ArrayExt<i16>

Tuple Fields of I32

0: ArrayExt<i32>

Tuple Fields of I64

0: ArrayExt<i64>

Tuple Fields of U8

0: ArrayExt<u8>

Tuple Fields of U16

0: ArrayExt<u16>

Tuple Fields of U32

0: ArrayExt<u32>

Tuple Fields of U64

0: ArrayExt<u64>

Implementations

Cast the values of this array into an ArrayExt<T>.

Concatenate two Arrays.

Construct a new array with the given constant value and length.

The NumberType of this Array.

Cast into an Array of a different NumberType.

Copy the contents of this Array into a new Vec.

Calculate the element-wise absolute value.

Returns true if all elements of this Array are nonzero.

Returns true if any element of this Array is nonzero.

Element-wise logical and.

Element-wise equality comparison.

Element-wise greater-than comparison.

Element-wise greater-or-equal comparison.

Element-wise check for infinite values.

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

Element-wise less-than comparison.

Element-wise less-or-equal comparison.

Element-wise inequality comparison.

Element-wise logical not.

Element-wise logical or.

Calculate the cumulative product of this Array.

Calculate the cumulative sum of this Array.

The number of elements in this Array.

Get the value at the specified index.

Get the values at the specified coordinates.

Return this Array raised to the power of other.

Set the values at the specified coordinates to the corresponding values in other.

Set the value at the specified coordinate to value.

Return a slice of this Array.

Sort this Array in-place.

Split this Array into two new instances at the given pivot.

Element-wise logical xor.

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Creates a value from an iterator. Read more

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

Parse this value using the given Decoder.

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

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Serialize this value into the given encoder.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. Read more

Test if value can be cast into Self.

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

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

Test if self can be cast into T.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.