Struct Array

Source
pub struct Array<T: ArrayElement> { /* private fields */ }
Expand description

Array structure definition

Trait Implementations§

Source§

impl<N: NumericOps> Add<N> for Array<N>

Source§

type Output = Result<Array<N>, ArrayError>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<N: NumericOps> Add for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<N: NumericOps> AddAssign<N> for Array<N>

Source§

fn add_assign(&mut self, other: N)

Performs the += operation. Read more
Source§

impl<N: NumericOps> AddAssign for Array<N>

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl<N: Numeric> ArrayArithmetic<N> for Array<N>

Source§

fn add(&self, value: &Self) -> Result<Self, ArrayError>

Add arguments element-wise Read more
Source§

fn reciprocal(&self) -> Result<Self, ArrayError>

Computes reciprocal of array elements Read more
Source§

fn positive(&self) -> Result<Self, ArrayError>

Computes numerical positive of array elements Equivalent to self.clone() Read more
Source§

fn negative(&self) -> Result<Self, ArrayError>

Computes numerical negative of array elements Read more
Source§

fn multiply(&self, value: &Self) -> Result<Self, ArrayError>

Multiply arguments element-wise Read more
Source§

fn divide(&self, value: &Self) -> Result<Self, ArrayError>

Divide arguments element-wise Read more
Source§

fn true_divide(&self, value: &Self) -> Result<Self, ArrayError>

Divide arguments element-wise alias on divide Read more
Source§

fn floor_divide(&self, value: &Self) -> Result<Self, ArrayError>

Divide arguments element-wise, returning floor value Read more
Source§

fn power(&self, value: &Self) -> Result<Self, ArrayError>

Computes integer power of array elements Read more
Source§

fn float_power(&self, value: &Self) -> Result<Self, ArrayError>

Computes float power of array elements Read more
Source§

fn subtract(&self, value: &Self) -> Result<Self, ArrayError>

Subtract arguments element-wise Read more
Source§

fn mod(&self, value: &Self) -> Result<Self, ArrayError>

Computes remainder of division element-wise alias on remainder Read more
Source§

fn fmod(&self, value: &Self) -> Result<Self, ArrayError>

Computes remainder of division element-wise Read more
Source§

fn modf(&self) -> Result<(Self, Self), ArrayError>

Computes fractional and integral parts of an array, element-wise Read more
Source§

fn remainder(&self, value: &Self) -> Result<Self, ArrayError>

Computes remainder of division element-wise Read more
Source§

fn divmod(&self) -> Result<(Self, Self), ArrayError>

Computes integral and fractional parts of an array, element-wise Read more
Source§

impl<T: ArrayElement> ArrayAxis<T> for Array<T>

Source§

fn apply_along_axis<S: ArrayElement, F>( &self, axis: usize, f: F, ) -> Result<Array<S>, ArrayError>
where F: FnMut(&Self) -> Result<Array<S>, ArrayError>,

Applies given function along an axis Read more
Source§

fn transpose(&self, axes: Option<Vec<isize>>) -> Result<Self, ArrayError>

Returns an array with axes transposed Read more
Source§

fn moveaxis( &self, source: Vec<isize>, destination: Vec<isize>, ) -> Result<Self, ArrayError>

Move axes of an array to new positions Read more
Source§

fn rollaxis( &self, axis: isize, start: Option<isize>, ) -> Result<Self, ArrayError>

Roll the specified axis backwards, until it lies in a given position Read more
Source§

fn swapaxes(&self, axis_1: isize, axis_2: isize) -> Result<Self, ArrayError>

Interchange two axes of an array Read more
Source§

fn expand_dims(&self, axes: Vec<isize>) -> Result<Self, ArrayError>

Expand the shape of an array Read more
Source§

fn squeeze(&self, axes: Option<Vec<isize>>) -> Result<Self, ArrayError>

Remove axes of length one from array Read more
Source§

impl<N: Numeric> ArrayBinary<N> for Array<N>

Source§

fn bitwise_and(&self, other: &Self) -> Result<Self, ArrayError>

Compute the bit-wise AND of two arrays element-wise Read more
Source§

fn bitwise_or(&self, other: &Self) -> Result<Self, ArrayError>

Compute the bit-wise OR of two arrays element-wise Read more
Source§

fn bitwise_xor(&self, other: &Self) -> Result<Self, ArrayError>

Compute the bit-wise XOR of two arrays element-wise Read more
Source§

fn bitwise_not(&self) -> Result<Self, ArrayError>

Compute bit-wise inversion, or bit-wise NOT, element-wise Read more
Source§

fn invert(&self) -> Result<Self, ArrayError>

Compute bit-wise inversion, or bit-wise NOT, element-wise. Alias on bitwise_not Read more
Source§

fn left_shift(&self, other: &Self) -> Result<Self, ArrayError>

Shift the bits of an integer to the left Read more
Source§

fn right_shift(&self, other: &Self) -> Result<Self, ArrayError>

Shift the bits of an integer to the right Read more
Source§

fn binary_repr(num: N) -> String

Return the binary representation of the input number as a string Read more
Source§

impl ArrayBinaryBits for Array<u8>

Source§

fn unpack_bits( &self, axis: Option<isize>, count: Option<isize>, bit_order: Option<impl BitOrderType>, ) -> Result<Array<u8>, ArrayError>

Unpacks elements of a uint8 array into a binary-valued output array Read more
Source§

fn pack_bits( &self, axis: Option<isize>, bit_order: Option<impl BitOrderType>, ) -> Result<Array<u8>, ArrayError>

