Struct cryiorust::frame::Array[][src]

pub struct Array { /* fields omitted */ }
Expand description

Basic struct for 2D arrays. It just contains dim1 and dim2 for dimensions and data casted to f64.

Implementations

Creates a new empty Array.

Checks whether Array is empty.

Swaps Array’s dimensions.

Clears Array and frees its memory.

Returns internal Vec consuming the Array.

Creates Array with dims and allocates the needed memory for the data.

Sets the length of the Array.

Creates an Array from the given data.

Creates an Array copying a slice of u8 casting the values to f64.

Creates an Array copying a slice of i8 casting the values to f64.

Creates an Array copying a slice of u16 casting the values to f64 taking into account the ByteOrder.

Creates an Array copying a slice of i16 casting the values to f64 taking into account the ByteOrder.

Creates an Array copying a slice of i32 casting the values to f64 taking into account the ByteOrder.

Creates an Array copying a slice of u32 casting the values to f64 taking into account the ByteOrder.

Creates an Array copying a slice of u64 casting the values to f64 taking into account the ByteOrder.

Creates an Array copying a slice of i64 casting the values to f64 taking into account the ByteOrder.

Creates an Array copying a slice of f32 casting the values to f64 taking into account the ByteOrder.

Creates an Array copying a slice of f64 casting the values to f64 taking into account the ByteOrder.

Returns length of the Array.

Returns a reference to the Vec in the Array.

Returns a mutable reference to the Vec in the Array.

Returns first dimension of the Array.

Returns second dimension of the Array.

Returns a tuple of the Array dimensions.

Returns the Array capacity.

Pushes value into the array data.

Gets a cell value from the Array.

Sets a cell value of the Array.

Calculates the sum of the Array values.

Gets the minimum value of the Array.

Gets the maximum value of the Array.

Trait Implementations

Performs the += operation. Read more

Returns the “default value” for a type. Read more

Performs the /= operation. Read more

Performs the /= operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) 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 !=.

Performs the -= operation. Read more

Performs the -= operation. Read more

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.

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.