Packs the elements of a binary-valued array into bits in a uint8 array Read more
Source§

impl<T: ArrayElement> ArrayBroadcast<T> for Array<T>

Source§

fn broadcast(&self, other: &Self) -> Result<Array<Tuple2<T, T>>, ArrayError>

Broadcast an array to a new shape Read more
Source§

fn broadcast_to(&self, shape: Vec<usize>) -> Result<Self, ArrayError>

Broadcast an array to a new shape Read more
Source§

fn broadcast_arrays(arrays: Vec<Self>) -> Result<Vec<Self>, ArrayError>

Broadcast a list of arrays to a common shape Read more
Source§

impl<T: ArrayElement> ArrayCount<T> for Array<T>

Source§

fn count_nonzero( &self, axis: Option<isize>, keepdims: Option<bool>, ) -> Result<Array<usize>, ArrayError>

Sort an array Read more
Source§

impl<T: ArrayElement> ArrayCreate<T> for Array<T>

Source§

fn new(elements: Vec<T>, shape: Vec<usize>) -> Result<Self, ArrayError>

Creates new array Read more
Source§

fn create( elements: Vec<T>, shape: Vec<usize>, ndmin: Option<usize>, ) -> Result<Self, ArrayError>

Creates new array Read more
Source§

fn single(element: T) -> Result<Self, ArrayError>

Creates new array with single element Read more
Source§

fn flat(elements: Vec<T>) -> Result<Self, ArrayError>

Creates new flat array Read more
Source§

fn empty() -> Result<Self, ArrayError>

Creates new empty array Read more
Source§

impl<N: Numeric> ArrayCreateFrom<N> for Array<N>

Source§

fn diag(&self, k: Option<isize>) -> Result<Self, ArrayError>

Extract a diagonal or construct a diagonal array Read more
Source§

fn diagflat(&self, k: Option<isize>) -> Result<Self, ArrayError>

Construct a diagonal array for flattened input Read more
Source§

fn tril(&self, k: Option<isize>) -> Result<Self, ArrayError>

Return a copy of an array with elements above the k-th diagonal zeroed. For arrays with ndim exceeding 2, tril will apply to the final two axes. Read more
Source§

fn triu(&self, k: Option<isize>) -> Result<Self, ArrayError>

Return a copy of an array with elements below the k-th diagonal zeroed. For arrays with ndim exceeding 2, triu will apply to the final two axes. Read more
Source§

fn vander( &self, n: Option<usize>, increasing: Option<bool>, ) -> Result<Self, ArrayError>

Generate a Vandermonde matrix Read more
Source§

impl<N: Numeric> ArrayCreateNumeric<N> for Array<N>

Source§

fn rand(shape: Vec<usize>) -> Result<Self, ArrayError>

Creates new array with random elements from (0 ..= 1) range Read more
Source§

fn eye(n: usize, m: Option<usize>, k: Option<usize>) -> Result<Self, ArrayError>

Creates new 2d array with ones on the diagonal and zeros elsewhere Read more
Source§

fn identity(n: usize) -> Result<Self, ArrayError>

Creates new identity 2d array Read more
Source§

fn zeros(shape: Vec<usize>) -> Result<Self, ArrayError>

Creates new array of zeros Read more
Source§

fn zeros_like(other: &Self) -> Result<Self, ArrayError>

Creates new array of zeros like other array Read more
Source§

fn ones(shape: Vec<usize>) -> Result<Self, ArrayError>

Creates new array of ones Read more
Source§

fn ones_like(other: &Self) -> Result<Self, ArrayError>

Creates new array of ones like other array Read more
Source§

fn full(shape: Vec<usize>, fill_value: N) -> Result<Self, ArrayError>

Creates new array of fill_value Read more
Source§

fn full_like(other: &Self, fill_value: N) -> Result<Self, ArrayError>

Creates new array of fill_value like other array Read more
Source§

fn arange(start: N, stop: N, step: Option<N>) -> Result<Self, ArrayError>

Creates new array from range Read more
Source§

fn linspace( start: N, stop: N, num: Option<usize>, endpoint: Option<bool>, ) -> Result<Self, ArrayError>

Creates new array of numbers evenly spaced over a specified interval Read more
Source§

fn linspace_a( start: &Self, stop: &Self, num: Option<usize>, endpoint: Option<bool>, ) -> Result<Self, ArrayError>

Creates new array of numbers evenly spaced over a specified interval Read more
Source§

fn logspace( start: N, stop: N, num: Option<usize>, endpoint: Option<bool>, base: Option<usize>, ) -> Result<Self, ArrayError>

Creates new array of numbers evenly spaced on a log scale over a specified interval Read more
Source§

fn logspace_a( start: &Self, stop: &Self, num: Option<usize>, endpoint: Option<bool>, base: Option<&Array<usize>>, ) -> Result<Self, ArrayError>

Creates new array of numbers evenly spaced on a log scale over a specified interval Read more
Source§

fn geomspace( start: N, stop: N, num: Option<usize>, endpoint: Option<bool>, ) -> Result<Self, ArrayError>

Creates new array of numbers evenly spaced on a log scale (a geometric progression) over a specified interval Read more
Source§

fn geomspace_a( start: &Self, stop: &Self, num: Option<usize>, endpoint: Option<bool>, ) -> Result<Self, ArrayError>

Creates new array of numbers evenly spaced on a log scale (a geometric progression) over a specified interval Read more
Source§

fn tri(n: usize, m: Option<usize>, k: Option<isize>) -> Result<Self, ArrayError>

Construct an array with ones at and below the given diagonal and zeros elsewhere Read more
Source§

impl<N: Numeric> ArrayExpLog<N> for Array<N>

Source§

fn exp(&self) -> Result<Self, ArrayError>

Computes the exponential of array elements Read more
Source§

fn exp2(&self) -> Result<Self, ArrayError>

Computes 2**element of array elements Read more
Source§

fn exp_m1(&self) -> Result<Self, ArrayError>

Computes exp - 1 of array elements Read more
Source§

fn log(&self) -> Result<Self, ArrayError>

Computes natural logarithm of array elements Read more
Source§

fn log2(&self) -> Result<Self, ArrayError>

Computes logarithm base 2 of array elements Read more
Source§

fn log10(&self) -> Result<Self, ArrayError>

Computes logarithm base 10 of array elements Read more
Source§

fn log_1p(&self) -> Result<Self, ArrayError>

Computes log(1 + x) of array elements Read more
Source§

fn logn(&self, value: &Self) -> Result<Self, ArrayError>

Computes logarithm base n of array elements Read more
Source§

fn log_add_exp(&self, value: &Self) -> Result<Self, ArrayError>

Computes log(exp(x1) + exp(x2)) of array elements Read more
Source§

fn log_add_exp2(&self, value: &Self) -> Result<Self, ArrayError>

Computes log2(2x1 + 2x2) of array elements Read more
Source§

impl<N: Numeric> ArrayExtrema<N> for Array<N>

Source§

fn maximum(&self, other: &Self) -> Result<Self, ArrayError>

Element-wise maximum of array elements Read more
Source§

fn max(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Return the maximum of an array or maximum along an axis Read more
Source§

fn amax(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Return the maximum of an array or maximum along an axis alias on max Read more
Source§

fn fmax(&self, other: &Self) -> Result<Self, ArrayError>

Element-wise maximum of array elements Read more
Source§

fn nanmax(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Return the maximum of an array or maximum along an axis, ignoring NAN Read more
Source§

fn minimum(&self, other: &Self) -> Result<Self, ArrayError>

Element-wise minimum of array elements Read more
Source§

fn min(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Return the minimum of an array or minimum along an axis Read more
Source§

fn amin(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Return the minimum of an array or minimum along an axis alias on min Read more
Source§

fn fmin(&self, other: &Self) -> Result<Self, ArrayError>

Element-wise maximum of array elements Read more
Source§

fn nanmin(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Return the minimum of an array or minimum along an axis, ignoring NAN Read more
Source§

impl<N: Floating> ArrayFloating<N> for Array<N>

Source§

fn signbit(&self) -> Result<Array<bool>, ArrayError>

Returns element-wise True where signbit is set (less than zero) Read more
Source§

fn copysign(&self, other: &Self) -> Result<Self, ArrayError>

Change the sign of x1 to that of x2, element-wise Read more
Source§

fn frexp(&self) -> Result<(Self, Array<i32>), ArrayError>

Decompose the elements of x into man and twos exp Read more
Source§

fn ldexp(&self, other: &Array<i32>) -> Result<Self, ArrayError>

Returns x1 * 2**x2, element-wise. Inverse of frexp Read more
Source§

fn nextafter(&self, other: &Self) -> Result<Self, ArrayError>

Return the next floating-point value after x1 towards x2, element-wise Read more
Source§

fn spacing(&self) -> Result<Self, ArrayError>

Return the distance between x and the nearest adjacent number Read more
Source§

impl<N: Numeric> ArrayHyperbolic<N> for Array<N>

Source§

fn sinh(&self) -> Result<Self, ArrayError>

Compute the hyperbolic sine of array elements Read more
Source§

fn cosh(&self) -> Result<Self, ArrayError>

Compute the hyperbolic cosine of array elements Read more
Source§

fn tanh(&self) -> Result<Self, ArrayError>

Compute the hyperbolic tangent of array elements Read more
Source§

fn asinh(&self) -> Result<Self, ArrayError>

Compute the inverse hyperbolic sine of array elements Read more
Source§

fn acosh(&self) -> Result<Self, ArrayError>

Compute the inverse hyperbolic cosine of array elements Read more
Source§

fn atanh(&self) -> Result<Self, ArrayError>

Compute the inverse hyperbolic tangent of array elements Read more
Source§

impl<T: ArrayElement> ArrayIndexing<T> for Array<T>

Source§

fn index_at(&self, coords: &[usize]) -> Result<usize, ArrayError>

Return an index of element at the given coordinates Read more
Source§

fn index_to_coord(&self, idx: usize) -> Result<Vec<usize>, ArrayError>

Return coordinates at the given index of element Read more
Source§

fn at(&self, coords: &[usize]) -> Result<T, ArrayError>

Return an index of element at the given coordinates Read more
Source§

fn slice(&self, range: Range<usize>) -> Result<Self, ArrayError>

Return a subarray of provided range Read more
Source§

fn indices_at(&self, indices: &[usize]) -> Result<Self, ArrayError>

Return a subarray consisting on values on given indices. Read more
Source§

impl<T: ArrayElement> ArrayIter<T> for Array<T>

Source§

fn for_each<F: FnMut(&T)>(&self, f: F) -> Result<(), ArrayError>

Loop over array elements Read more
Source§

fn for_each_e<F: FnMut(usize, &T)>(&self, f: F) -> Result<(), ArrayError>

Loop over enumerated array elements Read more
Source§

fn filter<F: FnMut(&T) -> bool>(&self, f: F) -> Result<Self, ArrayError>

Filter over array elements Returns a flat filtered array Read more
Source§

fn filter_e<F: FnMut(usize, &T) -> bool>( &self, f: F, ) -> Result<Self, ArrayError>

Filter over enumerated array elements Returns a flat filtered array Read more
Source§

impl<S: ArrayElement, T: ArrayElement> ArrayIterMut<S, T> for Array<T>

Source§

fn map<F: FnMut(&T) -> S>(&self, f: F) -> Result<Array<S>, ArrayError>

Map over array elements Read more
Source§

fn map_e<F: FnMut(usize, &T) -> S>(&self, f: F) -> Result<Array<S>, ArrayError>

Map over enumerated array elements Read more
Source§

fn filter_map<F: FnMut(&T) -> Option<S>>( &self, f: F, ) -> Result<Array<S>, ArrayError>

Filter and map over array elements Returns a flat filtered array Read more
Source§

fn filter_map_e<F: FnMut(usize, &T) -> Option<S>>( &self, f: F, ) -> Result<Array<S>, ArrayError>

Filter and map over enumerated array elements Returns a flat filtered array Read more
Source§

fn fold<F: FnMut(&S, &T) -> S>(&self, init: S, f: F) -> Result<S, ArrayError>

Fold elements of array elements Read more
Source§

fn zip(&self, other: &Array<S>) -> Result<Array<Tuple2<T, S>>, ArrayError>

‘Zips up’ two iterators into a single iterator of pairs Read more
Source§

impl<T: ArrayElement> ArrayJoining<T> for Array<T>

Source§

fn concatenate(arrs: Vec<Self>, axis: Option<usize>) -> Result<Self, ArrayError>

Join a sequence of arrays along an existing axis Read more
Source§

fn stack(arrs: Vec<Self>, axis: Option<usize>) -> Result<Self, ArrayError>

Join a sequence of arrays along a new axis Read more
Source§

fn vstack(arrs: Vec<Self>) -> Result<Self, ArrayError>

Stack arrays in sequence vertically (row wise) Read more
Source§

fn hstack(arrs: Vec<Self>) -> Result<Self, ArrayError>

Stack arrays in sequence horizontally (column wise) Read more
Source§

fn dstack(arrs: Vec<Self>) -> Result<Self, ArrayError>

Stack arrays in sequence depth wise (along third axis) Read more
Source§

fn column_stack(arrs: Vec<Self>) -> Result<Self, ArrayError>

Stack 1d or 2d arrays as columns into a 2d array row_stack is an alias for vstack Read more
Source§

fn row_stack(arrs: Vec<Self>) -> Result<Self, ArrayError>

Stack arrays in sequence vertically (row wise) Read more
Source§

impl<N: NumericOps> ArrayLinalgDecompositions<N> for Array<N>

Source§

fn qr(&self) -> LinalgResult<N>

Compute the qr factorization of a matrix Read more
Source§

impl<N: NumericOps> ArrayLinalgEigen<N> for Array<N>

Source§

fn eigvals(&self) -> Result<Vec<Self>, ArrayError>

Compute the eigenvalues of a square array Read more
Source§

fn eig(&self) -> LinalgResult<N>

Compute the eigenvalues and right eigenvectors of a square array Read more
Source§

impl<N: NumericOps> ArrayLinalgNorms<N> for Array<N>

Source§

fn norm( &self, ord: Option<impl NormOrdType>, axis: Option<Vec<isize>>, keepdims: Option<bool>, ) -> Result<Self, ArrayError>

Calculates matrix or vector norm Read more
Source§

fn det(&self) -> Result<Self, ArrayError>

Compute the determinant of an array Read more
Source§

impl<N: NumericOps> ArrayLinalgProducts<N> for Array<N>

Source§

fn dot(&self, other: &Self) -> Result<Self, ArrayError>

Dot product of two arrays Read more
Source§

fn vdot(&self, other: &Self) -> Result<Self, ArrayError>

Dot product of two vectors. If input is an array, it will be raveled Read more
Source§

fn inner(&self, other: &Self) -> Result<Self, ArrayError>

Inner product of two arrays Read more
Source§

fn outer(&self, other: &Self) -> Result<Self, ArrayError>

Outer product of two arrays Read more
Source§

fn matmul(&self, other: &Self) -> Result<Self, ArrayError>

Matrix product of two arrays Read more
Source§

impl<N: NumericOps> ArrayLinalgSolvingInvertingProducts<N> for Array<N>

Source§

fn solve(&self, other: &Self) -> Result<Self, ArrayError>

Solve a linear matrix equation, or system of linear scalar equations Read more
Source§

impl<T: ArrayElement> ArrayManipulate<T> for Array<T>

Source§

fn insert( &self, indices: &[usize], values: &Self, axis: Option<usize>, ) -> Result<Self, ArrayError>

Insert values along the given axis for the given indices Read more
Source§

fn delete( &self, indices: &[usize], axis: Option<usize>, ) -> Result<Self, ArrayError>

Delete values along the given axis Read more
Source§

fn append(&self, values: &Self, axis: Option<usize>) -> Result<Self, ArrayError>

Append values to the end of an array Read more
Source§

fn reshape(&self, shape: &[usize]) -> Result<Self, ArrayError>

Reshapes an array Read more
Source§

fn resize(&self, shape: &[usize]) -> Result<Self, ArrayError>

Resizes an array, Read more
Source§

fn unique(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Find the unique elements of an array Read more
Source§

fn ravel(&self) -> Result<Self, ArrayError>

Return a contiguous flattened array Read more
Source§

fn atleast(&self, n: usize) -> Result<Self, ArrayError>

Convert array to at least n dimension Read more
Source§

fn trim_zeros(&self) -> Result<Self, ArrayError>

Trim the leading and/or trailing zeros from a 1D array Read more
Source§

fn cycle_take(&self, n: usize) -> Result<Self, ArrayError>

Performs cycle().take(n), returning flattened array Read more
Source§

impl<N: Numeric> ArrayMathMisc<N> for Array<N>

Source§

fn convolve( &self, other: &Self, mode: Option<impl ConvolveModeType>, ) -> Result<Self, ArrayError>

Returns the discrete, linear convolution of two one-dimensional sequences arrays are flattened for computation Read more
Source§

fn clip( &self, a_min: Option<Self>, a_max: Option<Self>, ) -> Result<Self, ArrayError>

Clip (limit) the values in an array Read more
Source§

fn sqrt(&self) -> Result<Self, ArrayError>

Computes square root of array elements Read more
Source§

fn cbrt(&self) -> Result<Self, ArrayError>

Computes cube root of array elements Read more
Source§

fn square(&self) -> Result<Self, ArrayError>

Return the element-wise square of the input Read more
Source§

fn absolute(&self) -> Result<Self, ArrayError>

Computes absolute value of array elements Read more
Source§

fn abs(&self) -> Result<Self, ArrayError>

Computes absolute value of array elements alias on absolute Read more
Source§

fn fabs(&self) -> Result<Self, ArrayError>

Computes absolute value of array elements alias on absolute Read more
Source§

fn sign(&self) -> Result<Array<isize>, ArrayError>

Returns an element-wise indication of the sign of a number Read more
Source§

fn heaviside(&self, other: &Self) -> Result<Self, ArrayError>

Compute the Heaviside step function Read more
Source§

fn nan_to_num(&self) -> Result<Self, ArrayError>

Replace NaN with zero and infinity with large finite numbers Read more
Source§

impl<N: NumericOps> ArrayMathSpecial<N> for Array<N>

Source§

fn i0(&self) -> Result<Self, ArrayError>

Modified Bessel function of the first kind, order 0 Read more
Source§

fn sinc(&self) -> Result<Self, ArrayError>

Return the normalized sinc function Read more
Source§

impl<T: ArrayElement> ArrayMeta<T> for Array<T>

Source§

fn get_elements(&self) -> Result<Vec<T>, ArrayError>

Obtain the vector containing array elements Read more
Source§

fn get_shape(&self) -> Result<Vec<usize>, ArrayError>

Obtain the vector containing array shape Read more
Source§

fn ndim(&self) -> Result<usize, ArrayError>

Count of array dimensions Read more
Source§

fn len(&self) -> Result<usize, ArrayError>

Count of array elements Read more
Source§

fn is_empty(&self) -> Result<bool, ArrayError>

Check if array element count equals zero Read more
Source§

impl<N: Numeric> ArrayRational<N> for Array<N>

Source§

fn lcm(&self, other: &Self) -> Result<Self, ArrayError>

Returns the lowest common multiple of |x1| and |x2| Read more
Source§

fn gcd(&self, other: &Self) -> Result<Self, ArrayError>

Returns the greatest common divisor of |x1| and |x2| Read more
Source§

impl<T: ArrayElement> ArrayReorder<T> for Array<T>

Source§

fn flip(&self, axes: Option<Vec<isize>>) -> Result<Self, ArrayError>

Reverse the order of elements in an array along the given axis Read more
Source§

fn flipud(&self) -> Result<Self, ArrayError>

Reverse the order of elements along axis 0 (up/down) Read more
Source§

fn fliplr(&self) -> Result<Self, ArrayError>

Reverse the order of elements along axis 1 (left/right) Read more
Source§

fn roll( &self, shift: Vec<isize>, axes: Option<Vec<isize>>, ) -> Result<Self, ArrayError>

Roll array elements along a given axis Read more
Source§

fn rot90(&self, k: usize, axes: Vec<isize>) -> Result<Self, ArrayError>

Rotate an array by 90 degrees in the plane specified by axes. Rotation direction is from the first towards the second axis. Read more
Source§

impl<N: Numeric> ArrayRounding<N> for Array<N>

Source§

fn round(&self, decimals: &Array<isize>) -> Result<Self, ArrayError>

Evenly round to the given number of decimals Read more
Source§

fn around(&self, decimals: &Array<isize>) -> Result<Self, ArrayError>

Evenly round to the given number of decimals. alias on round Read more
Source§

fn rint(&self) -> Result<Self, ArrayError>

Round elements of the array to the nearest integer Read more
Source§

fn fix(&self) -> Result<Self, ArrayError>

Round to nearest integer towards zero Read more
Source§

fn trunc(&self) -> Result<Self, ArrayError>

Round to nearest integer towards zero Read more
Source§

fn floor(&self) -> Result<Self, ArrayError>

Return the floor of the input, element-wise Read more
Source§

fn ceil(&self) -> Result<Self, ArrayError>

Return the ceil of the input, element-wise Read more
Source§

impl<T: ArrayElement> ArraySearch<T> for Array<T>

Source§

fn argmax( &self, axis: Option<isize>, keepdims: Option<bool>, ) -> Result<Array<usize>, ArrayError>

Returns the indices of the maximum values along an axis. Read more
Source§

fn argmin( &self, axis: Option<isize>, keepdims: Option<bool>, ) -> Result<Array<usize>, ArrayError>

Returns the indices of the minimum values along an axis. Read more
Source§

impl<T: ArrayElement> ArraySort<T> for Array<T>

Source§

fn sort( &self, axis: Option<isize>, kind: Option<impl SortKindType>, ) -> Result<Self, ArrayError>

Sort an array Read more
Source§

fn argsort( &self, axis: Option<isize>, kind: Option<impl SortKindType>, ) -> Result<Array<usize>, ArrayError>

Returns the indices that would sort an array Read more
Source§

impl<T: ArrayElement> ArraySplit<T> for Array<T>

Source§

fn array_split( &self, parts: usize, axis: Option<usize>, ) -> Result<Vec<Self>, ArrayError>

Split an array into multiple sub-arrays Read more
Source§

fn split( &self, parts: usize, axis: Option<usize>, ) -> Result<Vec<Self>, ArrayError>

Split an array into multiple sub-arrays of equal size Read more
Source§

fn split_axis(&self, axis: usize) -> Result<Vec<Self>, ArrayError>

Split an array into multiple sub-arrays of equal size by axis Read more
Source§

fn hsplit(&self, parts: usize) -> Result<Vec<Self>, ArrayError>

Split an array into multiple sub-arrays horizontally (column-wise) Read more
Source§

fn vsplit(&self, parts: usize) -> Result<Vec<Self>, ArrayError>

Split an array into multiple sub-arrays vertically (row-wise) Read more
Source§

fn dsplit(&self, parts: usize) -> Result<Vec<Self>, ArrayError>

Split an array into multiple sub-arrays along the 3rd axis (depth) Read more
Source§

impl<N: Alphanumeric> ArrayStringCompare<N> for Array<N>

Source§

fn equal(&self, other: &Self) -> Result<Array<bool>, ArrayError>

Return (self == other) element-wise Read more
Source§

fn not_equal(&self, other: &Self) -> Result<Array<bool>, ArrayError>

Return (self != other) element-wise Read more
Source§

fn greater_equal(&self, other: &Self) -> Result<Array<bool>, ArrayError>

Return (self >= other) element-wise Read more
Source§

fn less_equal(&self, other: &Self) -> Result<Array<bool>, ArrayError>

Return (self <= other) element-wise Read more
Source§

fn greater(&self, other: &Self) -> Result<Array<bool>, ArrayError>

Return (self > other) element-wise Read more
Source§

fn less(&self, other: &Self) -> Result<Array<bool>, ArrayError>

Return (self < other) element-wise Read more
Source§

fn compare( &self, other: &Self, cmp_op: impl CompareOpType, ) -> Result<Array<bool>, ArrayError>

Performs element-wise comparison of two string arrays using the comparison operator specified by cmp_op Read more
Source§

impl<N: Alphanumeric> ArrayStringIndexing<N> for Array<N>

Source§

fn str_len(&self) -> Result<Array<usize>, ArrayError>

Return string.len() element-wise Read more
Source§

fn count(&self, sub: &Self) -> Result<Array<usize>, ArrayError>

Returns an array with the number of non-overlapping occurrences of substring sub Read more
Source§

fn starts_with(&self, prefix: &Self) -> Result<Array<bool>, ArrayError>

Checks if string element starts with prefix Read more
Source§

fn ends_with(&self, suffix: &Self) -> Result<Array<bool>, ArrayError>

Checks if string element ends with suffix Read more
Source§

fn find(&self, sub: &Self) -> Result<Array<isize>, ArrayError>

For each element, return the lowest index in the string where substring sub is found Read more
Source§

fn rfind(&self, sub: &Self) -> Result<Array<isize>, ArrayError>

For each element, return the highest index in the string where substring sub is found Read more
Source§

fn index(&self, sub: &Self) -> Result<Array<isize>, ArrayError>

For each element, return the lowest index in the string where substring sub is found; alias on find Read more
Source§

fn rindex(&self, sub: &Self) -> Result<Array<isize>, ArrayError>

For each element, return the highest index in the string where substring sub is found; alias on rfind Read more
Source§

impl<N: Alphanumeric> ArrayStringManipulate<N> for Array<N>

Source§

fn add(&self, other: &Self) -> Result<Self, ArrayError>

Return element-wise string concatenation for two arrays of String Read more
Source§

fn multiply(&self, counts: &Array<usize>) -> Result<Self, ArrayError>

Return (a * i), that is string multiple concatenation, element-wise Read more
Source§

fn capitalize(&self) -> Result<Self, ArrayError>

Capitalizes first character of each element Read more
Source§

fn lower(&self) -> Result<Self, ArrayError>

Turns characters to lower-case Read more
Source§

fn upper(&self) -> Result<Self, ArrayError>

Turns characters to upper-case Read more
Source§

fn swapcase(&self) -> Result<Self, ArrayError>

Swap characters case Read more
Source§

fn center( &self, width: &Array<usize>, fill_char: Option<Array<char>>, ) -> Result<Self, ArrayError>

Centers elements in a string of length of width Read more
Source§

fn join(&self, sep: &Self) -> Result<Self, ArrayError>

Concatenate the strings in the sequence Read more
Source§

fn partition(&self, sep: &Self) -> Result<Array<Tuple3<N, N, N>>, ArrayError>

Partition each element around first occurrence of sep Read more
Source§

fn rpartition(&self, sep: &Self) -> Result<Array<Tuple3<N, N, N>>, ArrayError>

Partition each element around last occurrence of sep Read more
Source§

fn split( &self, sep: Option<Self>, max_split: Option<Array<usize>>, ) -> Result<Array<List<N>>, ArrayError>

Returns a list of the words in the string, using sep as the delimiter string. Read more
Source§

fn rsplit( &self, sep: Option<Self>, max_split: Option<Array<usize>>, ) -> Result<Array<List<N>>, ArrayError>

Returns a list of the words in the string, using sep as the delimiter string. Read more
Source§

fn splitlines( &self, keep_ends: Option<Array<bool>>, ) -> Result<Array<List<N>>, ArrayError>

Returns a list of the words in the string, using line break character as the delimiter string. Read more
Source§

fn replace( &self, old: &Self, new: &Self, count: Option<usize>, ) -> Result<Self, ArrayError>

Replaces all occurrences of with Read more
Source§

fn strip(&self, chars: Option<Self>) -> Result<Self, ArrayError>

Trims leading and trailing characters Read more
Source§

fn lstrip(&self, chars: Option<Self>) -> Result<Self, ArrayError>

Trims leading characters Read more
Source§

fn rstrip(&self, chars: Option<Self>) -> Result<Self, ArrayError>

Trims trailing characters Read more
Source§

fn ljust( &self, width: &Array<usize>, fill_char: Option<Array<char>>, ) -> Result<Self, ArrayError>

Left-justifies elements in a string of length of width Read more
Source§

fn rjust( &self, width: &Array<usize>, fill_char: Option<Array<char>>, ) -> Result<Self, ArrayError>

Right-justifies elements in a string of length of width Read more
Source§

fn zfill(&self, width: usize) -> Result<Self, ArrayError>

Return the numeric string left-filled with zeros Read more
Source§

fn translate(&self, table: Vec<(char, char)>) -> Result<Self, ArrayError>

Remove elements from delete_char vec and translate string remaining characters through table Read more
Source§

impl<N: Alphanumeric> ArrayStringValidate<N> for Array<N>

Source§

fn is_alpha(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are alphabetic and there is at least one character Read more
Source§

fn is_alnum(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are alphanumeric and there is at least one character Read more
Source§

fn is_decimal(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are decimal and there is at least one character Read more
Source§

fn is_numeric(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are numeric and there is at least one character Read more
Source§

fn is_digit(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are digits and there is at least one character Read more
Source§

fn is_space(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are whitespace and there is at least one character Read more
Source§

fn is_lower(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are lowercase and there is at least one character Read more
Source§

fn is_upper(&self) -> Result<Array<bool>, ArrayError>

Check if all characters in the string are uppercase and there is at least one character Read more
Source§

impl<N: NumericOps> ArraySumProdDiff<N> for Array<N>

Source§

fn prod(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Multiplication of array elements Read more
Source§

fn sum(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Sum of array elements Read more
Source§

fn nanprod(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Sum of array elements treating NaN as one Read more
Source§

fn nansum(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Sum of array elements treating NaN as zero Read more
Source§

fn cumprod(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Cumulative product of array elements Read more
Source§

fn cumsum(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Cumulative sum of array elements Read more
Source§

fn nancumprod(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Cumulative product of array elements Read more
Source§

fn nancumsum(&self, axis: Option<isize>) -> Result<Self, ArrayError>

Cumulative sum of array elements Read more
Source§

fn diff( &self, n: usize, axis: Option<isize>, prepend: Option<Self>, append: Option<Self>, ) -> Result<Self, ArrayError>

The differences between consecutive elements of an array Read more
Source§

fn ediff1d( &self, to_end: Option<Self>, to_begin: Option<Self>, ) -> Result<Self, ArrayError>

The differences between consecutive elements of an array Read more
Source§

impl<T: ArrayElement> ArrayTiling<T> for Array<T>

Source§

fn repeat( &self, repeats: &[usize], axis: Option<usize>, ) -> Result<Self, ArrayError>

Repeat each element of an array after themselves Read more
Source§

impl<N: NumericOps> ArrayTrigonometric<N> for Array<N>

Source§

fn sin(&self) -> Result<Self, ArrayError>

Compute the sine of array elements Read more
Source§

fn cos(&self) -> Result<Self, ArrayError>

Compute the cosine of array elements Read more
Source§

fn tan(&self) -> Result<Self, ArrayError>

Compute the tangent of array elements Read more
Source§

fn asin(&self) -> Result<Self, ArrayError>

Compute the inverse sine of array elements Read more
Source§

fn acos(&self) -> Result<Self, ArrayError>

Compute the inverse cosine of array elements Read more
Source§

fn atan(&self) -> Result<Self, ArrayError>

Compute the inverse tangent of array elements Read more
Source§

fn atan2(&self, other: &Self) -> Result<Self, ArrayError>

Compute the inverse tangent of x1/x2 choosing the quadrant correctly Read more
Source§

fn hypot(&self, other: &Self) -> Result<Self, ArrayError>

Given the “legs” of a right triangle, return its hypotenuse Read more
Source§

fn degrees(&self) -> Result<Self, ArrayError>

Convert angles from radians to degrees Read more
Source§

fn rad2deg(&self) -> Result<Self, ArrayError>

Convert angles from radians to degrees. alias on degrees Read more
Source§

fn radians(&self) -> Result<Self, ArrayError>

Convert angles from degrees to radians Read more
Source§

fn deg2rad(&self) -> Result<Self, ArrayError>

Convert angles from degrees to radians. alias on radians Read more
Source§

fn unwrap_phase( &self, discont: Option<Array<f64>>, axis: Option<isize>, period: Option<Array<f64>>, ) -> Result<Self, ArrayError>

Unwrap by taking the complement of large deltas with respect to the period Read more
Source§

impl<N: Numeric + BitAnd<Output = N>> BitAnd<N> for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: N) -> Self::Output

Performs the & operation. Read more
Source§

impl<N: Numeric + BitAnd<Output = N>> BitAnd for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Array<N>) -> Self::Output

Performs the & operation. Read more
Source§

impl<N: Numeric + BitAnd<Output = N>> BitAndAssign<N> for Array<N>

Source§

fn bitand_assign(&mut self, other: N)

Performs the &= operation. Read more
Source§

impl<N: Numeric + BitAnd<Output = N>> BitAndAssign for Array<N>

Source§

fn bitand_assign(&mut self, other: Array<N>)

Performs the &= operation. Read more
Source§

impl<N: Numeric + BitOr<Output = N>> BitOr<N> for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: N) -> Self::Output

Performs the | operation. Read more
Source§

impl<N: Numeric + BitOr<Output = N>> BitOr for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Array<N>) -> Self::Output

Performs the | operation. Read more
Source§

impl<N: Numeric + BitOr<Output = N>> BitOrAssign<N> for Array<N>

Source§

fn bitor_assign(&mut self, other: N)

Performs the |= operation. Read more
Source§

impl<N: Numeric + BitOr<Output = N>> BitOrAssign for Array<N>

Source§

fn bitor_assign(&mut self, other: Array<N>)

Performs the |= operation. Read more
Source§

impl<N: Numeric + BitXor<Output = N>> BitXor<N> for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: N) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<N: Numeric + BitXor<Output = N>> BitXor for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Array<N>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<N: Numeric + BitXor<Output = N>> BitXorAssign<N> for Array<N>

Source§

fn bitxor_assign(&mut self, other: N)

Performs the ^= operation. Read more
Source§

impl<N: Numeric + BitXor<Output = N>> BitXorAssign for Array<N>

Source§

fn bitxor_assign(&mut self, other: Array<N>)

Performs the ^= operation. Read more
Source§

impl<T: Clone + ArrayElement> Clone for Array<T>

Source§

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

Returns a copy 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: Debug + ArrayElement> Debug for Array<T>

Source§

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

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

impl<T: ArrayElement> Display for Array<T>

Source§

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

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

impl<N: NumericOps> Div<N> for Array<N>

Source§

type Output = Result<Array<N>, ArrayError>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<N: NumericOps> Div for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<N: NumericOps> DivAssign<N> for Array<N>

Source§

fn div_assign(&mut self, other: N)

Performs the /= operation. Read more
Source§

impl<N: NumericOps> DivAssign for Array<N>

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl<N: ArrayElement> FromIterator<N> for Array<N>

Source§

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

Creates a value from an iterator. Read more
Source§

impl<T: ArrayElement> Index<&[usize]> for Array<T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, coords: &[usize]) -> &Self::Output

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

impl<T: ArrayElement> Index<usize> for Array<T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T: ArrayElement> IndexMut<usize> for Array<T>

Source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

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

impl<'a, N: ArrayElement> IntoIterator for &'a Array<N>

Source§

type Item = &'a N

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, N>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<N: ArrayElement> IntoIterator for Array<N>

Source§

type Item = N

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<N>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<N: NumericOps> Mul<N> for Array<N>

Source§

type Output = Result<Array<N>, ArrayError>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<N: NumericOps> Mul for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<N: NumericOps> MulAssign<N> for Array<N>

Source§

fn mul_assign(&mut self, other: N)

Performs the *= operation. Read more
Source§

impl<N: NumericOps> MulAssign for Array<N>

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl<N: SignedNumericOps> Neg for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<N: BoolNumeric + From<<N as Not>::Output>> Not for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T: ArrayElement> PartialEq for Array<T>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: ArrayElement> PartialOrd for Array<T>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
Source§

fn lt(&self, other: &Self) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
Source§

fn le(&self, other: &Self) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
Source§

fn gt(&self, other: &Self) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
Source§

fn ge(&self, other: &Self) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<N: NumericOps> Rem<N> for Array<N>

Source§

type Output = Result<Array<N>, ArrayError>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<N: NumericOps> Rem for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<N: NumericOps> RemAssign<N> for Array<N>

Source§

fn rem_assign(&mut self, other: N)

Performs the %= operation. Read more
Source§

impl<N: NumericOps> RemAssign for Array<N>

Source§

fn rem_assign(&mut self, other: Self)

Performs the %= operation. Read more
Source§

impl<N: NumericOps> Sub<N> for Array<N>

Source§

type Output = Result<Array<N>, ArrayError>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<N: NumericOps> Sub for Array<N>

Source§

type Output = Array<N>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<N: NumericOps> SubAssign<N> for Array<N>

Source§

fn sub_assign(&mut self, other: N)

Performs the -= operation. Read more
Source§

impl<N: NumericOps> SubAssign for Array<N>

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Array<T>

§

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

§

impl<T> Send for Array<T>
where T: Send,

§

impl<T> Sync for Array<T>
where T: Sync,

§

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

§

impl<T> UnwindSafe for Array<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<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<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<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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V