diff --git a/help.html b/help.html index d79fc34eb..c48a36f80 100644 --- a/help.html +++ b/help.html @@ -1,2 +1,2 @@ -Help +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/numpy/all.html b/numpy/all.html index 03a4b453e..98829bb2d 100644 --- a/numpy/all.html +++ b/numpy/all.html @@ -1,2 +1,2 @@ -List of all items in this crate +List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Aliases

Statics

Constants

\ No newline at end of file diff --git a/numpy/array/fn.get_array_module.html b/numpy/array/fn.get_array_module.html index d8f1130f9..902a82ee9 100644 --- a/numpy/array/fn.get_array_module.html +++ b/numpy/array/fn.get_array_module.html @@ -1,3 +1,3 @@ -get_array_module in numpy::array - Rust +get_array_module in numpy::array - Rust

Function numpy::array::get_array_module

source ·
pub fn get_array_module<'py>(py: Python<'py>) -> PyResult<Bound<'_, PyModule>>
Expand description

Returns a handle to NumPy’s multiarray module.

\ No newline at end of file diff --git a/numpy/array/index.html b/numpy/array/index.html index 7680bb4ff..ad74bcc4c 100644 --- a/numpy/array/index.html +++ b/numpy/array/index.html @@ -1,3 +1,3 @@ -numpy::array - Rust -

Module numpy::array

source ·
Expand description

Safe interface for NumPy’s N-dimensional arrays

-

Structs

Traits

Functions

Type Aliases

\ No newline at end of file +numpy::array - Rust +

Module numpy::array

source ·
Expand description

Safe interface for NumPy’s N-dimensional arrays

+

Structs§

Traits§

Functions§

Type Aliases§

\ No newline at end of file diff --git a/numpy/array/struct.PyArray.html b/numpy/array/struct.PyArray.html index 3202886d0..89ed4b285 100644 --- a/numpy/array/struct.PyArray.html +++ b/numpy/array/struct.PyArray.html @@ -1,6 +1,6 @@ -PyArray in numpy::array - Rust +PyArray in numpy::array - Rust

Struct numpy::array::PyArray

source ·
pub struct PyArray<T, D>(/* private fields */);
Expand description

A safe, statically-typed wrapper for NumPy’s ndarray class.

-

Memory location

+

§Memory location

  • Allocated by Rust: Constructed via IntoPyArray or from_vec or from_owned_array.
  • @@ -16,13 +16,13 @@

    Memory location

    These methods allocate memory in Python’s private heap via NumPy’s API.

    In both cases, PyArray is managed by Python so it can neither be moved from nor deallocated manually.

    -

    References

    +

    §References

    Like new, all constructor methods of PyArray return a shared reference &PyArray instead of an owned value. This design follows PyO3’s ownership concept, i.e. the return value is GIL-bound owning reference into Python’s heap.

    -

    Element type and dimensionality

    +

    §Element type and dimensionality

    PyArray has two type parametes T and D. -T represents the type of its elements, e.g. f32 or [PyObject]. +T represents the type of its elements, e.g. f32 or [PyObject]. D represents its dimensionality, e.g Ix2 or IxDyn.

    Element types are Rust types which implement the Element trait. Dimensions are represented by the ndarray::Dimension trait.

    @@ -31,7 +31,7 @@

    PyArray1 or PyArrayDyn.

    To specify concrete dimension like 3×4×5, types which implement the ndarray::IntoDimension trait are used. Typically, this means arrays like [3, 4, 5] or tuples like (3, 4, 5).

    -

    Example

    +

    §Example

    use numpy::{PyArray, PyArrayMethods};
     use ndarray::{array, Array};
     use pyo3::Python;
    @@ -50,7 +50,7 @@ 

    Example

    i.e. a pointer into Python’s heap which is independent of the GIL lifetime.

    This method can be used to avoid lifetime annotations of function arguments or return values.

    -
    Example
    +
    §Example
    use numpy::{PyArray1, PyArrayMethods};
     use pyo3::{Py, Python};
     
    @@ -63,31 +63,31 @@ 
    Example
    });
source

pub unsafe fn from_owned_ptr<'py>( py: Python<'py>, - ptr: *mut PyObject -) -> &'py Self

Constructs a reference to a PyArray from a raw pointer to a Python object.

-
Safety
+ ptr: *mut PyObject +) -> &'py Self

Constructs a reference to a PyArray from a raw pointer to a Python object.

+
§Safety

This is a wrapper around [pyo3::FromPyPointer::from_owned_ptr_or_opt] and inherits its safety contract.

source

pub unsafe fn from_borrowed_ptr<'py>( py: Python<'py>, - ptr: *mut PyObject -) -> &'py Self

Constructs a reference to a PyArray from a raw point to a Python object.

-
Safety
+ ptr: *mut PyObject +) -> &'py Self

Constructs a reference to a PyArray from a raw point to a Python object.

+
§Safety

This is a wrapper around [pyo3::FromPyPointer::from_borrowed_ptr_or_opt] and inherits its safety contract.

-
source

pub fn data(&self) -> *mut T

Returns a pointer to the first element of the array.

-
source§

impl<T: Element, D: Dimension> PyArray<T, D>

source

pub fn dims(&self) -> D

Same as shape, but returns D instead of &[usize].

-
source

pub unsafe fn new<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
where +

source

pub fn data(&self) -> *mut T

Returns a pointer to the first element of the array.

+
source§

impl<T: Element, D: Dimension> PyArray<T, D>

source

pub fn dims(&self) -> D

Same as shape, but returns D instead of &[usize].

+
source

pub unsafe fn new<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
where ID: IntoDimension<Dim = D>,

👎Deprecated since 0.21.0: will be replaced by PyArray::new_bound in the future

Deprecated form of PyArray<T, D>::new_bound

-
Safety
+
§Safety

Same as PyArray<T, D>::new_bound

source

pub unsafe fn new_bound<'py, ID>( py: Python<'py>, dims: ID, - is_fortran: bool + is_fortran: bool ) -> Bound<'py, Self>
where ID: IntoDimension<Dim = D>,

Creates a new uninitialized NumPy array.

If is_fortran is true, then it has Fortran/column-major order, otherwise it has C/row-major order.

-
Safety
+
§Safety

The returned array will always be safe to be dropped as the elements must either be trivially copyable (as indicated by <T as Element>::IS_COPY) or be pointers into Python’s heap, which NumPy will automatically zero-initialize.

@@ -95,7 +95,7 @@
Safety
using raw pointers obtained via uget_raw. Before that, all methods which produce references to the elements invoke undefined behaviour. In particular, zero-initialized pointers are not valid instances of PyObject.

-
Example
+
§Example
use numpy::prelude::*;
 use numpy::PyArray3;
 use pyo3::Python;
@@ -120,19 +120,19 @@ 
Example
source

pub unsafe fn borrow_from_array<'py, S>( array: &ArrayBase<S, D>, container: &'py PyAny -) -> &'py Self
where +) -> &'py Self
where S: Data<Elem = T>,

👎Deprecated since 0.21.0: will be replaced by PyArray::borrow_from_array_bound in the future
source

pub unsafe fn borrow_from_array_bound<'py, S>( array: &ArrayBase<S, D>, container: Bound<'py, PyAny> ) -> Bound<'py, Self>
where S: Data<Elem = T>,

Creates a NumPy array backed by array and ties its ownership to the Python object container.

-
Safety
+
§Safety

container is set as a base object of the returned array which must not be dropped until container is dropped. Furthermore, array must not be reallocated from the time this method is called and until container is dropped.

-
Example
+
§Example
#[pyclass]
 struct Owner {
     array: Array1<f64>,
@@ -149,12 +149,12 @@ 
Example
unsafe { PyArray1::borrow_from_array_bound(array, this.into_any()) } } }
-
source

pub fn zeros<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
where +

source

pub fn zeros<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
where ID: IntoDimension<Dim = D>,

👎Deprecated since 0.21.0: will be replaced by PyArray::zeros_bound in the future

Deprecated form of PyArray<T, D>::zeros_bound

source

pub fn zeros_bound<ID>( py: Python<'_>, dims: ID, - is_fortran: bool + is_fortran: bool ) -> Bound<'_, Self>
where ID: IntoDimension<Dim = D>,

Construct a new NumPy array filled with zeros.

If is_fortran is true, then it has Fortran/column-major order, @@ -162,7 +162,7 @@

Example

For arrays of Python objects, this will fill the array with valid pointers to zero-valued Python integer objects.

See also numpy.zeros and PyArray_Zeros.

-
Example
+
§Example
use numpy::{PyArray2, PyArrayMethods};
 use pyo3::Python;
 
@@ -171,25 +171,25 @@ 
Example
assert_eq!(pyarray.readonly().as_slice().unwrap(), [0; 4]); });
-
source

pub unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError>

Returns an immutable view of the internal data as a slice.

-
Safety
+
source

pub unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError>

Returns an immutable view of the internal data as a slice.

+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased mutably by other instances of PyArray or concurrently modified by Python or other native code.

Please consider the safe alternative PyReadonlyArray::as_slice.

-
source

pub unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError>

Returns a mutable view of the internal data as a slice.

-
Safety
+
source

pub unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError>

Returns a mutable view of the internal data as a slice.

+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased immutably or mutably by other instances of PyArray or concurrently modified by Python or other native code.

Please consider the safe alternative PyReadwriteArray::as_slice_mut.

-
source

pub fn from_owned_array<'py>(py: Python<'py>, arr: Array<T, D>) -> &'py Self

👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_array_bound in the future
source

pub fn from_owned_array<'py>(py: Python<'py>, arr: Array<T, D>) -> &'py Self

👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_array_bound in the future
source

pub fn from_owned_array_bound( py: Python<'_>, arr: Array<T, D> ) -> Bound<'_, Self>

Constructs a NumPy from an ndarray::Array

-

This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

-
Example
+

This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

+
§Example
use numpy::{PyArray, PyArrayMethods};
 use ndarray::array;
 use pyo3::Python;
@@ -199,13 +199,13 @@ 
Example
assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]); });
-
source

pub unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>

Get a reference of the specified element if the given index is valid.

-
Safety
+
source

pub unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>

Get a reference of the specified element if the given index is valid.

+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased mutably by other instances of PyArray or concurrently modified by Python or other native code.

Consider using safe alternatives like PyReadonlyArray::get.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -214,13 +214,13 @@ 
Example
assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 11); });
-
source

pub unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>

Same as get, but returns Option<&mut T>.

-
Safety
+
source

pub unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>

Same as get, but returns Option<&mut T>.

+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased immutably or mutably by other instances of PyArray or concurrently modified by Python or other native code.

Consider using safe alternatives like PyReadwriteArray::get_mut.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -233,16 +233,16 @@ 
Example
assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 42); });
-
source

pub unsafe fn uget<Idx>(&self, index: Idx) -> &T
where +

source

pub unsafe fn uget<Idx>(&self, index: Idx) -> &T
where Idx: NpyIndex<Dim = D>,

Get an immutable reference of the specified element, without checking the given index.

See NpyIndex for what types can be used as the index.

-
Safety
+
§Safety

Passing an invalid index is undefined behavior. The element must also have been initialized and all other references to it is must also be shared.

See PyReadonlyArray::get for a safe alternative.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -251,21 +251,21 @@ 
Example
assert_eq!(unsafe { *pyarray.uget([1, 0, 3]) }, 11); });
-
source

pub unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T
where +

source

pub unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T
where Idx: NpyIndex<Dim = D>,

Same as uget, but returns &mut T.

-
Safety
+
§Safety

Passing an invalid index is undefined behavior. The element must also have been initialized and other references to it must not exist.

See PyReadwriteArray::get_mut for a safe alternative.

-
source

pub unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T
where +

source

pub unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T
where Idx: NpyIndex<Dim = D>,

Same as uget, but returns *mut T.

-
Safety
+
§Safety

Passing an invalid index is undefined behavior.

-
source

pub fn get_owned<Idx>(&self, index: Idx) -> Option<T>
where +

source

pub fn get_owned<Idx>(&self, index: Idx) -> Option<T>
where Idx: NpyIndex<Dim = D>,

Get a copy of the specified element in the array.

See NpyIndex for what types can be used as the index.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -275,9 +275,9 @@ 
Example
assert_eq!(pyarray.get_owned([1, 0, 3]), Some(11)); });
source

pub fn to_dyn(&self) -> &PyArray<T, IxDyn>

Turn an array with fixed dimensionality into one with dynamic dimensionality.

-
source

pub fn to_vec(&self) -> Result<Vec<T>, NotContiguousError>

Returns a copy of the internal data of the array as a Vec.

+
source

pub fn to_vec(&self) -> Result<Vec<T>, NotContiguousError>

Returns a copy of the internal data of the array as a Vec.

Fails if the internal array is not contiguous. See also as_slice.

-
Example
+
§Example
use numpy::PyArray2;
 use pyo3::Python;
 
@@ -290,43 +290,48 @@ 
Example
assert_eq!(pyarray.to_vec().unwrap(), vec![0, 1, 2, 3]); });
-
source

pub fn from_array<'py, S>(py: Python<'py>, arr: &ArrayBase<S, D>) -> &'py Self
where +

source

pub fn from_array<'py, S>(py: Python<'py>, arr: &ArrayBase<S, D>) -> &'py Self
where + S: Data<Elem = T>,

👎Deprecated since 0.21.0: will be replaced by PyArray::from_array_bound in the future

Deprecated form of PyArray<T, D>::from_array_bound

+
source

pub fn from_array_bound<'py, S>( + py: Python<'py>, + arr: &ArrayBase<S, D> +) -> Bound<'py, Self>
where S: Data<Elem = T>,

Construct a NumPy array from a ndarray::ArrayBase.

This method allocates memory in Python’s heap via the NumPy API, and then copies all elements of the array there.

-
Example
-
use numpy::PyArray;
+
§Example
+
use numpy::{PyArray, PyArrayMethods};
 use ndarray::array;
 use pyo3::Python;
 
 Python::with_gil(|py| {
-    let pyarray = PyArray::from_array(py, &array![[1, 2], [3, 4]]);
+    let pyarray = PyArray::from_array_bound(py, &array![[1, 2], [3, 4]]);
 
     assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);
 });
-
source

pub fn try_readonly(&self) -> Result<PyReadonlyArray<'_, T, D>, BorrowError>

Get an immutable borrow of the NumPy array

-
source

pub fn readonly(&self) -> PyReadonlyArray<'_, T, D>

Get an immutable borrow of the NumPy array

-
Panics
+
source

pub fn try_readonly(&self) -> Result<PyReadonlyArray<'_, T, D>, BorrowError>

Get an immutable borrow of the NumPy array

+
source

pub fn readonly(&self) -> PyReadonlyArray<'_, T, D>

Get an immutable borrow of the NumPy array

+
§Panics

Panics if the allocation backing the array is currently mutably borrowed.

For a non-panicking variant, use try_readonly.

-
source

pub fn try_readwrite(&self) -> Result<PyReadwriteArray<'_, T, D>, BorrowError>

Get a mutable borrow of the NumPy array

-
source

pub fn readwrite(&self) -> PyReadwriteArray<'_, T, D>

Get a mutable borrow of the NumPy array

-
Panics
+
source

pub fn try_readwrite(&self) -> Result<PyReadwriteArray<'_, T, D>, BorrowError>

Get a mutable borrow of the NumPy array

+
source

pub fn readwrite(&self) -> PyReadwriteArray<'_, T, D>

Get a mutable borrow of the NumPy array

+
§Panics

Panics if the allocation backing the array is currently borrowed or if the array is flagged as not writeable.

For a non-panicking variant, use try_readwrite.

-
source

pub unsafe fn as_array(&self) -> ArrayView<'_, T, D>

Returns an ArrayView of the internal array.

+
source

pub unsafe fn as_array(&self) -> ArrayView<'_, T, D>

Returns an ArrayView of the internal array.

See also PyReadonlyArray::as_array.

-
Safety
+
§Safety

Calling this method invalidates all exclusive references to the internal data, e.g. &mut [T] or ArrayViewMut.

-
source

pub unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>

Returns an ArrayViewMut of the internal array.

+
source

pub unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>

Returns an ArrayViewMut of the internal array.

See also PyReadwriteArray::as_array_mut.

-
Safety
+
§Safety

Calling this method invalidates all other references to the internal data, e.g. ArrayView or ArrayViewMut.

-
source

pub fn as_raw_array(&self) -> RawArrayView<T, D>

Returns the internal array as RawArrayView enabling element access via raw pointers

-
source

pub fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>

Returns the internal array as RawArrayViewMut enabling element access via raw pointers

-
source

pub fn to_owned_array(&self) -> Array<T, D>

Get a copy of the array as an ndarray::Array.

-
Example
+
source

pub fn as_raw_array(&self) -> RawArrayView<T, D>

Returns the internal array as RawArrayView enabling element access via raw pointers

+
source

pub fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>

Returns the internal array as RawArrayViewMut enabling element access via raw pointers

+
source

pub fn to_owned_array(&self) -> Array<T, D>

Get a copy of the array as an ndarray::Array.

+
§Example
use numpy::{PyArray, PyArrayMethods};
 use ndarray::array;
 use pyo3::Python;
@@ -339,38 +344,38 @@ 
Example
array![[0, 1], [2, 3]] ) });
-
source§

impl<N, D> PyArray<N, D>
where +

source§

impl<N, D> PyArray<N, D>
where N: Scalar + Element, - D: Dimension,

source

pub unsafe fn try_as_matrix<R, C, RStride, CStride>( + D: Dimension,

source

pub unsafe fn try_as_matrix<R, C, RStride, CStride>( &self -) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
where +) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
where R: Dim, C: Dim, RStride: Dim, CStride: Dim,

Try to convert this array into a nalgebra::MatrixView using the given shape and strides.

See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

-
Safety
+
§Safety

Calling this method invalidates all exclusive references to the internal data, e.g. ArrayViewMut or MatrixSliceMut.

-
source

pub unsafe fn try_as_matrix_mut<R, C, RStride, CStride>( +

source

pub unsafe fn try_as_matrix_mut<R, C, RStride, CStride>( &self -) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
where +) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
where R: Dim, C: Dim, RStride: Dim, CStride: Dim,

Try to convert this array into a nalgebra::MatrixViewMut using the given shape and strides.

See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

-
Safety
+
§Safety

Calling this method invalidates all other references to the internal data, e.g. ArrayView, MatrixSlice, ArrayViewMut or MatrixSliceMut.

-
source§

impl<D: Dimension> PyArray<PyObject, D>

source§

impl<D: Dimension> PyArray<PyObject, D>

source

pub fn from_owned_object_array<'py, T>( py: Python<'py>, arr: Array<Py<T>, D> -) -> &'py Self

👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_object_array_bound in the future
source

pub fn from_owned_object_array_bound<T>( +) -> &'py Self

👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_object_array_bound in the future
source

pub fn from_owned_object_array_bound<T>( py: Python<'_>, arr: Array<Py<T>, D> ) -> Bound<'_, Self>

Construct a NumPy array containing objects stored in a ndarray::Array

-

This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

-
Example
+

This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

+
§Example
use ndarray::array;
 use pyo3::{pyclass, Py, Python};
 use numpy::{PyArray, PyArrayMethods};
@@ -397,11 +402,11 @@ 
Example
assert!(pyarray.readonly().as_array().get(0).unwrap().as_ref(py).is_instance_of::<CustomElement>()); });
-
source§

impl<T: Copy + Element> PyArray<T, Ix0>

source

pub fn item(&self) -> T

Get the single element of a zero-dimensional array.

+
source§

impl<T: Copy + Element> PyArray<T, Ix0>

source

pub fn item(&self) -> T

Get the single element of a zero-dimensional array.

See inner for an example.

-
source§

impl<T: Element> PyArray<T, Ix1>

source

pub fn from_slice<'py>(py: Python<'py>, slice: &[T]) -> &'py Self

👎Deprecated since 0.21.0: will be replaced by PyArray::from_slice_bound in the future
source

pub fn from_slice_bound<'py>(py: Python<'py>, slice: &[T]) -> Bound<'py, Self>

Construct a one-dimensional array from a slice.

-
Example
+
source§

impl<T: Element> PyArray<T, Ix1>

source

pub fn from_slice<'py>(py: Python<'py>, slice: &[T]) -> &'py Self

👎Deprecated since 0.21.0: will be replaced by PyArray::from_slice_bound in the future
source

pub fn from_slice_bound<'py>(py: Python<'py>, slice: &[T]) -> Bound<'py, Self>

Construct a one-dimensional array from a slice.

+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -410,55 +415,66 @@ 
Example
let pyarray = PyArray::from_slice_bound(py, slice); assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]); });
-
source

pub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> &'py Self

Construct a one-dimensional array from a Vec<T>.

-
Example
-
use numpy::PyArray;
+
source

pub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> &'py Self

👎Deprecated since 0.21.0: will be replaced by PyArray::from_vec_bound in the future

Deprecated form of PyArray<T, Ix1>::from_vec_bound

+
source

pub fn from_vec_bound<'py>(py: Python<'py>, vec: Vec<T>) -> Bound<'py, Self>

Construct a one-dimensional array from a Vec<T>.

+
§Example
+
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
 Python::with_gil(|py| {
     let vec = vec![1, 2, 3, 4, 5];
-    let pyarray = PyArray::from_vec(py, vec);
+    let pyarray = PyArray::from_vec_bound(py, vec);
     assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);
 });
-
source

pub fn from_iter<'py, I>(py: Python<'py>, iter: I) -> &'py Self
where - I: IntoIterator<Item = T>,

Construct a one-dimensional array from an Iterator.

-

If no reliable size_hint is available, +

source

pub fn from_iter<'py, I>(py: Python<'py>, iter: I) -> &'py Self
where + I: IntoIterator<Item = T>,

👎Deprecated since 0.21.0: will be replaced by PyArray::from_iter_bound in the future
source

pub fn from_iter_bound<I>(py: Python<'_>, iter: I) -> Bound<'_, Self>
where + I: IntoIterator<Item = T>,

Construct a one-dimensional array from an Iterator.

+

If no reliable size_hint is available, this method can allocate memory multiple times, which can hurt performance.

-
Example
-
use numpy::PyArray;
+
§Example
+
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
 Python::with_gil(|py| {
-    let pyarray = PyArray::from_iter(py, "abcde".chars().map(u32::from));
+    let pyarray = PyArray::from_iter_bound(py, "abcde".chars().map(u32::from));
     assert_eq!(pyarray.readonly().as_slice().unwrap(), &[97, 98, 99, 100, 101]);
 });
-
source§

impl<T: Element> PyArray<T, Ix2>

source

pub fn from_vec2<'py>( +

source§

impl<T: Element> PyArray<T, Ix2>

source

pub fn from_vec2<'py>( + py: Python<'py>, + v: &[Vec<T>] +) -> Result<&'py Self, FromVecError>

👎Deprecated since 0.21.0: will be replaced by PyArray::from_vec2_bound in the future
source

pub fn from_vec2_bound<'py>( py: Python<'py>, - v: &[Vec<T>] -) -> Result<&'py Self, FromVecError>

Construct a two-dimension array from a Vec<Vec<T>>.

+ v: &[Vec<T>] +) -> Result<Bound<'py, Self>, FromVecError>

Construct a two-dimension array from a Vec<Vec<T>>.

This function checks all dimensions of the inner vectors and returns an error if they are not all equal.

-
Example
-
use numpy::PyArray;
+
§Example
+
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 use ndarray::array;
 
 Python::with_gil(|py| {
     let vec2 = vec![vec![11, 12], vec![21, 22]];
-    let pyarray = PyArray::from_vec2(py, &vec2).unwrap();
+    let pyarray = PyArray::from_vec2_bound(py, &vec2).unwrap();
     assert_eq!(pyarray.readonly().as_array(), array![[11, 12], [21, 22]]);
 
     let ragged_vec2 = vec![vec![11, 12], vec![21]];
-    assert!(PyArray::from_vec2(py, &ragged_vec2).is_err());
+    assert!(PyArray::from_vec2_bound(py, &ragged_vec2).is_err());
 });
-
source§

impl<T: Element> PyArray<T, Ix3>

source

pub fn from_vec3<'py>( +

source§

impl<T: Element> PyArray<T, Ix3>

source

pub fn from_vec3<'py>( + py: Python<'py>, + v: &[Vec<Vec<T>>] +) -> Result<&'py Self, FromVecError>

👎Deprecated since 0.21.0: will be replaced by PyArray::from_vec3_bound in the future
source

pub fn from_vec3_bound<'py>( py: Python<'py>, - v: &[Vec<Vec<T>>] -) -> Result<&'py Self, FromVecError>

Construct a three-dimensional array from a Vec<Vec<Vec<T>>>.

+ v: &[Vec<Vec<T>>] +) -> Result<Bound<'py, Self>, FromVecError>

Construct a three-dimensional array from a Vec<Vec<Vec<T>>>.

This function checks all dimensions of the inner vectors and returns an error if they are not all equal.

-
Example
-
use numpy::PyArray;
+
§Example
+
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 use ndarray::array;
 
@@ -467,7 +483,7 @@ 
Example
vec![vec![111, 112], vec![121, 122]], vec![vec![211, 212], vec![221, 222]], ]; - let pyarray = PyArray::from_vec3(py, &vec3).unwrap(); + let pyarray = PyArray::from_vec3_bound(py, &vec3).unwrap(); assert_eq!( pyarray.readonly().as_array(), array![[[111, 112], [121, 122]], [[211, 212], [221, 222]]] @@ -477,11 +493,11 @@
Example
vec![vec![111, 112], vec![121, 122]], vec![vec![211], vec![221, 222]], ]; - assert!(PyArray::from_vec3(py, &ragged_vec3).is_err()); + assert!(PyArray::from_vec3_bound(py, &ragged_vec3).is_err()); });
-
source§

impl<T: Element, D> PyArray<T, D>

source

pub fn copy_to<U: Element>(&self, other: &PyArray<U, D>) -> PyResult<()>

Copies self into other, performing a data type conversion if necessary.

+
source§

impl<T: Element, D> PyArray<T, D>

source

pub fn copy_to<U: Element>(&self, other: &PyArray<U, D>) -> PyResult<()>

Copies self into other, performing a data type conversion if necessary.

See also PyArray_CopyInto.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -493,12 +509,12 @@ 
Example
assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]); });
-
source

pub fn cast<'py, U: Element>( +

source

pub fn cast<'py, U: Element>( &'py self, - is_fortran: bool + is_fortran: bool ) -> PyResult<&'py PyArray<U, D>>

Cast the PyArray<T> to PyArray<U>, by allocating a new array.

See also PyArray_CastToType.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -509,7 +525,7 @@ 
Example
assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]); });
-
source

pub fn reshape_with_order<'py, ID: IntoDimension>( +

source

pub fn reshape_with_order<'py, ID: IntoDimension>( &'py self, dims: ID, order: NPY_ORDER @@ -517,32 +533,33 @@

Example
but has different dimensions specified by dims and a possibly different memory order specified by order.

See also numpy.reshape and PyArray_Newshape.

-
Example
-
use numpy::{npyffi::NPY_ORDER, PyArray};
+
§Example
+
use numpy::prelude::*;
+use numpy::{npyffi::NPY_ORDER, PyArray};
 use pyo3::Python;
 use ndarray::array;
 
 Python::with_gil(|py| {
     let array =
-        PyArray::from_iter(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
+        PyArray::from_iter_bound(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
 
     assert_eq!(array.readonly().as_array(), array![[0, 3, 6], [1, 4, 7], [2, 5, 8]]);
     assert!(array.is_fortran_contiguous());
 
     assert!(array.reshape([5]).is_err());
 });
-
source

pub fn reshape<'py, ID: IntoDimension>( +

source

pub fn reshape<'py, ID: IntoDimension>( &'py self, dims: ID ) -> PyResult<&'py PyArray<T, ID::Dim>>

Special case of reshape_with_order which keeps the memory order the same.

-
source

pub unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>

Extends or truncates the dimensions of an array.

+
source

pub unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>

Extends or truncates the dimensions of an array.

This method works only on contiguous arrays. Missing elements will be initialized as if calling zeros.

See also ndarray.resize and PyArray_Resize.

-
Safety
+
§Safety

There should be no outstanding references (shared or exclusive) into the array as this method might re-allocate it and thereby invalidate all pointers into it.

-
Example
+
§Example
use numpy::prelude::*;
 use numpy::PyArray;
 use pyo3::Python;
@@ -556,15 +573,15 @@ 
Example
} assert_eq!(pyarray.shape(), [100, 100]); });
-
source§

impl<T: Element + AsPrimitive<f64>> PyArray<T, Ix1>

source

pub fn arange<'py>(py: Python<'py>, start: T, stop: T, step: T) -> &Self

👎Deprecated since 0.21.0: will be replaced by PyArray::arange_bound in the future

Deprecated form of PyArray<T, Ix1>::arange_bound

-
source

pub fn arange_bound<'py>( +

source§

impl<T: Element + AsPrimitive<f64>> PyArray<T, Ix1>

source

pub fn arange<'py>(py: Python<'py>, start: T, stop: T, step: T) -> &Self

👎Deprecated since 0.21.0: will be replaced by PyArray::arange_bound in the future

Deprecated form of PyArray<T, Ix1>::arange_bound

+
source

pub fn arange_bound<'py>( py: Python<'py>, start: T, stop: T, step: T ) -> Bound<'py, Self>

Return evenly spaced values within a given interval.

See numpy.arange for the Python API and PyArray_Arange for the C API.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -575,21 +592,22 @@ 
Example
let pyarray = PyArray::arange_bound(py, -2, 4, 3); assert_eq!(pyarray.readonly().as_slice().unwrap(), &[-2, 1]); });
-

Methods from Deref<Target = PyUntypedArray>§

source

pub fn as_array_ptr(&self) -> *mut PyArrayObject

Returns a raw pointer to the underlying PyArrayObject.

-
source

pub fn dtype(&self) -> &PyArrayDescr

Returns the dtype of the array.

+

Methods from Deref<Target = PyUntypedArray>§

source

pub fn as_array_ptr(&self) -> *mut PyArrayObject

Returns a raw pointer to the underlying PyArrayObject.

+
source

pub fn dtype(&self) -> &PyArrayDescr

Returns the dtype of the array.

See also ndarray.dtype and PyArray_DTYPE.

-
Example
-
use numpy::{dtype_bound, PyArray};
+
§Example
+
use numpy::prelude::*;
+use numpy::{dtype_bound, PyArray};
 use pyo3::Python;
 
 Python::with_gil(|py| {
-   let array = PyArray::from_vec(py, vec![1_i32, 2, 3]);
+   let array = PyArray::from_vec_bound(py, vec![1_i32, 2, 3]);
 
-   assert!(array.dtype().is_equiv_to(dtype_bound::<i32>(py).as_gil_ref()));
+   assert!(array.dtype().is_equiv_to(&dtype_bound::<i32>(py)));
 });
-
source

pub fn is_contiguous(&self) -> bool

Returns true if the internal data of the array is contiguous, +

source

pub fn is_contiguous(&self) -> bool

Returns true if the internal data of the array is contiguous, indepedently of whether C-style/row-major or Fortran-style/column-major.

-
Example
+
§Example
use numpy::{PyArray1, PyUntypedArrayMethods};
 use pyo3::{types::{IntoPyDict, PyAnyMethods}, Python};
 
@@ -604,11 +622,11 @@ 
Example
.unwrap(); assert!(!view.is_contiguous()); });
-
source

pub fn is_fortran_contiguous(&self) -> bool

Returns true if the internal data of the array is Fortran-style/column-major contiguous.

-
source

pub fn is_c_contiguous(&self) -> bool

Returns true if the internal data of the array is C-style/row-major contiguous.

-
source

pub fn ndim(&self) -> usize

Returns the number of dimensions of the array.

+
source

pub fn is_fortran_contiguous(&self) -> bool

Returns true if the internal data of the array is Fortran-style/column-major contiguous.

+
source

pub fn is_c_contiguous(&self) -> bool

Returns true if the internal data of the array is C-style/row-major contiguous.

+
source

pub fn ndim(&self) -> usize

Returns the number of dimensions of the array.

See also ndarray.ndim and PyArray_NDIM.

-
Example
+
§Example
use numpy::{PyArray3, PyUntypedArrayMethods};
 use pyo3::Python;
 
@@ -617,9 +635,9 @@ 
Example
assert_eq!(arr.ndim(), 3); });
-
source

pub fn strides(&self) -> &[isize]

Returns a slice indicating how many bytes to advance when iterating along each axis.

+
source

pub fn strides(&self) -> &[isize]

Returns a slice indicating how many bytes to advance when iterating along each axis.

See also ndarray.strides and PyArray_STRIDES.

-
Example
+
§Example
use numpy::{PyArray3, PyUntypedArrayMethods};
 use pyo3::Python;
 
@@ -628,9 +646,9 @@ 
Example
assert_eq!(arr.strides(), &[240, 48, 8]); });
-
source

pub fn shape(&self) -> &[usize]

Returns a slice which contains dimmensions of the array.

+
source

pub fn shape(&self) -> &[usize]

Returns a slice which contains dimmensions of the array.

See also [ndarray.shape][ndaray-shape] and PyArray_DIMS.

-
Example
+
§Example
use numpy::{PyArray3, PyUntypedArrayMethods};
 use pyo3::Python;
 
@@ -639,50 +657,50 @@ 
Example
assert_eq!(arr.shape(), &[4, 5, 6]); });
-
source

pub fn len(&self) -> usize

Calculates the total number of elements in the array.

-
source

pub fn is_empty(&self) -> bool

Returns true if the there are no elements in the array.

-

Methods from Deref<Target = PyAny>§

pub fn is<T>(&self, other: &T) -> bool
where +

source

pub fn len(&self) -> usize

Calculates the total number of elements in the array.

+
source

pub fn is_empty(&self) -> bool

Returns true if the there are no elements in the array.

+

Methods from Deref<Target = PyAny>§

pub fn is<T>(&self, other: &T) -> bool
where T: AsPyPointer,

Returns whether self and other point to the same object. To compare the equality of two objects (the == operator), use eq.

This is equivalent to the Python expression self is other.

-

pub fn hasattr<N>(&self, attr_name: N) -> Result<bool, PyErr>
where +

pub fn hasattr<N>(&self, attr_name: N) -> Result<bool, PyErr>
where N: IntoPy<Py<PyString>>,

Determines whether this object has the given attribute.

This is equivalent to the Python expression hasattr(self, attr_name).

To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

-
Example: intern!ing the attribute name
+
§Example: intern!ing the attribute name
#[pyfunction]
 fn has_version(sys: &Bound<'_, PyModule>) -> PyResult<bool> {
     sys.hasattr(intern!(sys.py(), "version"))
 }
-

pub fn getattr<N>(&self, attr_name: N) -> Result<&PyAny, PyErr>
where +

pub fn getattr<N>(&self, attr_name: N) -> Result<&PyAny, PyErr>
where N: IntoPy<Py<PyString>>,

Retrieves an attribute value.

This is equivalent to the Python expression self.attr_name.

To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

-
Example: intern!ing the attribute name
+
§Example: intern!ing the attribute name
#[pyfunction]
 fn version<'py>(sys: &Bound<'py, PyModule>) -> PyResult<Bound<'py, PyAny>> {
     sys.getattr(intern!(sys.py(), "version"))
 }
-

pub fn setattr<N, V>(&self, attr_name: N, value: V) -> Result<(), PyErr>
where +

pub fn setattr<N, V>(&self, attr_name: N, value: V) -> Result<(), PyErr>
where N: IntoPy<Py<PyString>>, V: ToPyObject,

Sets an attribute value.

This is equivalent to the Python expression self.attr_name = value.

To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

-
Example: intern!ing the attribute name
+
§Example: intern!ing the attribute name
#[pyfunction]
 fn set_answer(ob: &Bound<'_, PyAny>) -> PyResult<()> {
     ob.setattr(intern!(ob.py(), "answer"), 42)
 }
-

pub fn delattr<N>(&self, attr_name: N) -> Result<(), PyErr>
where +

pub fn delattr<N>(&self, attr_name: N) -> Result<(), PyErr>
where N: IntoPy<Py<PyString>>,

Deletes an attribute.

This is equivalent to the Python statement del self.attr_name.

To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

-

pub fn compare<O>(&self, other: O) -> Result<Ordering, PyErr>
where - O: ToPyObject,

Returns an Ordering between self and other.

+

pub fn compare<O>(&self, other: O) -> Result<Ordering, PyErr>
where + O: ToPyObject,

Returns an Ordering between self and other.

This is equivalent to the following Python code:

if self == other:
     return Equal
@@ -692,7 +710,7 @@ 
Examples
+
§Examples
use pyo3::prelude::*;
 use pyo3::types::PyFloat;
 use std::cmp::Ordering;
@@ -718,7 +736,7 @@ 
Result<&PyAny, PyErr>
where +) -> Result<&PyAny, PyErr>
where O: ToPyObject,

Tests whether two Python objects obey a given [CompareOp].

lt, le, eq, ne, gt and ge are the specialized versions @@ -733,7 +751,7 @@

[CompareOp::Gt]self > other [CompareOp::Ge]self >= other -
Examples
+
§Examples
use pyo3::class::basic::CompareOp;
 use pyo3::prelude::*;
 use pyo3::types::PyInt;
@@ -744,27 +762,27 @@ 
assert!(a.rich_compare(b, CompareOp::Le)?.is_truthy()?); Ok(()) })?;
-

pub fn lt<O>(&self, other: O) -> Result<bool, PyErr>
where +

pub fn lt<O>(&self, other: O) -> Result<bool, PyErr>
where O: ToPyObject,

Tests whether this object is less than another.

This is equivalent to the Python expression self < other.

-

pub fn le<O>(&self, other: O) -> Result<bool, PyErr>
where +

pub fn le<O>(&self, other: O) -> Result<bool, PyErr>
where O: ToPyObject,

Tests whether this object is less than or equal to another.

This is equivalent to the Python expression self <= other.

-

pub fn eq<O>(&self, other: O) -> Result<bool, PyErr>
where +

pub fn eq<O>(&self, other: O) -> Result<bool, PyErr>
where O: ToPyObject,

Tests whether this object is equal to another.

This is equivalent to the Python expression self == other.

-

pub fn ne<O>(&self, other: O) -> Result<bool, PyErr>
where +

pub fn ne<O>(&self, other: O) -> Result<bool, PyErr>
where O: ToPyObject,

Tests whether this object is not equal to another.

This is equivalent to the Python expression self != other.

-

pub fn gt<O>(&self, other: O) -> Result<bool, PyErr>
where +

pub fn gt<O>(&self, other: O) -> Result<bool, PyErr>
where O: ToPyObject,

Tests whether this object is greater than another.

This is equivalent to the Python expression self > other.

-

pub fn ge<O>(&self, other: O) -> Result<bool, PyErr>
where +

pub fn ge<O>(&self, other: O) -> Result<bool, PyErr>
where O: ToPyObject,

Tests whether this object is greater than or equal to another.

This is equivalent to the Python expression self >= other.

-

pub fn is_callable(&self) -> bool

Determines whether this object appears callable.

+

pub fn is_callable(&self) -> bool

Determines whether this object appears callable.

This is equivalent to Python’s callable() function.

-
Examples
+
§Examples
use pyo3::prelude::*;
 
 Python::with_gil(|py| -> PyResult<()> {
@@ -781,10 +799,10 @@ 
Examples

pub fn call( &self, args: impl IntoPy<Py<PyTuple>>, - kwargs: Option<&PyDict> -) -> Result<&PyAny, PyErr>

Calls the object.

+ kwargs: Option<&PyDict> +) -> Result<&PyAny, PyErr>

Calls the object.

This is equivalent to the Python expression self(*args, **kwargs).

-
Examples
+
§Examples
use pyo3::prelude::*;
 use pyo3::types::PyDict;
 
@@ -805,9 +823,9 @@ 
Examples
assert_eq!(result.extract::<String>()?, "called with args and kwargs"); Ok(()) })
-

pub fn call0(&self) -> Result<&PyAny, PyErr>

Calls the object without arguments.

+

pub fn call0(&self) -> Result<&PyAny, PyErr>

Calls the object without arguments.

This is equivalent to the Python expression self().

-
Examples
+
§Examples
use pyo3::prelude::*;
 
 Python::with_gil(|py| -> PyResult<()> {
@@ -817,9 +835,9 @@ 
Examples
Ok(()) })?;

This is equivalent to the Python expression help().

-

pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> Result<&PyAny, PyErr>

Calls the object with only positional arguments.

+

pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> Result<&PyAny, PyErr>

Calls the object with only positional arguments.

This is equivalent to the Python expression self(*args).

-
Examples
+
§Examples
use pyo3::prelude::*;
 
 const CODE: &str = r#"
@@ -841,14 +859,14 @@ 
Examples
&self, name: N, args: A, - kwargs: Option<&PyDict> -) -> Result<&PyAny, PyErr>
where + kwargs: Option<&PyDict> +) -> Result<&PyAny, PyErr>
where N: IntoPy<Py<PyString>>, A: IntoPy<Py<PyTuple>>,

Calls a method on the object.

This is equivalent to the Python expression self.name(*args, **kwargs).

To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

-
Examples
+
§Examples
use pyo3::prelude::*;
 use pyo3::types::PyDict;
 
@@ -871,12 +889,12 @@ 
Examples
assert_eq!(result.extract::<String>()?, "called with args and kwargs"); Ok(()) })
-

pub fn call_method0<N>(&self, name: N) -> Result<&PyAny, PyErr>
where +

pub fn call_method0<N>(&self, name: N) -> Result<&PyAny, PyErr>
where N: IntoPy<Py<PyString>>,

Calls a method on the object without arguments.

This is equivalent to the Python expression self.name().

To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

-
Examples
+
§Examples
use pyo3::prelude::*;
 
 const CODE: &str = r#"
@@ -895,13 +913,13 @@ 
Examples
assert_eq!(result.extract::<String>()?, "called with no arguments"); Ok(()) })
-

pub fn call_method1<N, A>(&self, name: N, args: A) -> Result<&PyAny, PyErr>
where +

pub fn call_method1<N, A>(&self, name: N, args: A) -> Result<&PyAny, PyErr>
where N: IntoPy<Py<PyString>>, A: IntoPy<Py<PyTuple>>,

Calls a method on the object with only positional arguments.

This is equivalent to the Python expression self.name(*args).

To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

-
Examples
+
§Examples
use pyo3::prelude::*;
 
 const CODE: &str = r#"
@@ -921,38 +939,38 @@ 
Examples
assert_eq!(result.extract::<String>()?, "called with args"); Ok(()) })
-

pub fn is_true(&self) -> Result<bool, PyErr>

👎Deprecated since 0.21.0: use .is_truthy() instead

Returns whether the object is considered to be true.

+

pub fn is_true(&self) -> Result<bool, PyErr>

👎Deprecated since 0.21.0: use .is_truthy() instead

Returns whether the object is considered to be true.

This is equivalent to the Python expression bool(self).

-

pub fn is_truthy(&self) -> Result<bool, PyErr>

Returns whether the object is considered to be true.

+

pub fn is_truthy(&self) -> Result<bool, PyErr>

Returns whether the object is considered to be true.

This applies truth value testing equivalent to the Python expression bool(self).

-

pub fn is_none(&self) -> bool

Returns whether the object is considered to be None.

+

pub fn is_none(&self) -> bool

Returns whether the object is considered to be None.

This is equivalent to the Python expression self is None.

-

pub fn is_ellipsis(&self) -> bool

👎Deprecated since 0.20.0: use .is(py.Ellipsis()) instead

Returns whether the object is Ellipsis, e.g. ....

+

pub fn is_ellipsis(&self) -> bool

👎Deprecated since 0.20.0: use .is(py.Ellipsis()) instead

Returns whether the object is Ellipsis, e.g. ....

This is equivalent to the Python expression self is ....

-

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

Returns true if the sequence or mapping has a length of 0.

+

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

Returns true if the sequence or mapping has a length of 0.

This is equivalent to the Python expression len(self) == 0.

-

pub fn get_item<K>(&self, key: K) -> Result<&PyAny, PyErr>
where +

pub fn get_item<K>(&self, key: K) -> Result<&PyAny, PyErr>
where K: ToPyObject,

Gets an item from the collection.

This is equivalent to the Python expression self[key].

-

pub fn set_item<K, V>(&self, key: K, value: V) -> Result<(), PyErr>
where +

pub fn set_item<K, V>(&self, key: K, value: V) -> Result<(), PyErr>
where K: ToPyObject, V: ToPyObject,

Sets a collection item value.

This is equivalent to the Python expression self[key] = value.

-

pub fn del_item<K>(&self, key: K) -> Result<(), PyErr>
where +

pub fn del_item<K>(&self, key: K) -> Result<(), PyErr>
where K: ToPyObject,

Deletes an item from the collection.

This is equivalent to the Python expression del self[key].

-

pub fn iter(&self) -> Result<&PyIterator, PyErr>

Takes an object and returns an iterator for it.

+

pub fn iter(&self) -> Result<&PyIterator, PyErr>

Takes an object and returns an iterator for it.

This is typically a new iterator but if the argument is an iterator, this returns itself.

pub fn get_type(&self) -> &PyType

Returns the Python type object for this object’s type.

-

pub fn get_type_ptr(&self) -> *mut PyTypeObject

Returns the Python type pointer for this object.

-

pub fn downcast<T>(&self) -> Result<&T, PyDowncastError<'_>>
where +

pub fn get_type_ptr(&self) -> *mut PyTypeObject

Returns the Python type pointer for this object.

+

pub fn downcast<T>(&self) -> Result<&T, PyDowncastError<'_>>
where T: PyTypeCheck<AsRefTarget = T>,

Downcast this PyAny to a concrete Python type or pyclass.

Note that you can often avoid downcasting yourself by just specifying the desired type in function or method signatures. However, manual downcasting is sometimes necessary.

For extracting a Rust-only type, see PyAny::extract.

-
Example: Downcasting to a specific Python object
+
§Example: Downcasting to a specific Python object
use pyo3::prelude::*;
 use pyo3::types::{PyDict, PyList};
 
@@ -964,7 +982,7 @@ 
assert!(any.downcast::<PyDict>().is_ok()); assert!(any.downcast::<PyList>().is_err()); });
-
Example: Getting a reference to a pyclass
+
§Example: Getting a reference to a pyclass

This is useful if you want to mutate a PyObject that might actually be a pyclass.

@@ -987,7 +1005,7 @@
assert_eq!(class_ref.i, 1); Ok(()) })
-

pub fn downcast_exact<T>(&self) -> Result<&T, PyDowncastError<'_>>
where +

pub fn downcast_exact<T>(&self) -> Result<&T, PyDowncastError<'_>>
where T: PyTypeInfo<AsRefTarget = T>,

Downcast this PyAny to a concrete Python type or pyclass (but not a subclass of it).

It is almost always better to use [PyAny::downcast] because it accounts for Python subtyping. Use this method only when you do not want to allow subtypes.

@@ -995,7 +1013,7 @@
PyAny::extract.

-
Example: Downcasting to a specific Python object but not a subtype
+
§Example: Downcasting to a specific Python object but not a subtype
use pyo3::prelude::*;
 use pyo3::types::{PyBool, PyLong};
 
@@ -1011,92 +1029,93 @@ 
assert!(any.downcast_exact::<PyBool>().is_ok()); });
-

pub unsafe fn downcast_unchecked<T>(&self) -> &T
where +

pub unsafe fn downcast_unchecked<T>(&self) -> &T
where T: HasPyGilRef<AsRefTarget = T>,

Converts this PyAny to a concrete Python type without checking validity.

-
Safety
+
§Safety

Callers must ensure that the type is valid or risk type confusion.

-

pub fn extract<'py, D>(&'py self) -> Result<D, PyErr>
where - D: FromPyObject<'py>,

Extracts some type from the Python object.

-

This is a wrapper function around [FromPyObject::extract()].

-

pub fn get_refcnt(&self) -> isize

Returns the reference count for the Python object.

-

pub fn repr(&self) -> Result<&PyString, PyErr>

Computes the “repr” representation of self.

+

pub fn extract<'py, D>(&'py self) -> Result<D, PyErr>
where + D: FromPyObjectBound<'py, 'py>,

Extracts some type from the Python object.

+

This is a wrapper function around +FromPyObject::extract().

+

pub fn get_refcnt(&self) -> isize

Returns the reference count for the Python object.

+

pub fn repr(&self) -> Result<&PyString, PyErr>

Computes the “repr” representation of self.

This is equivalent to the Python expression repr(self).

-

pub fn str(&self) -> Result<&PyString, PyErr>

Computes the “str” representation of self.

+

pub fn str(&self) -> Result<&PyString, PyErr>

Computes the “str” representation of self.

This is equivalent to the Python expression str(self).

-

pub fn hash(&self) -> Result<isize, PyErr>

Retrieves the hash code of self.

+

pub fn hash(&self) -> Result<isize, PyErr>

Retrieves the hash code of self.

This is equivalent to the Python expression hash(self).

-

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

Returns the length of the sequence or mapping.

+

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

Returns the length of the sequence or mapping.

This is equivalent to the Python expression len(self).

pub fn dir(&self) -> &PyList

Returns the list of attributes of this object.

This is equivalent to the Python expression dir(self).

-

pub fn is_instance(&self, ty: &PyAny) -> Result<bool, PyErr>

Checks whether this object is an instance of type ty.

+

pub fn is_instance(&self, ty: &PyAny) -> Result<bool, PyErr>

Checks whether this object is an instance of type ty.

This is equivalent to the Python expression isinstance(self, ty).

-

pub fn is_exact_instance(&self, ty: &PyAny) -> bool

Checks whether this object is an instance of exactly type ty (not a subclass).

+

pub fn is_exact_instance(&self, ty: &PyAny) -> bool

Checks whether this object is an instance of exactly type ty (not a subclass).

This is equivalent to the Python expression type(self) is ty.

-

pub fn is_instance_of<T>(&self) -> bool
where +

pub fn is_instance_of<T>(&self) -> bool
where T: PyTypeInfo,

Checks whether this object is an instance of type T.

This is equivalent to the Python expression isinstance(self, T), if the type T is known at compile time.

-

pub fn is_exact_instance_of<T>(&self) -> bool
where +

pub fn is_exact_instance_of<T>(&self) -> bool
where T: PyTypeInfo,

Checks whether this object is an instance of exactly type T.

This is equivalent to the Python expression type(self) is T, if the type T is known at compile time.

-

pub fn contains<V>(&self, value: V) -> Result<bool, PyErr>
where +

pub fn contains<V>(&self, value: V) -> Result<bool, PyErr>
where V: ToPyObject,

Determines if self contains value.

This is equivalent to the Python expression value in self.

pub fn py(&self) -> Python<'_>

Returns a GIL marker constrained to the lifetime of this type.

-

pub fn as_ptr(&self) -> *mut PyObject

Returns the raw FFI pointer represented by self.

-
Safety
+

pub fn as_ptr(&self) -> *mut PyObject

Returns the raw FFI pointer represented by self.

+
§Safety

Callers are responsible for ensuring that the pointer does not outlive self.

The reference is borrowed; callers should not decrease the reference count when they are finished with the pointer.

-

pub fn into_ptr(&self) -> *mut PyObject

Returns an owned raw FFI pointer represented by self.

-
Safety
+

pub fn into_ptr(&self) -> *mut PyObject

Returns an owned raw FFI pointer represented by self.

+
§Safety

The reference is owned; when finished the caller should either transfer ownership of the pointer or decrease the reference count (e.g. with pyo3::ffi::Py_DecRef).

-

pub fn py_super(&self) -> Result<&PySuper, PyErr>

Return a proxy object that delegates method calls to a parent or sibling class of type.

+

pub fn py_super(&self) -> Result<&PySuper, PyErr>

Return a proxy object that delegates method calls to a parent or sibling class of type.

This is equivalent to the Python expression super()

-

Trait Implementations§

source§

impl<T, D> AsPyPointer for PyArray<T, D>

source§

fn as_ptr(&self) -> *mut PyObject

Returns the underlying FFI pointer as a borrowed pointer.
source§

impl<T, D> AsRef<PyAny> for PyArray<T, D>

source§

fn as_ref(&self) -> &PyAny

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T, D> Debug for PyArray<T, D>

source§

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

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

impl<T, D> Deref for PyArray<T, D>

§

type Target = PyUntypedArray

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl<T, D> Display for PyArray<T, D>

source§

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

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

impl<'a, T, D> From<&'a PyArray<T, D>> for &'a PyAny

source§

fn from(ob: &'a PyArray<T, D>) -> Self

Converts to this type from the input type.
source§

impl<T, D> From<&PyArray<T, D>> for Py<PyArray<T, D>>

source§

fn from(other: &PyArray<T, D>) -> Self

Converts to this type from the input type.
source§

impl<'py, T: Element, D: Dimension> FromPyObject<'py> for &'py PyArray<T, D>

source§

fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
§

fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

Extracts Self from the source GIL Ref obj. Read more
source§

impl<T, D> IntoPy<Py<PyAny>> for PyArray<T, D>

source§

fn into_py<'py>(self, py: Python<'py>) -> PyObject

Performs the conversion.
source§

impl<T, D> IntoPy<Py<PyArray<T, D>>> for &PyArray<T, D>

source§

fn into_py<'py>(self, py: Python<'py>) -> Py<PyArray<T, D>>

Performs the conversion.
source§

impl<T, D> PyNativeType for PyArray<T, D>

§

type AsRefSource = PyArray<T, D>

The form of this which is stored inside a Py<T> smart pointer.
§

fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

Cast &self to a Borrowed smart pointer. Read more
§

fn py(&self) -> Python<'_>

Returns a GIL marker constrained to the lifetime of this type.
§

unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

Cast &PyAny to &Self without no type checking. Read more
source§

impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>

source§

const NAME: &'static str = "PyArray<T, D>"

Class name.
source§

const MODULE: Option<&'static str> = _

Module name, if any.
source§

fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

Returns the PyTypeObject instance for this type.
source§

fn is_type_of_bound(ob: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type or a subclass of this type.
§

fn type_object(py: Python<'_>) -> &PyType

Returns the safe abstraction over the type object.
§

fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

Returns the safe abstraction over the type object.
§

fn is_type_of(object: &PyAny) -> bool

Checks if object is an instance of this type or a subclass of this type.
§

fn is_exact_type_of(object: &PyAny) -> bool

Checks if object is an instance of this type.
§

fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type.
source§

impl<T, D> ToPyObject for PyArray<T, D>

source§

fn to_object(&self, py: Python<'_>) -> PyObject

Converts self into a Python object.
source§

impl<T, D> DerefToPyAny for PyArray<T, D>

Auto Trait Implementations§

§

impl<T, D> !RefUnwindSafe for PyArray<T, D>

§

impl<T, D> !Send for PyArray<T, D>

§

impl<T, D> !Sync for PyArray<T, D>

§

impl<T, D> Unpin for PyArray<T, D>
where - D: Unpin, - T: Unpin,

§

impl<T, D> UnwindSafe for PyArray<T, D>
where - D: UnwindSafe, - 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl<T, D> AsPyPointer for PyArray<T, D>

source§

fn as_ptr(&self) -> *mut PyObject

Returns the underlying FFI pointer as a borrowed pointer.
source§

impl<T, D> AsRef<PyAny> for PyArray<T, D>

source§

fn as_ref(&self) -> &PyAny

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T, D> Debug for PyArray<T, D>

source§

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

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

impl<T, D> Deref for PyArray<T, D>

§

type Target = PyUntypedArray

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl<T, D> Display for PyArray<T, D>

source§

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

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

impl<'a, T, D> From<&'a PyArray<T, D>> for &'a PyAny

source§

fn from(ob: &'a PyArray<T, D>) -> Self

Converts to this type from the input type.
source§

impl<T, D> From<&PyArray<T, D>> for Py<PyArray<T, D>>

source§

fn from(other: &PyArray<T, D>) -> Self

Converts to this type from the input type.
source§

impl<'py, T: Element, D: Dimension> FromPyObject<'py> for &'py PyArray<T, D>

source§

fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
§

fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

Extracts Self from the source GIL Ref obj. Read more
source§

impl<T, D> IntoPy<Py<PyAny>> for PyArray<T, D>

source§

fn into_py<'py>(self, py: Python<'py>) -> PyObject

Performs the conversion.
source§

impl<T, D> IntoPy<Py<PyArray<T, D>>> for &PyArray<T, D>

source§

fn into_py<'py>(self, py: Python<'py>) -> Py<PyArray<T, D>>

Performs the conversion.
source§

impl<T, D> PyNativeType for PyArray<T, D>

§

type AsRefSource = PyArray<T, D>

The form of this which is stored inside a Py<T> smart pointer.
§

fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

Cast &self to a Borrowed smart pointer. Read more
§

fn py(&self) -> Python<'_>

Returns a GIL marker constrained to the lifetime of this type.
§

unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

Cast &PyAny to &Self without no type checking. Read more
source§

impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>

source§

const NAME: &'static str = "PyArray<T, D>"

Class name.
source§

const MODULE: Option<&'static str> = _

Module name, if any.
source§

fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

Returns the PyTypeObject instance for this type.
source§

fn is_type_of_bound(ob: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type or a subclass of this type.
§

fn type_object(py: Python<'_>) -> &PyType

Returns the safe abstraction over the type object.
§

fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

Returns the safe abstraction over the type object.
§

fn is_type_of(object: &PyAny) -> bool

Checks if object is an instance of this type or a subclass of this type.
§

fn is_exact_type_of(object: &PyAny) -> bool

Checks if object is an instance of this type.
§

fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type.
source§

impl<T, D> ToPyObject for PyArray<T, D>

source§

fn to_object(&self, py: Python<'_>) -> PyObject

Converts self into a Python object.
source§

impl<T, D> DerefToPyAny for PyArray<T, D>

Auto Trait Implementations§

§

impl<T, D> !RefUnwindSafe for PyArray<T, D>

§

impl<T, D> !Send for PyArray<T, D>

§

impl<T, D> !Sync for PyArray<T, D>

§

impl<T, D> Unpin for PyArray<T, D>
where + D: Unpin, + T: Unpin,

§

impl<T, D> UnwindSafe for PyArray<T, D>
where + D: UnwindSafe, + 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<'p, T> FromPyPointer<'p> for T
where T: 'p + PyNativeType,

§

unsafe fn from_owned_ptr_or_opt( py: Python<'p>, - ptr: *mut PyObject -) -> Option<&'p T>

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject. Read more
§

unsafe fn from_borrowed_ptr_or_opt( + ptr: *mut PyObject +) -> Option<&'p T>

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject. Read more
§

unsafe fn from_borrowed_ptr_or_opt( _py: Python<'p>, - ptr: *mut PyObject -) -> Option<&'p T>

👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

unsafe fn from_owned_ptr_or_panic( + ptr: *mut PyObject +) -> Option<&'p T>

👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

unsafe fn from_owned_ptr_or_panic( py: Python<'p>, - ptr: *mut PyObject -) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject or panic. Read more
§

unsafe fn from_owned_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject or panic. Read more
§

unsafe fn from_owned_ptr_or_err( + ptr: *mut PyObject +) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject or panic. Read more
§

unsafe fn from_owned_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject or panic. Read more
§

unsafe fn from_owned_ptr_or_err( py: Python<'p>, - ptr: *mut PyObject -) -> Result<&'p Self, PyErr>

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject. Read more
§

unsafe fn from_borrowed_ptr_or_panic( + ptr: *mut PyObject +) -> Result<&'p Self, PyErr>

👎Deprecated since 0.21.0
Convert from an arbitrary PyObject. Read more
§

unsafe fn from_borrowed_ptr_or_panic( py: Python<'p>, - ptr: *mut PyObject -) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

unsafe fn from_borrowed_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

unsafe fn from_borrowed_ptr_or_err( + ptr: *mut PyObject +) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

unsafe fn from_borrowed_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

unsafe fn from_borrowed_ptr_or_err( py: Python<'p>, - ptr: *mut PyObject -) -> Result<&'p Self, PyErr>

👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

impl<T> HasPyGilRef for T
where - T: PyNativeType,

§

type AsRefTarget = T

Utility type to make Py::as_ref work.
source§

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

source§

fn into(self) -> U

Calls U::from(self).

+ ptr: *mut PyObject +) -> Result<&'p Self, PyErr>
👎Deprecated since 0.21.0
Convert from an arbitrary borrowed PyObject. Read more
§

impl<T> HasPyGilRef for T
where + T: PyNativeType,

§

type AsRefTarget = T

Utility type to make Py::as_ref work.
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.

+From<T> for U chooses to do.

§

impl<'v, T> PyTryFrom<'v> for T
where - T: PyTypeInfo<AsRefTarget = T> + PyNativeType,

§

fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
where - V: Into<&'v PyAny>,

👎Deprecated since 0.21.0: use value.downcast::<T>() instead of T::try_from(value)
Cast from a concrete Python object type to PyObject.
§

fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
where - V: Into<&'v PyAny>,

👎Deprecated since 0.21.0: use value.downcast_exact::<T>() instead of T::try_from_exact(value)
Cast from a concrete Python object type to PyObject. With exact type check.
§

unsafe fn try_from_unchecked<V>(value: V) -> &'v T
where - V: Into<&'v PyAny>,

👎Deprecated since 0.21.0: use value.downcast_unchecked::<T>() instead of T::try_from_unchecked(value)
Cast a PyAny to a specific type of PyObject. The caller must + T: PyTypeInfo<AsRefTarget = T> + PyNativeType,
§

fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
where + V: Into<&'v PyAny>,

👎Deprecated since 0.21.0: use value.downcast::<T>() instead of T::try_from(value)
Cast from a concrete Python object type to PyObject.
§

fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
where + V: Into<&'v PyAny>,

👎Deprecated since 0.21.0: use value.downcast_exact::<T>() instead of T::try_from_exact(value)
Cast from a concrete Python object type to PyObject. With exact type check.
§

unsafe fn try_from_unchecked<V>(value: V) -> &'v T
where + V: Into<&'v PyAny>,

👎Deprecated since 0.21.0: use value.downcast_unchecked::<T>() instead of T::try_from_unchecked(value)
Cast a PyAny to a specific type of PyObject. The caller must have already verified the reference is for this type. Read more
§

impl<T> PyTypeCheck for T
where - T: PyTypeInfo,

§

const NAME: &'static str = <T as PyTypeInfo>::NAME

Name of self. This is used in error messages, for example.
§

fn type_check(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of Self, which may include a subtype. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where - SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

source§

default 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>,

§

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>,

§

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.
\ No newline at end of file + T: PyTypeInfo,
§

const NAME: &'static str = <T as PyTypeInfo>::NAME

Name of self. This is used in error messages, for example.
§

fn type_check(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of Self, which may include a subtype. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where + SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

source§

default 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>,

§

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>,

§

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.
\ No newline at end of file diff --git a/numpy/array/trait.PyArray0Methods.html b/numpy/array/trait.PyArray0Methods.html index a8604d968..eca55132b 100644 --- a/numpy/array/trait.PyArray0Methods.html +++ b/numpy/array/trait.PyArray0Methods.html @@ -1,10 +1,10 @@ -PyArray0Methods in numpy::array - Rust -
pub trait PyArray0Methods<'py, T>: PyArrayMethods<'py, T, Ix0> {
+PyArray0Methods in numpy::array - Rust
+    
pub trait PyArray0Methods<'py, T>: PyArrayMethods<'py, T, Ix0> {
     // Provided method
     fn item(&self) -> T
-       where T: Element + Copy { ... }
+       where T: Element + Copy { ... }
 }
Expand description

Implementation of functionality for PyArray0<T>.

-

Provided Methods§

source

fn item(&self) -> T
where - T: Element + Copy,

Get the single element of a zero-dimensional array.

+

Provided Methods§

source

fn item(&self) -> T
where + T: Element + Copy,

Get the single element of a zero-dimensional array.

See inner for an example.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'py, T> PyArray0Methods<'py, T> for Bound<'py, PyArray0<T>>

Implementors§

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'py, T> PyArray0Methods<'py, T> for Bound<'py, PyArray0<T>>

Implementors§

\ No newline at end of file diff --git a/numpy/array/trait.PyArrayMethods.html b/numpy/array/trait.PyArrayMethods.html index 2e9672440..a293d3a89 100644 --- a/numpy/array/trait.PyArrayMethods.html +++ b/numpy/array/trait.PyArrayMethods.html @@ -1,21 +1,21 @@ -PyArrayMethods in numpy::array - Rust -
pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
+PyArrayMethods in numpy::array - Rust
+    
pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
 
Show 29 methods // Required methods fn as_untyped(&self) -> &Bound<'py, PyUntypedArray>; - fn data(&self) -> *mut T; - unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T> + fn data(&self) -> *mut T; + unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T> where T: Element, D: Dimension; - unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T> + unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T> where T: Element, D: Dimension; fn to_dyn(&self) -> &Bound<'py, PyArray<T, IxDyn>> where T: Element, D: Dimension; - fn try_readonly(&self) -> Result<PyReadonlyArray<'py, T, D>, BorrowError> + fn try_readonly(&self) -> Result<PyReadonlyArray<'py, T, D>, BorrowError> where T: Element, D: Dimension; - fn try_readwrite(&self) -> Result<PyReadwriteArray<'py, T, D>, BorrowError> + fn try_readwrite(&self) -> Result<PyReadwriteArray<'py, T, D>, BorrowError> where T: Element, D: Dimension; unsafe fn as_array(&self) -> ArrayView<'_, T, D> @@ -33,11 +33,11 @@ fn copy_to<U: Element>( &self, other: &Bound<'py, PyArray<U, D>> - ) -> PyResult<()> + ) -> PyResult<()> where T: Element; fn cast<U: Element>( &self, - is_fortran: bool + is_fortran: bool ) -> PyResult<Bound<'py, PyArray<U, D>>> where T: Element; fn reshape_with_order<ID: IntoDimension>( @@ -46,11 +46,11 @@ order: NPY_ORDER ) -> PyResult<Bound<'py, PyArray<T, ID::Dim>>> where T: Element; - unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()> + unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()> where T: Element; unsafe fn try_as_matrix<R, C, RStride, CStride>( &self - ) -> Option<MatrixView<'_, T, R, C, RStride, CStride>> + ) -> Option<MatrixView<'_, T, R, C, RStride, CStride>> where T: Scalar + Element, D: Dimension, R: Dim, @@ -59,7 +59,7 @@ CStride: Dim; unsafe fn try_as_matrix_mut<R, C, RStride, CStride>( &self - ) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>> + ) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>> where T: Scalar + Element, D: Dimension, R: Dim, @@ -70,29 +70,29 @@ // Provided methods fn dims(&self) -> D where D: Dimension { ... } - unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError> + unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError> where T: Element, D: Dimension { ... } - unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError> + unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError> where T: Element, D: Dimension { ... } - unsafe fn uget<Idx>(&self, index: Idx) -> &T + unsafe fn uget<Idx>(&self, index: Idx) -> &T where T: Element, D: Dimension, Idx: NpyIndex<Dim = D> { ... } - unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T + unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T where T: Element, D: Dimension, Idx: NpyIndex<Dim = D> { ... } - unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T + unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T where T: Element, D: Dimension, Idx: NpyIndex<Dim = D> { ... } - fn get_owned<Idx>(&self, index: Idx) -> Option<T> + fn get_owned<Idx>(&self, index: Idx) -> Option<T> where T: Element, D: Dimension, Idx: NpyIndex<Dim = D> { ... } - fn to_vec(&self) -> Result<Vec<T>, NotContiguousError> + fn to_vec(&self) -> Result<Vec<T>, NotContiguousError> where T: Element, D: Dimension { ... } fn readonly(&self) -> PyReadonlyArray<'py, T, D> @@ -110,17 +110,17 @@ ) -> PyResult<Bound<'py, PyArray<T, ID::Dim>>> where T: Element { ... }
}
Expand description

Implementation of functionality for PyArray<T, D>.

-

Required Methods§

source

fn as_untyped(&self) -> &Bound<'py, PyUntypedArray>

Access an untyped representation of this array.

-
source

fn data(&self) -> *mut T

Returns a pointer to the first element of the array.

-
source

unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>
where +

Required Methods§

source

fn as_untyped(&self) -> &Bound<'py, PyUntypedArray>

Access an untyped representation of this array.

+
source

fn data(&self) -> *mut T

Returns a pointer to the first element of the array.

+
source

unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>
where T: Element, D: Dimension,

Get a reference of the specified element if the given index is valid.

-
Safety
+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased mutably by other instances of PyArray or concurrently modified by Python or other native code.

Consider using safe alternatives like PyReadonlyArray::get.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -129,15 +129,15 @@ 
Example
assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 11); });
-
source

unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>
where +

source

unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>
where T: Element, D: Dimension,

Same as get, but returns Option<&mut T>.

-
Safety
+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased immutably or mutably by other instances of PyArray or concurrently modified by Python or other native code.

Consider using safe alternatives like PyReadwriteArray::get_mut.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -150,37 +150,37 @@ 
Example
assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 42); });
-
source

fn to_dyn(&self) -> &Bound<'py, PyArray<T, IxDyn>>
where +

source

fn to_dyn(&self) -> &Bound<'py, PyArray<T, IxDyn>>
where T: Element, D: Dimension,

Turn an array with fixed dimensionality into one with dynamic dimensionality.

-
source

fn try_readonly(&self) -> Result<PyReadonlyArray<'py, T, D>, BorrowError>
where +

source

fn try_readonly(&self) -> Result<PyReadonlyArray<'py, T, D>, BorrowError>
where T: Element, D: Dimension,

Get an immutable borrow of the NumPy array

-
source

fn try_readwrite(&self) -> Result<PyReadwriteArray<'py, T, D>, BorrowError>
where +

source

fn try_readwrite(&self) -> Result<PyReadwriteArray<'py, T, D>, BorrowError>
where T: Element, D: Dimension,

Get a mutable borrow of the NumPy array

-
source

unsafe fn as_array(&self) -> ArrayView<'_, T, D>
where +

source

unsafe fn as_array(&self) -> ArrayView<'_, T, D>
where T: Element, D: Dimension,

Returns an ArrayView of the internal array.

See also PyReadonlyArray::as_array.

-
Safety
+
§Safety

Calling this method invalidates all exclusive references to the internal data, e.g. &mut [T] or ArrayViewMut.

-
source

unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>
where +

source

unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>
where T: Element, D: Dimension,

Returns an ArrayViewMut of the internal array.

See also PyReadwriteArray::as_array_mut.

-
Safety
+
§Safety

Calling this method invalidates all other references to the internal data, e.g. ArrayView or ArrayViewMut.

-
source

fn as_raw_array(&self) -> RawArrayView<T, D>
where +

source

fn as_raw_array(&self) -> RawArrayView<T, D>
where T: Element, D: Dimension,

Returns the internal array as RawArrayView enabling element access via raw pointers

-
source

fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>
where +

source

fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>
where T: Element, D: Dimension,

Returns the internal array as RawArrayViewMut enabling element access via raw pointers

-
source

fn copy_to<U: Element>(&self, other: &Bound<'py, PyArray<U, D>>) -> PyResult<()>
where +

source

fn copy_to<U: Element>(&self, other: &Bound<'py, PyArray<U, D>>) -> PyResult<()>
where T: Element,

Copies self into other, performing a data type conversion if necessary.

See also PyArray_CopyInto.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -192,13 +192,13 @@ 
Example
assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]); });
-
source

fn cast<U: Element>( +

source

fn cast<U: Element>( &self, - is_fortran: bool + is_fortran: bool ) -> PyResult<Bound<'py, PyArray<U, D>>>
where T: Element,

Cast the PyArray<T> to PyArray<U>, by allocating a new array.

See also PyArray_CastToType.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -209,7 +209,7 @@ 
Example
assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]); });
-
source

fn reshape_with_order<ID: IntoDimension>( +

source

fn reshape_with_order<ID: IntoDimension>( &self, dims: ID, order: NPY_ORDER @@ -218,29 +218,30 @@

Example
but has different dimensions specified by dims and a possibly different memory order specified by order.

See also numpy.reshape and PyArray_Newshape.

-
Example
-
use numpy::{npyffi::NPY_ORDER, PyArray};
+
§Example
+
use numpy::prelude::*;
+use numpy::{npyffi::NPY_ORDER, PyArray};
 use pyo3::Python;
 use ndarray::array;
 
 Python::with_gil(|py| {
     let array =
-        PyArray::from_iter(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
+        PyArray::from_iter_bound(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
 
     assert_eq!(array.readonly().as_array(), array![[0, 3, 6], [1, 4, 7], [2, 5, 8]]);
     assert!(array.is_fortran_contiguous());
 
     assert!(array.reshape([5]).is_err());
 });
-
source

unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>
where +

source

unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>
where T: Element,

Extends or truncates the dimensions of an array.

This method works only on contiguous arrays. Missing elements will be initialized as if calling zeros.

See also ndarray.resize and PyArray_Resize.

-
Safety
+
§Safety

There should be no outstanding references (shared or exclusive) into the array as this method might re-allocate it and thereby invalidate all pointers into it.

-
Example
+
§Example
use numpy::prelude::*;
 use numpy::PyArray;
 use pyo3::Python;
@@ -254,58 +255,58 @@ 
Example
} assert_eq!(pyarray.shape(), [100, 100]); });
-
source

unsafe fn try_as_matrix<R, C, RStride, CStride>( +

source

unsafe fn try_as_matrix<R, C, RStride, CStride>( &self -) -> Option<MatrixView<'_, T, R, C, RStride, CStride>>
where +) -> Option<MatrixView<'_, T, R, C, RStride, CStride>>
where T: Scalar + Element, D: Dimension, R: Dim, C: Dim, RStride: Dim, CStride: Dim,

Try to convert this array into a nalgebra::MatrixView using the given shape and strides.

-
Safety
+
§Safety

Calling this method invalidates all exclusive references to the internal data, e.g. ArrayViewMut or MatrixSliceMut.

-
source

unsafe fn try_as_matrix_mut<R, C, RStride, CStride>( +

source

unsafe fn try_as_matrix_mut<R, C, RStride, CStride>( &self -) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>>
where +) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>>
where T: Scalar + Element, D: Dimension, R: Dim, C: Dim, RStride: Dim, CStride: Dim,

Try to convert this array into a nalgebra::MatrixViewMut using the given shape and strides.

-
Safety
+
§Safety

Calling this method invalidates all other references to the internal data, e.g. ArrayView, MatrixSlice, ArrayViewMut or MatrixSliceMut.

-

Provided Methods§

source

fn dims(&self) -> D
where +

Provided Methods§

source

fn dims(&self) -> D
where D: Dimension,

Same as shape, but returns D instead of &[usize].

-
source

unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError>
where +

source

unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError>
where T: Element, D: Dimension,

Returns an immutable view of the internal data as a slice.

-
Safety
+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased mutably by other instances of PyArray or concurrently modified by Python or other native code.

Please consider the safe alternative PyReadonlyArray::as_slice.

-
source

unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError>
where +

source

unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError>
where T: Element, D: Dimension,

Returns a mutable view of the internal data as a slice.

-
Safety
+
§Safety

Calling this method is undefined behaviour if the underlying array is aliased immutably or mutably by other instances of PyArray or concurrently modified by Python or other native code.

Please consider the safe alternative PyReadwriteArray::as_slice_mut.

-
source

unsafe fn uget<Idx>(&self, index: Idx) -> &T
where +

source

unsafe fn uget<Idx>(&self, index: Idx) -> &T
where T: Element, D: Dimension, Idx: NpyIndex<Dim = D>,

Get an immutable reference of the specified element, without checking the given index.

See NpyIndex for what types can be used as the index.

-
Safety
+
§Safety

Passing an invalid index is undefined behavior. The element must also have been initialized and all other references to it is must also be shared.

See PyReadonlyArray::get for a safe alternative.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -314,27 +315,27 @@ 
Example
assert_eq!(unsafe { *pyarray.uget([1, 0, 3]) }, 11); });
-
source

unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T
where +

source

unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T
where T: Element, D: Dimension, Idx: NpyIndex<Dim = D>,

Same as uget, but returns &mut T.

-
Safety
+
§Safety

Passing an invalid index is undefined behavior. The element must also have been initialized and other references to it must not exist.

See PyReadwriteArray::get_mut for a safe alternative.

-
source

unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T
where +

source

unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T
where T: Element, D: Dimension, Idx: NpyIndex<Dim = D>,

Same as uget, but returns *mut T.

-
Safety
+
§Safety

Passing an invalid index is undefined behavior.

-
source

fn get_owned<Idx>(&self, index: Idx) -> Option<T>
where +

source

fn get_owned<Idx>(&self, index: Idx) -> Option<T>
where T: Element, D: Dimension, Idx: NpyIndex<Dim = D>,

Get a copy of the specified element in the array.

See NpyIndex for what types can be used as the index.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use pyo3::Python;
 
@@ -343,11 +344,11 @@ 
Example
assert_eq!(pyarray.get_owned([1, 0, 3]), Some(11)); });
-
source

fn to_vec(&self) -> Result<Vec<T>, NotContiguousError>
where +

source

fn to_vec(&self) -> Result<Vec<T>, NotContiguousError>
where T: Element, - D: Dimension,

Returns a copy of the internal data of the array as a Vec.

+ D: Dimension,

Returns a copy of the internal data of the array as a Vec.

Fails if the internal array is not contiguous. See also as_slice.

-
Example
+
§Example
use numpy::PyArray2;
 use pyo3::Python;
 
@@ -360,23 +361,23 @@ 
Example
assert_eq!(pyarray.to_vec().unwrap(), vec![0, 1, 2, 3]); });
-
source

fn readonly(&self) -> PyReadonlyArray<'py, T, D>
where +

source

fn readonly(&self) -> PyReadonlyArray<'py, T, D>
where T: Element, D: Dimension,

Get an immutable borrow of the NumPy array

-
Panics
+
§Panics

Panics if the allocation backing the array is currently mutably borrowed.

For a non-panicking variant, use try_readonly.

-
source

fn readwrite(&self) -> PyReadwriteArray<'py, T, D>
where +

source

fn readwrite(&self) -> PyReadwriteArray<'py, T, D>
where T: Element, D: Dimension,

Get a mutable borrow of the NumPy array

-
Panics
+
§Panics

Panics if the allocation backing the array is currently borrowed or if the array is flagged as not writeable.

For a non-panicking variant, use try_readwrite.

-
source

fn to_owned_array(&self) -> Array<T, D>
where +

source

fn to_owned_array(&self) -> Array<T, D>
where T: Element, D: Dimension,

Get a copy of the array as an ndarray::Array.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods};
 use ndarray::array;
 use pyo3::Python;
@@ -389,49 +390,49 @@ 
Example
array![[0, 1], [2, 3]] ) });
-
source

fn reshape<ID: IntoDimension>( +

source

fn reshape<ID: IntoDimension>( &self, dims: ID ) -> PyResult<Bound<'py, PyArray<T, ID::Dim>>>
where T: Element,

Special case of reshape_with_order which keeps the memory order the same.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'py, T, D> PyArrayMethods<'py, T, D> for Bound<'py, PyArray<T, D>>

source§

fn as_untyped(&self) -> &Bound<'py, PyUntypedArray>

source§

fn data(&self) -> *mut T

source§

unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>
where +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'py, T, D> PyArrayMethods<'py, T, D> for Bound<'py, PyArray<T, D>>

source§

fn as_untyped(&self) -> &Bound<'py, PyUntypedArray>

source§

fn data(&self) -> *mut T

source§

unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>
where T: Element, - D: Dimension,

source§

unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>
where + D: Dimension,

source§

unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>
where T: Element, - D: Dimension,

source§

fn to_dyn(&self) -> &Bound<'py, PyArray<T, IxDyn>>

source§

fn try_readonly(&self) -> Result<PyReadonlyArray<'py, T, D>, BorrowError>
where + D: Dimension,

source§

fn to_dyn(&self) -> &Bound<'py, PyArray<T, IxDyn>>

source§

fn try_readonly(&self) -> Result<PyReadonlyArray<'py, T, D>, BorrowError>
where T: Element, - D: Dimension,

source§

fn try_readwrite(&self) -> Result<PyReadwriteArray<'py, T, D>, BorrowError>
where + D: Dimension,

source§

fn try_readwrite(&self) -> Result<PyReadwriteArray<'py, T, D>, BorrowError>
where T: Element, - D: Dimension,

source§

unsafe fn as_array(&self) -> ArrayView<'_, T, D>
where + D: Dimension,

source§

unsafe fn as_array(&self) -> ArrayView<'_, T, D>
where T: Element, - D: Dimension,

source§

unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>
where + D: Dimension,

source§

unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>
where T: Element, - D: Dimension,

source§

fn as_raw_array(&self) -> RawArrayView<T, D>
where + D: Dimension,

source§

fn as_raw_array(&self) -> RawArrayView<T, D>
where T: Element, - D: Dimension,

source§

fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>
where + D: Dimension,

source§

fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>
where T: Element, - D: Dimension,

source§

fn copy_to<U: Element>(&self, other: &Bound<'py, PyArray<U, D>>) -> PyResult<()>
where - T: Element,

source§

fn cast<U: Element>( + D: Dimension,

source§

fn copy_to<U: Element>(&self, other: &Bound<'py, PyArray<U, D>>) -> PyResult<()>
where + T: Element,

source§

fn cast<U: Element>( &self, - is_fortran: bool + is_fortran: bool ) -> PyResult<Bound<'py, PyArray<U, D>>>
where - T: Element,

source§

fn reshape_with_order<ID: IntoDimension>( + T: Element,

source§

fn reshape_with_order<ID: IntoDimension>( &self, dims: ID, order: NPY_ORDER ) -> PyResult<Bound<'py, PyArray<T, ID::Dim>>>
where - T: Element,

source§

unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>
where - T: Element,

source§

unsafe fn try_as_matrix<R, C, RStride, CStride>( + T: Element,

source§

unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>
where + T: Element,

source§

unsafe fn try_as_matrix<R, C, RStride, CStride>( &self -) -> Option<MatrixView<'_, T, R, C, RStride, CStride>>
where +) -> Option<MatrixView<'_, T, R, C, RStride, CStride>>
where T: Scalar + Element, D: Dimension, R: Dim, C: Dim, RStride: Dim, - CStride: Dim,

source§

unsafe fn try_as_matrix_mut<R, C, RStride, CStride>( + CStride: Dim,

source§

unsafe fn try_as_matrix_mut<R, C, RStride, CStride>( &self -) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>>
where +) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>>
where T: Scalar + Element, D: Dimension, R: Dim, diff --git a/numpy/array/type.PyArray0.html b/numpy/array/type.PyArray0.html index 145bb83b2..c5041cc22 100644 --- a/numpy/array/type.PyArray0.html +++ b/numpy/array/type.PyArray0.html @@ -1,3 +1,3 @@ -PyArray0 in numpy::array - Rust +PyArray0 in numpy::array - Rust

Type Alias numpy::array::PyArray0

source ·
pub type PyArray0<T> = PyArray<T, Ix0>;
Expand description

Zero-dimensional array.

Aliased Type§

struct PyArray0<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/array/type.PyArray1.html b/numpy/array/type.PyArray1.html index 437e708b5..324684754 100644 --- a/numpy/array/type.PyArray1.html +++ b/numpy/array/type.PyArray1.html @@ -1,3 +1,3 @@ -PyArray1 in numpy::array - Rust +PyArray1 in numpy::array - Rust

Type Alias numpy::array::PyArray1

source ·
pub type PyArray1<T> = PyArray<T, Ix1>;
Expand description

One-dimensional array.

Aliased Type§

struct PyArray1<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/array/type.PyArray2.html b/numpy/array/type.PyArray2.html index e7cfad277..f4c758f76 100644 --- a/numpy/array/type.PyArray2.html +++ b/numpy/array/type.PyArray2.html @@ -1,3 +1,3 @@ -PyArray2 in numpy::array - Rust +PyArray2 in numpy::array - Rust

Type Alias numpy::array::PyArray2

source ·
pub type PyArray2<T> = PyArray<T, Ix2>;
Expand description

Two-dimensional array.

Aliased Type§

struct PyArray2<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/array/type.PyArray3.html b/numpy/array/type.PyArray3.html index eda50d78d..c43a72451 100644 --- a/numpy/array/type.PyArray3.html +++ b/numpy/array/type.PyArray3.html @@ -1,3 +1,3 @@ -PyArray3 in numpy::array - Rust +PyArray3 in numpy::array - Rust

Type Alias numpy::array::PyArray3

source ·
pub type PyArray3<T> = PyArray<T, Ix3>;
Expand description

Three-dimensional array.

Aliased Type§

struct PyArray3<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/array/type.PyArray4.html b/numpy/array/type.PyArray4.html index df0667c82..dd1adee47 100644 --- a/numpy/array/type.PyArray4.html +++ b/numpy/array/type.PyArray4.html @@ -1,3 +1,3 @@ -PyArray4 in numpy::array - Rust +PyArray4 in numpy::array - Rust

Type Alias numpy::array::PyArray4

source ·
pub type PyArray4<T> = PyArray<T, Ix4>;
Expand description

Four-dimensional array.

Aliased Type§

struct PyArray4<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/array/type.PyArray5.html b/numpy/array/type.PyArray5.html index 31f1dd774..0ab34545d 100644 --- a/numpy/array/type.PyArray5.html +++ b/numpy/array/type.PyArray5.html @@ -1,3 +1,3 @@ -PyArray5 in numpy::array - Rust +PyArray5 in numpy::array - Rust

Type Alias numpy::array::PyArray5

source ·
pub type PyArray5<T> = PyArray<T, Ix5>;
Expand description

Five-dimensional array.

Aliased Type§

struct PyArray5<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/array/type.PyArray6.html b/numpy/array/type.PyArray6.html index 3ef99d23b..81252118f 100644 --- a/numpy/array/type.PyArray6.html +++ b/numpy/array/type.PyArray6.html @@ -1,3 +1,3 @@ -PyArray6 in numpy::array - Rust +PyArray6 in numpy::array - Rust

Type Alias numpy::array::PyArray6

source ·
pub type PyArray6<T> = PyArray<T, Ix6>;
Expand description

Six-dimensional array.

Aliased Type§

struct PyArray6<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/array/type.PyArrayDyn.html b/numpy/array/type.PyArrayDyn.html index 42882ed23..b6b932e16 100644 --- a/numpy/array/type.PyArrayDyn.html +++ b/numpy/array/type.PyArrayDyn.html @@ -1,3 +1,3 @@ -PyArrayDyn in numpy::array - Rust +PyArrayDyn in numpy::array - Rust

Type Alias numpy::array::PyArrayDyn

source ·
pub type PyArrayDyn<T> = PyArray<T, IxDyn>;
Expand description

Dynamic-dimensional array.

Aliased Type§

struct PyArrayDyn<T>(/* private fields */);
\ No newline at end of file diff --git a/numpy/borrow/index.html b/numpy/borrow/index.html index 752ecb849..08cb322d3 100644 --- a/numpy/borrow/index.html +++ b/numpy/borrow/index.html @@ -1,11 +1,11 @@ -numpy::borrow - Rust +numpy::borrow - Rust

Module numpy::borrow

source ·
Expand description

Types to safely create references into NumPy arrays

It is assumed that unchecked code - which includes unsafe Rust and Python - is validated by its author which together with the dynamic borrow checking performed by this crate ensures that safe Rust code cannot cause undefined behaviour by creating references into NumPy arrays.

With these borrows established, references to individual elements or reference-based views of whole array can be created safely. These are then the starting point for algorithms iteraing over and operating on the elements of the array.

-

Examples

+

§Examples

The first example shows that dynamic borrow checking works to constrain both what safe Rust code can invoke and how it is invoked.

@@ -94,7 +94,7 @@

Examples

})); assert!(res.is_err()); });
-

Rationale

+

§Rationale

Rust references require aliasing discipline to be maintained, i.e. there must always exist only a single mutable (aka exclusive) reference or multiple immutable (aka shared) references for each object, otherwise the program contains undefined behaviour.

@@ -118,7 +118,7 @@

Rationale

In summary, this crate takes the position that all unchecked code - unsafe Rust, Python, C, Fortran, etc. - must be checked for correctness by its author. Safe Rust code can then rely on this correctness, but should not be able to introduce memory safety issues on its own. Additionally, dynamic borrow checking can catch some mistakes introduced by unchecked code, e.g. Python calling a function with the same array as an input and as an output argument.

-

Limitations

+

§Limitations

Note that the current implementation of this is an over-approximation: It will consider borrows potentially conflicting if the initial arrays have the same object at the end of their base object chain. Then, multiple conditions which are sufficient but not necessary to show the absence of conflicts are checked.

@@ -130,4 +130,4 @@

Limitations

which ensures that all accepted programs are memory safe but does not necessarily accept all memory safe programs. However, the unsafe method PyArray::as_array_mut can be used as an escape hatch. More involved cases like the example from above may be supported in the future.

-

Structs

Type Aliases

\ No newline at end of file +

Structs§

Type Aliases§

\ No newline at end of file diff --git a/numpy/borrow/struct.PyReadonlyArray.html b/numpy/borrow/struct.PyReadonlyArray.html index 101d8c062..caea690f9 100644 --- a/numpy/borrow/struct.PyReadonlyArray.html +++ b/numpy/borrow/struct.PyReadonlyArray.html @@ -1,4 +1,4 @@ -PyReadonlyArray in numpy::borrow - Rust +PyReadonlyArray in numpy::borrow - Rust
pub struct PyReadonlyArray<'py, T, D>
where T: Element, D: Dimension,
{ /* private fields */ }
Expand description

Read-only borrow of an array.

@@ -8,14 +8,14 @@

Implementations§

source§

impl<'py, T, D> PyReadonlyArray<'py, T, D>
where T: Element, D: Dimension,

source

pub fn as_array(&self) -> ArrayView<'_, T, D>

Provides an immutable array view of the interior of the NumPy array.

-
source

pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

-
source

pub fn get<I>(&self, index: I) -> Option<&T>
where +

source

pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

+
source

pub fn get<I>(&self, index: I) -> Option<&T>
where I: NpyIndex<Dim = D>,

Provide an immutable reference to an element of the NumPy array if the index is within bounds.

source§

impl<'py, N, D> PyReadonlyArray<'py, N, D>
where N: Scalar + Element, D: Dimension,

source

pub fn try_as_matrix<R, C, RStride, CStride>( &self -) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
where +) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
where R: Dim, C: Dim, RStride: Dim, @@ -54,17 +54,17 @@ });

source§

impl<'py, N> PyReadonlyArray<'py, N, Ix1>
where N: Scalar + Element,

source

pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

Convert this one-dimensional array into a nalgebra::DMatrixView using dynamic strides.

-
Panics
+
§Panics

Panics if the array has negative strides.

source§

impl<'py, N> PyReadonlyArray<'py, N, Ix2>
where N: Scalar + Element,

source

pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

Convert this two-dimensional array into a nalgebra::DMatrixView using dynamic strides.

-
Panics
+
§Panics

Panics if the array has negative strides.

-

Methods from Deref<Target = Bound<'py, PyArray<T, D>>>§

pub fn borrow(&self) -> PyRef<'py, T>

Immutably borrows the value T.

+

Methods from Deref<Target = Bound<'py, PyArray<T, D>>>§

pub fn borrow(&self) -> PyRef<'py, T>

Immutably borrows the value T.

This borrow lasts while the returned [PyRef] exists. Multiple immutable borrows can be taken out at the same time.

For frozen classes, the simpler [get][Self::get] is available.

-
Examples
+
§Examples
#[pyclass]
 struct Foo {
     inner: u8,
@@ -77,13 +77,13 @@ 
Examples
assert_eq!(*inner, 73); Ok(()) })?;
-
Panics
+
§Panics

Panics if the value is currently mutably borrowed. For a non-panicking variant, use try_borrow.

pub fn borrow_mut(&self) -> PyRefMut<'py, T>
where T: PyClass<Frozen = False>,

Mutably borrows the value T.

This borrow lasts while the returned [PyRefMut] exists.

-
Examples
+
§Examples
#[pyclass]
 struct Foo {
     inner: u8,
@@ -96,21 +96,21 @@ 
Examples
assert_eq!(foo.borrow().inner, 35); Ok(()) })?;
-
Panics
+
§Panics

Panics if the value is currently borrowed. For a non-panicking variant, use try_borrow_mut.

-

pub fn try_borrow(&self) -> Result<PyRef<'py, T>, PyBorrowError>

Attempts to immutably borrow the value T, returning an error if the value is currently mutably borrowed.

+

pub fn try_borrow(&self) -> Result<PyRef<'py, T>, PyBorrowError>

Attempts to immutably borrow the value T, returning an error if the value is currently mutably borrowed.

The borrow lasts while the returned [PyRef] exists.

This is the non-panicking variant of borrow.

For frozen classes, the simpler [get][Self::get] is available.

-

pub fn try_borrow_mut(&self) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
where +

pub fn try_borrow_mut(&self) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
where T: PyClass<Frozen = False>,

Attempts to mutably borrow the value T, returning an error if the value is currently borrowed.

The borrow lasts while the returned [PyRefMut] exists.

This is the non-panicking variant of borrow_mut.

-

pub fn get(&self) -> &T
where - T: PyClass<Frozen = True> + Sync,

Provide an immutable borrow of the value T without acquiring the GIL.

-

This is available if the class is [frozen][macro@crate::pyclass] and Sync.

-
Examples
+

pub fn get(&self) -> &T
where + T: PyClass<Frozen = True> + Sync,

Provide an immutable borrow of the value T without acquiring the GIL.

+

This is available if the class is [frozen][macro@crate::pyclass] and Sync.

+
§Examples
use std::sync::atomic::{AtomicUsize, Ordering};
 
 #[pyclass(frozen)]
@@ -126,40 +126,42 @@ 
Examples
py_counter.get().value.fetch_add(1, Ordering::Relaxed); });

pub fn py(&self) -> Python<'py>

Returns the GIL token associated with this object.

-

pub fn as_ptr(&self) -> *mut PyObject

Returns the raw FFI pointer represented by self.

-
Safety
+

pub fn as_ptr(&self) -> *mut PyObject

Returns the raw FFI pointer represented by self.

+
§Safety

Callers are responsible for ensuring that the pointer does not outlive self.

The reference is borrowed; callers should not decrease the reference count when they are finished with the pointer.

pub fn as_any(&self) -> &Bound<'py, PyAny>

Helper to cast to Bound<'py, PyAny>.

pub fn as_borrowed<'a>(&'a self) -> Borrowed<'a, 'py, T>

Casts this Bound<T> to a Borrowed<T> smart pointer.

+

pub fn as_unbound(&self) -> &Py<T>

Removes the connection for this Bound<T> from the GIL, allowing +it to cross thread boundaries, without transferring ownership.

pub fn as_gil_ref(&'py self) -> &'py <T as HasPyGilRef>::AsRefTarget
where T: HasPyGilRef,

Casts this Bound<T> as the corresponding “GIL Ref” type.

This is a helper to be used for migration from the deprecated “GIL Refs” API.

-

Trait Implementations§

source§

impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
where +

Trait Implementations§

source§

impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
where T: Element, - D: Dimension,

source§

fn clone(&self) -> Self

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<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
where + D: Dimension,

source§

fn clone(&self) -> Self

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<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
where T: Element, - D: Dimension,

source§

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

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

impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
where + D: Dimension,

source§

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

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

impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
where T: Element, - D: Dimension,

§

type Target = Bound<'py, PyArray<T, D>>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>
where + D: Dimension,

§

type Target = Bound<'py, PyArray<T, D>>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>
where T: Element, - D: Dimension,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadonlyArray<'py, T, D>

source§

fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
§

fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

Extracts Self from the source GIL Ref obj. Read more

Auto Trait Implementations§

§

impl<'py, T, D> !RefUnwindSafe for PyReadonlyArray<'py, T, D>

§

impl<'py, T, D> !Send for PyReadonlyArray<'py, T, D>

§

impl<'py, T, D> !Sync for PyReadonlyArray<'py, T, D>

§

impl<'py, T, D> Unpin for PyReadonlyArray<'py, T, D>
where - D: Unpin, - T: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
where - D: UnwindSafe, - 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ D: Dimension,
source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadonlyArray<'py, T, D>

source§

fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
§

fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

Extracts Self from the source GIL Ref obj. Read more

Auto Trait Implementations§

§

impl<'py, T, D> !RefUnwindSafe for PyReadonlyArray<'py, T, D>

§

impl<'py, T, D> !Send for PyReadonlyArray<'py, T, D>

§

impl<'py, T, D> !Sync for PyReadonlyArray<'py, T, D>

§

impl<'py, T, D> Unpin for PyReadonlyArray<'py, T, D>
where + D: Unpin, + T: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
where + D: UnwindSafe, + 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<'py, T> FromPyObjectBound<'_, 'py> for T
where - T: FromPyObject<'py>,

§

fn from_py_object_bound(ob: &Bound<'py, PyAny>) -> Result<T, PyErr>

Extracts Self from the bound smart pointer obj. Read more
source§

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

source§

fn into(self) -> U

Calls U::from(self).

+ T: FromPyObject<'py>,
§

fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>

Extracts Self from the bound smart pointer obj. Read more
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.

+From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where - SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

§

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, U> TryFrom<U> for T
where - U: Into<T>,

§

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>,

§

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.
\ No newline at end of file + SS: SubsetOf<SP>,
§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

§

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, U> TryFrom<U> for T
where + U: Into<T>,

§

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>,

§

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.
\ No newline at end of file diff --git a/numpy/borrow/struct.PyReadwriteArray.html b/numpy/borrow/struct.PyReadwriteArray.html index ca2844f30..f87db538e 100644 --- a/numpy/borrow/struct.PyReadwriteArray.html +++ b/numpy/borrow/struct.PyReadwriteArray.html @@ -1,4 +1,4 @@ -PyReadwriteArray in numpy::borrow - Rust +PyReadwriteArray in numpy::borrow - Rust
pub struct PyReadwriteArray<'py, T, D>
where T: Element, D: Dimension,
{ /* private fields */ }
Expand description

Read-write borrow of an array.

@@ -8,14 +8,14 @@

Implementations§

source§

impl<'py, T, D> PyReadwriteArray<'py, T, D>
where T: Element, D: Dimension,

source

pub fn as_array_mut(&mut self) -> ArrayViewMut<'_, T, D>

Provides a mutable array view of the interior of the NumPy array.

-
source

pub fn as_slice_mut(&mut self) -> Result<&mut [T], NotContiguousError>

Provide a mutable slice view of the interior of the NumPy array if it is contiguous.

-
source

pub fn get_mut<I>(&mut self, index: I) -> Option<&mut T>
where +

source

pub fn as_slice_mut(&mut self) -> Result<&mut [T], NotContiguousError>

Provide a mutable slice view of the interior of the NumPy array if it is contiguous.

+
source

pub fn get_mut<I>(&mut self, index: I) -> Option<&mut T>
where I: NpyIndex<Dim = D>,

Provide a mutable reference to an element of the NumPy array if the index is within bounds.

source§

impl<'py, N, D> PyReadwriteArray<'py, N, D>
where N: Scalar + Element, D: Dimension,

source

pub fn try_as_matrix_mut<R, C, RStride, CStride>( &self -) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
where +) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
where R: Dim, C: Dim, RStride: Dim, @@ -23,16 +23,16 @@

See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

source§

impl<'py, N> PyReadwriteArray<'py, N, Ix1>
where N: Scalar + Element,

source

pub fn as_matrix_mut(&self) -> DMatrixViewMut<'_, N, Dyn, Dyn>

Convert this one-dimensional array into a nalgebra::DMatrixViewMut using dynamic strides.

-
Panics
+
§Panics

Panics if the array has negative strides.

source§

impl<'py, N> PyReadwriteArray<'py, N, Ix2>
where N: Scalar + Element,

source

pub fn as_matrix_mut(&self) -> DMatrixViewMut<'_, N, Dyn, Dyn>

Convert this two-dimensional array into a nalgebra::DMatrixViewMut using dynamic strides.

-
Panics
+
§Panics

Panics if the array has negative strides.

source§

impl<'py, T> PyReadwriteArray<'py, T, Ix1>
where T: Element,

source

pub fn resize<ID: IntoDimension>(self, dims: ID) -> PyResult<Self>

Extends or truncates the dimensions of an array.

Safe wrapper for PyArray::resize.

-
Example
+
§Example
use numpy::{PyArray, PyArrayMethods, PyUntypedArrayMethods};
 use pyo3::Python;
 
@@ -44,13 +44,13 @@ 
Example
let pyarray = pyarray.resize(100).unwrap(); assert_eq!(pyarray.len(), 100); });
-

Methods from Deref<Target = PyReadonlyArray<'py, T, D>>§

source

pub fn as_array(&self) -> ArrayView<'_, T, D>

Provides an immutable array view of the interior of the NumPy array.

-
source

pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

-
source

pub fn get<I>(&self, index: I) -> Option<&T>
where +

Methods from Deref<Target = PyReadonlyArray<'py, T, D>>§

source

pub fn as_array(&self) -> ArrayView<'_, T, D>

Provides an immutable array view of the interior of the NumPy array.

+
source

pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

+
source

pub fn get<I>(&self, index: I) -> Option<&T>
where I: NpyIndex<Dim = D>,

Provide an immutable reference to an element of the NumPy array if the index is within bounds.

source

pub fn try_as_matrix<R, C, RStride, CStride>( &self -) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
where +) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
where R: Dim, C: Dim, RStride: Dim, @@ -88,16 +88,16 @@
Example
py_run!(py, np sum_dynamic_strides, r"assert sum_dynamic_strides(np.ones((2, 2, 2))[:,:,0]) == 4."); });

source

pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

Convert this one-dimensional array into a nalgebra::DMatrixView using dynamic strides.

-
Panics
+
§Panics

Panics if the array has negative strides.

source

pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

Convert this two-dimensional array into a nalgebra::DMatrixView using dynamic strides.

-
Panics
+
§Panics

Panics if the array has negative strides.

-

Methods from Deref<Target = Bound<'py, PyArray<T, D>>>§

pub fn borrow(&self) -> PyRef<'py, T>

Immutably borrows the value T.

+

Methods from Deref<Target = Bound<'py, PyArray<T, D>>>§

pub fn borrow(&self) -> PyRef<'py, T>

Immutably borrows the value T.

This borrow lasts while the returned [PyRef] exists. Multiple immutable borrows can be taken out at the same time.

For frozen classes, the simpler [get][Self::get] is available.

-
Examples
+
§Examples
#[pyclass]
 struct Foo {
     inner: u8,
@@ -110,13 +110,13 @@ 
Examples
assert_eq!(*inner, 73); Ok(()) })?;
-
Panics
+
§Panics

Panics if the value is currently mutably borrowed. For a non-panicking variant, use try_borrow.

pub fn borrow_mut(&self) -> PyRefMut<'py, T>
where T: PyClass<Frozen = False>,

Mutably borrows the value T.

This borrow lasts while the returned [PyRefMut] exists.

-
Examples
+
§Examples
#[pyclass]
 struct Foo {
     inner: u8,
@@ -129,21 +129,21 @@ 
Examples
assert_eq!(foo.borrow().inner, 35); Ok(()) })?;
-
Panics
+
§Panics

Panics if the value is currently borrowed. For a non-panicking variant, use try_borrow_mut.

-

pub fn try_borrow(&self) -> Result<PyRef<'py, T>, PyBorrowError>

Attempts to immutably borrow the value T, returning an error if the value is currently mutably borrowed.

+

pub fn try_borrow(&self) -> Result<PyRef<'py, T>, PyBorrowError>

Attempts to immutably borrow the value T, returning an error if the value is currently mutably borrowed.

The borrow lasts while the returned [PyRef] exists.

This is the non-panicking variant of borrow.

For frozen classes, the simpler [get][Self::get] is available.

-

pub fn try_borrow_mut(&self) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
where +

pub fn try_borrow_mut(&self) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
where T: PyClass<Frozen = False>,

Attempts to mutably borrow the value T, returning an error if the value is currently borrowed.

The borrow lasts while the returned [PyRefMut] exists.

This is the non-panicking variant of borrow_mut.

-

pub fn get(&self) -> &T
where - T: PyClass<Frozen = True> + Sync,

Provide an immutable borrow of the value T without acquiring the GIL.

-

This is available if the class is [frozen][macro@crate::pyclass] and Sync.

-
Examples
+

pub fn get(&self) -> &T
where + T: PyClass<Frozen = True> + Sync,

Provide an immutable borrow of the value T without acquiring the GIL.

+

This is available if the class is [frozen][macro@crate::pyclass] and Sync.

+
§Examples
use std::sync::atomic::{AtomicUsize, Ordering};
 
 #[pyclass(frozen)]
@@ -159,37 +159,39 @@ 
Examples
py_counter.get().value.fetch_add(1, Ordering::Relaxed); });

pub fn py(&self) -> Python<'py>

Returns the GIL token associated with this object.

-

pub fn as_ptr(&self) -> *mut PyObject

Returns the raw FFI pointer represented by self.

-
Safety
+

pub fn as_ptr(&self) -> *mut PyObject

Returns the raw FFI pointer represented by self.

+
§Safety

Callers are responsible for ensuring that the pointer does not outlive self.

The reference is borrowed; callers should not decrease the reference count when they are finished with the pointer.

pub fn as_any(&self) -> &Bound<'py, PyAny>

Helper to cast to Bound<'py, PyAny>.

pub fn as_borrowed<'a>(&'a self) -> Borrowed<'a, 'py, T>

Casts this Bound<T> to a Borrowed<T> smart pointer.

+

pub fn as_unbound(&self) -> &Py<T>

Removes the connection for this Bound<T> from the GIL, allowing +it to cross thread boundaries, without transferring ownership.

pub fn as_gil_ref(&'py self) -> &'py <T as HasPyGilRef>::AsRefTarget
where T: HasPyGilRef,

Casts this Bound<T> as the corresponding “GIL Ref” type.

This is a helper to be used for migration from the deprecated “GIL Refs” API.

-

Trait Implementations§

source§

impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
where +

Trait Implementations§

source§

impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
where T: Element, - D: Dimension,

source§

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

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

impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>
where + D: Dimension,

source§

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

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

impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>
where T: Element, - D: Dimension,

§

type Target = PyReadonlyArray<'py, T, D>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>
where + D: Dimension,

§

type Target = PyReadonlyArray<'py, T, D>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>
where T: Element, - D: Dimension,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>

source§

fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
§

fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

Extracts Self from the source GIL Ref obj. Read more

Auto Trait Implementations§

§

impl<'py, T, D> !RefUnwindSafe for PyReadwriteArray<'py, T, D>

§

impl<'py, T, D> !Send for PyReadwriteArray<'py, T, D>

§

impl<'py, T, D> !Sync for PyReadwriteArray<'py, T, D>

§

impl<'py, T, D> Unpin for PyReadwriteArray<'py, T, D>
where - D: Unpin, - T: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
where - D: UnwindSafe, - 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ D: Dimension,
source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>

source§

fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
§

fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

Extracts Self from the source GIL Ref obj. Read more

Auto Trait Implementations§

§

impl<'py, T, D> !RefUnwindSafe for PyReadwriteArray<'py, T, D>

§

impl<'py, T, D> !Send for PyReadwriteArray<'py, T, D>

§

impl<'py, T, D> !Sync for PyReadwriteArray<'py, T, D>

§

impl<'py, T, D> Unpin for PyReadwriteArray<'py, T, D>
where + D: Unpin, + T: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
where + D: UnwindSafe, + 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<'py, T> FromPyObjectBound<'_, 'py> for T
where - T: FromPyObject<'py>,

§

fn from_py_object_bound(ob: &Bound<'py, PyAny>) -> Result<T, PyErr>

Extracts Self from the bound smart pointer obj. Read more
source§

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

source§

fn into(self) -> U

Calls U::from(self).

+ T: FromPyObject<'py>,
§

fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>

Extracts Self from the bound smart pointer obj. Read more
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.

+From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where - SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

§

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>,

§

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.
\ No newline at end of file + SS: SubsetOf<SP>,
§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

§

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>,

§

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.
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray0.html b/numpy/borrow/type.PyReadonlyArray0.html index 9cd47c684..4f4b3bbdf 100644 --- a/numpy/borrow/type.PyReadonlyArray0.html +++ b/numpy/borrow/type.PyReadonlyArray0.html @@ -1,3 +1,3 @@ -PyReadonlyArray0 in numpy::borrow - Rust +PyReadonlyArray0 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArray0

source ·
pub type PyReadonlyArray0<'py, T> = PyReadonlyArray<'py, T, Ix0>;
Expand description

Read-only borrow of a zero-dimensional array.

Aliased Type§

struct PyReadonlyArray0<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray1.html b/numpy/borrow/type.PyReadonlyArray1.html index 246e2f250..50c031e1d 100644 --- a/numpy/borrow/type.PyReadonlyArray1.html +++ b/numpy/borrow/type.PyReadonlyArray1.html @@ -1,3 +1,3 @@ -PyReadonlyArray1 in numpy::borrow - Rust +PyReadonlyArray1 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArray1

source ·
pub type PyReadonlyArray1<'py, T> = PyReadonlyArray<'py, T, Ix1>;
Expand description

Read-only borrow of a one-dimensional array.

Aliased Type§

struct PyReadonlyArray1<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray2.html b/numpy/borrow/type.PyReadonlyArray2.html index f78bdfc52..c715ae223 100644 --- a/numpy/borrow/type.PyReadonlyArray2.html +++ b/numpy/borrow/type.PyReadonlyArray2.html @@ -1,3 +1,3 @@ -PyReadonlyArray2 in numpy::borrow - Rust +PyReadonlyArray2 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArray2

source ·
pub type PyReadonlyArray2<'py, T> = PyReadonlyArray<'py, T, Ix2>;
Expand description

Read-only borrow of a two-dimensional array.

Aliased Type§

struct PyReadonlyArray2<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray3.html b/numpy/borrow/type.PyReadonlyArray3.html index eaf507c82..11d3e3c3d 100644 --- a/numpy/borrow/type.PyReadonlyArray3.html +++ b/numpy/borrow/type.PyReadonlyArray3.html @@ -1,3 +1,3 @@ -PyReadonlyArray3 in numpy::borrow - Rust +PyReadonlyArray3 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArray3

source ·
pub type PyReadonlyArray3<'py, T> = PyReadonlyArray<'py, T, Ix3>;
Expand description

Read-only borrow of a three-dimensional array.

Aliased Type§

struct PyReadonlyArray3<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray4.html b/numpy/borrow/type.PyReadonlyArray4.html index d52a6184e..a94ca51a0 100644 --- a/numpy/borrow/type.PyReadonlyArray4.html +++ b/numpy/borrow/type.PyReadonlyArray4.html @@ -1,3 +1,3 @@ -PyReadonlyArray4 in numpy::borrow - Rust +PyReadonlyArray4 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArray4

source ·
pub type PyReadonlyArray4<'py, T> = PyReadonlyArray<'py, T, Ix4>;
Expand description

Read-only borrow of a four-dimensional array.

Aliased Type§

struct PyReadonlyArray4<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray5.html b/numpy/borrow/type.PyReadonlyArray5.html index 195a54e43..f37bc4c7f 100644 --- a/numpy/borrow/type.PyReadonlyArray5.html +++ b/numpy/borrow/type.PyReadonlyArray5.html @@ -1,3 +1,3 @@ -PyReadonlyArray5 in numpy::borrow - Rust +PyReadonlyArray5 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArray5

source ·
pub type PyReadonlyArray5<'py, T> = PyReadonlyArray<'py, T, Ix5>;
Expand description

Read-only borrow of a five-dimensional array.

Aliased Type§

struct PyReadonlyArray5<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray6.html b/numpy/borrow/type.PyReadonlyArray6.html index 0680f9ec6..f46aae23c 100644 --- a/numpy/borrow/type.PyReadonlyArray6.html +++ b/numpy/borrow/type.PyReadonlyArray6.html @@ -1,3 +1,3 @@ -PyReadonlyArray6 in numpy::borrow - Rust +PyReadonlyArray6 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArray6

source ·
pub type PyReadonlyArray6<'py, T> = PyReadonlyArray<'py, T, Ix6>;
Expand description

Read-only borrow of a six-dimensional array.

Aliased Type§

struct PyReadonlyArray6<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArrayDyn.html b/numpy/borrow/type.PyReadonlyArrayDyn.html index e7ca9ba7a..bc762368a 100644 --- a/numpy/borrow/type.PyReadonlyArrayDyn.html +++ b/numpy/borrow/type.PyReadonlyArrayDyn.html @@ -1,3 +1,3 @@ -PyReadonlyArrayDyn in numpy::borrow - Rust +PyReadonlyArrayDyn in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadonlyArrayDyn

source ·
pub type PyReadonlyArrayDyn<'py, T> = PyReadonlyArray<'py, T, IxDyn>;
Expand description

Read-only borrow of an array whose dimensionality is determined at runtime.

Aliased Type§

struct PyReadonlyArrayDyn<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArray0.html b/numpy/borrow/type.PyReadwriteArray0.html index a8d12a728..95cb3408e 100644 --- a/numpy/borrow/type.PyReadwriteArray0.html +++ b/numpy/borrow/type.PyReadwriteArray0.html @@ -1,3 +1,3 @@ -PyReadwriteArray0 in numpy::borrow - Rust +PyReadwriteArray0 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArray0

source ·
pub type PyReadwriteArray0<'py, T> = PyReadwriteArray<'py, T, Ix0>;
Expand description

Read-write borrow of a zero-dimensional array.

Aliased Type§

struct PyReadwriteArray0<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArray1.html b/numpy/borrow/type.PyReadwriteArray1.html index 2619bc3b6..cdeffb7d7 100644 --- a/numpy/borrow/type.PyReadwriteArray1.html +++ b/numpy/borrow/type.PyReadwriteArray1.html @@ -1,3 +1,3 @@ -PyReadwriteArray1 in numpy::borrow - Rust +PyReadwriteArray1 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArray1

source ·
pub type PyReadwriteArray1<'py, T> = PyReadwriteArray<'py, T, Ix1>;
Expand description

Read-write borrow of a one-dimensional array.

Aliased Type§

struct PyReadwriteArray1<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArray2.html b/numpy/borrow/type.PyReadwriteArray2.html index 1ab5cd5f2..e0442a1d0 100644 --- a/numpy/borrow/type.PyReadwriteArray2.html +++ b/numpy/borrow/type.PyReadwriteArray2.html @@ -1,3 +1,3 @@ -PyReadwriteArray2 in numpy::borrow - Rust +PyReadwriteArray2 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArray2

source ·
pub type PyReadwriteArray2<'py, T> = PyReadwriteArray<'py, T, Ix2>;
Expand description

Read-write borrow of a two-dimensional array.

Aliased Type§

struct PyReadwriteArray2<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArray3.html b/numpy/borrow/type.PyReadwriteArray3.html index f7a31d897..7b32c1770 100644 --- a/numpy/borrow/type.PyReadwriteArray3.html +++ b/numpy/borrow/type.PyReadwriteArray3.html @@ -1,3 +1,3 @@ -PyReadwriteArray3 in numpy::borrow - Rust +PyReadwriteArray3 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArray3

source ·
pub type PyReadwriteArray3<'py, T> = PyReadwriteArray<'py, T, Ix3>;
Expand description

Read-write borrow of a three-dimensional array.

Aliased Type§

struct PyReadwriteArray3<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArray4.html b/numpy/borrow/type.PyReadwriteArray4.html index 8db647c96..518a14053 100644 --- a/numpy/borrow/type.PyReadwriteArray4.html +++ b/numpy/borrow/type.PyReadwriteArray4.html @@ -1,3 +1,3 @@ -PyReadwriteArray4 in numpy::borrow - Rust +PyReadwriteArray4 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArray4

source ·
pub type PyReadwriteArray4<'py, T> = PyReadwriteArray<'py, T, Ix4>;
Expand description

Read-write borrow of a four-dimensional array.

Aliased Type§

struct PyReadwriteArray4<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArray5.html b/numpy/borrow/type.PyReadwriteArray5.html index 61f17566c..ded5979fb 100644 --- a/numpy/borrow/type.PyReadwriteArray5.html +++ b/numpy/borrow/type.PyReadwriteArray5.html @@ -1,3 +1,3 @@ -PyReadwriteArray5 in numpy::borrow - Rust +PyReadwriteArray5 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArray5

source ·
pub type PyReadwriteArray5<'py, T> = PyReadwriteArray<'py, T, Ix5>;
Expand description

Read-write borrow of a five-dimensional array.

Aliased Type§

struct PyReadwriteArray5<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArray6.html b/numpy/borrow/type.PyReadwriteArray6.html index 69722c1dc..ccd96700b 100644 --- a/numpy/borrow/type.PyReadwriteArray6.html +++ b/numpy/borrow/type.PyReadwriteArray6.html @@ -1,3 +1,3 @@ -PyReadwriteArray6 in numpy::borrow - Rust +PyReadwriteArray6 in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArray6

source ·
pub type PyReadwriteArray6<'py, T> = PyReadwriteArray<'py, T, Ix6>;
Expand description

Read-write borrow of a six-dimensional array.

Aliased Type§

struct PyReadwriteArray6<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadwriteArrayDyn.html b/numpy/borrow/type.PyReadwriteArrayDyn.html index 146c91c00..ec7a111a5 100644 --- a/numpy/borrow/type.PyReadwriteArrayDyn.html +++ b/numpy/borrow/type.PyReadwriteArrayDyn.html @@ -1,3 +1,3 @@ -PyReadwriteArrayDyn in numpy::borrow - Rust +PyReadwriteArrayDyn in numpy::borrow - Rust

Type Alias numpy::borrow::PyReadwriteArrayDyn

source ·
pub type PyReadwriteArrayDyn<'py, T> = PyReadwriteArray<'py, T, IxDyn>;
Expand description

Read-write borrow of an array whose dimensionality is determined at runtime.

Aliased Type§

struct PyReadwriteArrayDyn<'py, T> { /* private fields */ }
\ No newline at end of file diff --git a/numpy/convert/index.html b/numpy/convert/index.html index 12d33b25c..f71e222af 100644 --- a/numpy/convert/index.html +++ b/numpy/convert/index.html @@ -1,3 +1,3 @@ -numpy::convert - Rust -

Module numpy::convert

source ·
Expand description

Defines conversion traits between Rust types and NumPy data types.

-

Traits

  • Conversion trait from owning Rust types into PyArray.
  • Trait implemented by types that can be used to index an array.
  • Utility trait to specify the dimensions of an array.
  • Conversion trait from borrowing Rust types to PyArray.
\ No newline at end of file +numpy::convert - Rust +

Module numpy::convert

source ·
Expand description

Defines conversion traits between Rust types and NumPy data types.

+

Traits§

  • Conversion trait from owning Rust types into PyArray.
  • Trait implemented by types that can be used to index an array.
  • Utility trait to specify the dimensions of an array.
  • Conversion trait from borrowing Rust types to PyArray.
\ No newline at end of file diff --git a/numpy/convert/trait.IntoPyArray.html b/numpy/convert/trait.IntoPyArray.html index bfda8b63c..bdf522c4f 100644 --- a/numpy/convert/trait.IntoPyArray.html +++ b/numpy/convert/trait.IntoPyArray.html @@ -1,22 +1,28 @@ -IntoPyArray in numpy::convert - Rust -
pub trait IntoPyArray {
+IntoPyArray in numpy::convert - Rust
+    
pub trait IntoPyArray: Sized {
     type Item: Element;
     type Dim: Dimension;
 
     // Required method
-    fn into_pyarray<'py>(
+    fn into_pyarray_bound<'py>(
         self,
         py: Python<'py>
-    ) -> &'py PyArray<Self::Item, Self::Dim>;
+    ) -> Bound<'py, PyArray<Self::Item, Self::Dim>>;
+
+    // Provided method
+    fn into_pyarray<'py>(
+        self,
+        py: Python<'py>
+    ) -> &'py PyArray<Self::Item, Self::Dim> { ... }
 }
Expand description

Conversion trait from owning Rust types into PyArray.

This trait takes ownership of self, which means it holds a pointer into the Rust heap.

In addition, some destructive methods like resize cannot be used with NumPy arrays constructed using this trait.

-

Example

-
use numpy::{PyArray, IntoPyArray};
+

§Example

+
use numpy::{PyArray, IntoPyArray, PyArrayMethods};
 use pyo3::Python;
 
 Python::with_gil(|py| {
-    let py_array = vec![1, 2, 3].into_pyarray(py);
+    let py_array = vec![1, 2, 3].into_pyarray_bound(py);
 
     assert_eq!(py_array.readonly().as_slice().unwrap(), &[1, 2, 3]);
 
@@ -27,19 +33,23 @@ 

Example

});

Required Associated Types§

source

type Item: Element

The element type of resulting array.

source

type Dim: Dimension

The dimension type of the resulting array.

-

Required Methods§

Required Methods§

source

fn into_pyarray_bound<'py>( + self, + py: Python<'py> +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

Consumes self and moves its data into a NumPy array.

+

Provided Methods§

source

fn into_pyarray<'py>( self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

Consumes self and moves its data into a NumPy array.

-

Implementations on Foreign Types§

source§

impl<A, D> IntoPyArray for ArrayBase<OwnedRepr<A>, D>
where +) -> &'py PyArray<Self::Item, Self::Dim>

👎Deprecated since 0.21.0: will be replaced by IntoPyArray::into_pyarray_bound in the future

Deprecated form of IntoPyArray::into_pyarray_bound

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A, D> IntoPyArray for ArrayBase<OwnedRepr<A>, D>
where A: Element, - D: Dimension,

§

type Item = A

§

type Dim = D

source§

fn into_pyarray<'py>( + D: Dimension,

§

type Item = A

§

type Dim = D

source§

fn into_pyarray_bound<'py>( self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

source§

impl<T: Element> IntoPyArray for Box<[T]>

§

type Item = T

§

type Dim = Dim<[usize; 1]>

source§

fn into_pyarray<'py>( +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

source§

impl<T: Element> IntoPyArray for Box<[T]>

§

type Item = T

§

type Dim = Dim<[usize; 1]>

source§

fn into_pyarray_bound<'py>( self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

source§

impl<T: Element> IntoPyArray for Vec<T>

§

type Item = T

§

type Dim = Dim<[usize; 1]>

source§

fn into_pyarray<'py>( +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

source§

impl<T: Element> IntoPyArray for Vec<T>

§

type Item = T

§

type Dim = Dim<[usize; 1]>

source§

fn into_pyarray_bound<'py>( self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

Implementors§

\ No newline at end of file +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

Implementors§

\ No newline at end of file diff --git a/numpy/convert/trait.NpyIndex.html b/numpy/convert/trait.NpyIndex.html index 357ac9da3..7ad75445a 100644 --- a/numpy/convert/trait.NpyIndex.html +++ b/numpy/convert/trait.NpyIndex.html @@ -1,5 +1,5 @@ -NpyIndex in numpy::convert - Rust -

Trait numpy::convert::NpyIndex

source ·
pub trait NpyIndex: IntoDimension + Sealed { }
Expand description

Trait implemented by types that can be used to index an array.

+NpyIndex in numpy::convert - Rust +

Trait numpy::convert::NpyIndex

source ·
pub trait NpyIndex: IntoDimension + Sealed { }
Expand description

Trait implemented by types that can be used to index an array.

This is equivalent to ndarray::NdIndex but accounts for NumPy strides being in units of bytes instead of elements.

All types which implement IntoDimension implement this trait as well. @@ -9,4 +9,4 @@

  • array
  • slice
  • -

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file +

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/numpy/convert/trait.ToNpyDims.html b/numpy/convert/trait.ToNpyDims.html index 53c17bfe2..4035dbe12 100644 --- a/numpy/convert/trait.ToNpyDims.html +++ b/numpy/convert/trait.ToNpyDims.html @@ -1,4 +1,4 @@ -ToNpyDims in numpy::convert - Rust -

    Trait numpy::convert::ToNpyDims

    source ·
    pub trait ToNpyDims: Dimension + Sealed { }
    Expand description

    Utility trait to specify the dimensions of an array.

    -

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl<D> ToNpyDims for D
    where +ToNpyDims in numpy::convert - Rust +

    Trait numpy::convert::ToNpyDims

    source ·
    pub trait ToNpyDims: Dimension + Sealed { }
    Expand description

    Utility trait to specify the dimensions of an array.

    +

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl<D> ToNpyDims for D
    where D: Dimension,

    \ No newline at end of file diff --git a/numpy/convert/trait.ToPyArray.html b/numpy/convert/trait.ToPyArray.html index 7c46f4a9d..fb1c6b72e 100644 --- a/numpy/convert/trait.ToPyArray.html +++ b/numpy/convert/trait.ToPyArray.html @@ -1,59 +1,70 @@ -ToPyArray in numpy::convert - Rust -

    Trait numpy::convert::ToPyArray

    source ·
    pub trait ToPyArray {
    +ToPyArray in numpy::convert - Rust
    +    

    Trait numpy::convert::ToPyArray

    source ·
    pub trait ToPyArray {
         type Item: Element;
         type Dim: Dimension;
     
         // Required method
    -    fn to_pyarray<'py>(
    +    fn to_pyarray_bound<'py>(
             &self,
             py: Python<'py>
    -    ) -> &'py PyArray<Self::Item, Self::Dim>;
    +    ) -> Bound<'py, PyArray<Self::Item, Self::Dim>>;
    +
    +    // Provided method
    +    fn to_pyarray<'py>(
    +        &self,
    +        py: Python<'py>
    +    ) -> &'py PyArray<Self::Item, Self::Dim> { ... }
     }
    Expand description

    Conversion trait from borrowing Rust types to PyArray.

    This trait takes &self by reference, which means it allocates in Python heap and then copies the elements there.

    -

    Examples

    -
    use numpy::{PyArray, ToPyArray};
    +

    §Examples

    +
    use numpy::{PyArray, ToPyArray, PyArrayMethods};
     use pyo3::Python;
     
     Python::with_gil(|py| {
    -    let py_array = vec![1, 2, 3].to_pyarray(py);
    +    let py_array = vec![1, 2, 3].to_pyarray_bound(py);
     
         assert_eq!(py_array.readonly().as_slice().unwrap(), &[1, 2, 3]);
     });

    Due to copying the elments, this method converts non-contiguous arrays to C-order contiguous arrays.

    -
    use numpy::{PyArray, ToPyArray};
    +
    use numpy::prelude::*;
    +use numpy::{PyArray, ToPyArray};
     use ndarray::{arr3, s};
     use pyo3::Python;
     
     Python::with_gil(|py| {
         let array = arr3(&[[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]]);
    -    let py_array = array.slice(s![.., 0..1, ..]).to_pyarray(py);
    +    let py_array = array.slice(s![.., 0..1, ..]).to_pyarray_bound(py);
     
         assert_eq!(py_array.readonly().as_array(), arr3(&[[[1, 2, 3]], [[7, 8, 9]]]));
         assert!(py_array.is_c_contiguous());
     });
    -

    Required Associated Types§

    source

    type Item: Element

    The element type of resulting array.

    -
    source

    type Dim: Dimension

    The dimension type of the resulting array.

    -

    Required Methods§

    source

    fn to_pyarray<'py>( +

    Required Associated Types§

    source

    type Item: Element

    The element type of resulting array.

    +
    source

    type Dim: Dimension

    The dimension type of the resulting array.

    +

    Required Methods§

    source

    fn to_pyarray_bound<'py>( + &self, + py: Python<'py> +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

    Copies the content pointed to by &self into a newly allocated NumPy array.

    +

    Provided Methods§

    source

    fn to_pyarray<'py>( &self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

    Copies the content pointed to by &self into a newly allocated NumPy array.

    -

    Implementations on Foreign Types§

    source§

    impl<N, R, C, S> ToPyArray for Matrix<N, R, C, S>
    where +) -> &'py PyArray<Self::Item, Self::Dim>

    👎Deprecated since 0.21.0: will be replaced by ToPyArray::to_pyarray_bound in the future

    Deprecated form of ToPyArray::to_pyarray_bound

    +

    Implementations on Foreign Types§

    source§

    impl<N, R, C, S> ToPyArray for Matrix<N, R, C, S>
    where N: Scalar + Element, R: Dim, C: Dim, - S: Storage<N, R, C>,

    source§

    fn to_pyarray<'py>( + S: Storage<N, R, C>,

    source§

    fn to_pyarray_bound<'py>( &self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

    Note that the NumPy array always has Fortran memory layout +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

    Note that the NumPy array always has Fortran memory layout matching the memory layout used by nalgebra.

    -
    §

    type Item = N

    §

    type Dim = Dim<[usize; 2]>

    source§

    impl<S, D, A> ToPyArray for ArrayBase<S, D>
    where +

    §

    type Item = N

    §

    type Dim = Dim<[usize; 2]>

    source§

    impl<S, D, A> ToPyArray for ArrayBase<S, D>
    where S: Data<Elem = A>, D: Dimension, - A: Element,

    §

    type Item = A

    §

    type Dim = D

    source§

    fn to_pyarray<'py>( + A: Element,

    §

    type Item = A

    §

    type Dim = D

    source§

    fn to_pyarray_bound<'py>( &self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

    source§

    impl<T: Element> ToPyArray for [T]

    §

    type Item = T

    §

    type Dim = Dim<[usize; 1]>

    source§

    fn to_pyarray<'py>( +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

    source§

    impl<T: Element> ToPyArray for [T]

    §

    type Item = T

    §

    type Dim = Dim<[usize; 1]>

    source§

    fn to_pyarray_bound<'py>( &self, py: Python<'py> -) -> &'py PyArray<Self::Item, Self::Dim>

    Implementors§

    \ No newline at end of file +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

    Implementors§

    \ No newline at end of file diff --git a/numpy/datetime/index.html b/numpy/datetime/index.html index eb37d856e..d5a433f40 100644 --- a/numpy/datetime/index.html +++ b/numpy/datetime/index.html @@ -1,11 +1,11 @@ -numpy::datetime - Rust +numpy::datetime - Rust

    Module numpy::datetime

    source ·
    Expand description

    Support datetimes and timedeltas

    This module provides wrappers for NumPy’s datetime64 and timedelta64 types which are used for time keeping with with an emphasis on scientific applications. This means that while these types differentiate absolute and relative quantities, they ignore calendars (a month is always 30.44 days) and time zones. On the other hand, their flexible units enable them to support either a large range (up to 264 years) or high precision (down to 10-18 seconds).

    The corresponding section of the NumPy documentation contains more information.

    -

    Example

    +

    §Example

    use numpy::{datetime::{units, Datetime, Timedelta}, PyArray1};
     use pyo3::Python;
     
    @@ -40,4 +40,4 @@ 

    Example

    Timedelta::<units::Days>::from(1_803) ); });
    -

    Modules

    • Predefined implementors of the Unit trait

    Structs

    Traits

    \ No newline at end of file +

    Modules§

    • Predefined implementors of the Unit trait

    Structs§

    Traits§

    \ No newline at end of file diff --git a/numpy/datetime/struct.Datetime.html b/numpy/datetime/struct.Datetime.html index 1ef7cbbaa..e2a0aa2df 100644 --- a/numpy/datetime/struct.Datetime.html +++ b/numpy/datetime/struct.Datetime.html @@ -1,30 +1,30 @@ -Datetime in numpy::datetime - Rust +Datetime in numpy::datetime - Rust

    Struct numpy::datetime::Datetime

    source ·
    pub struct Datetime<U: Unit>(/* private fields */);
    Expand description

    Corresponds to the datetime64 scalar type

    -

    Trait Implementations§

    source§

    impl<U: Clone + Unit> Clone for Datetime<U>

    source§

    fn clone(&self) -> Datetime<U>

    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<U: Unit> Debug for Datetime<U>

    source§

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

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

    impl<U: Unit> Element for Datetime<U>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<U: Unit> From<Datetime<U>> for i64

    source§

    fn from(val: Datetime<U>) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Unit> From<i64> for Datetime<U>

    source§

    fn from(val: i64) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Hash + Unit> Hash for Datetime<U>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<U: Ord + Unit> Ord for Datetime<U>

    source§

    fn cmp(&self, other: &Datetime<U>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<U: PartialEq + Unit> PartialEq for Datetime<U>

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl<U: Copy + Unit> Copy for Datetime<U>

    source§

    impl<U: Eq + Unit> Eq for Datetime<U>

    source§

    impl<U: Unit> StructuralEq for Datetime<U>

    source§

    impl<U: Unit> StructuralPartialEq for Datetime<U>

    Auto Trait Implementations§

    §

    impl<U> RefUnwindSafe for Datetime<U>
    where - U: RefUnwindSafe,

    §

    impl<U> Send for Datetime<U>

    §

    impl<U> Sync for Datetime<U>

    §

    impl<U> Unpin for Datetime<U>
    where - U: Unpin,

    §

    impl<U> UnwindSafe for Datetime<U>
    where - U: 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> 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).

    +

    Trait Implementations§

    source§

    impl<U: Clone + Unit> Clone for Datetime<U>

    source§

    fn clone(&self) -> Datetime<U>

    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<U: Unit> Debug for Datetime<U>

    source§

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

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

    impl<U: Unit> Element for Datetime<U>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<U: Unit> From<Datetime<U>> for i64

    source§

    fn from(val: Datetime<U>) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Unit> From<i64> for Datetime<U>

    source§

    fn from(val: i64) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Hash + Unit> Hash for Datetime<U>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<U: Ord + Unit> Ord for Datetime<U>

    source§

    fn cmp(&self, other: &Datetime<U>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<U: PartialEq + Unit> PartialEq for Datetime<U>

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl<U: Copy + Unit> Copy for Datetime<U>

    source§

    impl<U: Eq + Unit> Eq for Datetime<U>

    source§

    impl<U: Unit> StructuralPartialEq for Datetime<U>

    Auto Trait Implementations§

    §

    impl<U> RefUnwindSafe for Datetime<U>
    where + U: RefUnwindSafe,

    §

    impl<U> Send for Datetime<U>

    §

    impl<U> Sync for Datetime<U>

    §

    impl<U> Unpin for Datetime<U>
    where + U: Unpin,

    §

    impl<U> UnwindSafe for Datetime<U>
    where + U: 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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/struct.Timedelta.html b/numpy/datetime/struct.Timedelta.html index 902258bf9..08fb6b346 100644 --- a/numpy/datetime/struct.Timedelta.html +++ b/numpy/datetime/struct.Timedelta.html @@ -1,30 +1,30 @@ -Timedelta in numpy::datetime - Rust +Timedelta in numpy::datetime - Rust

    Struct numpy::datetime::Timedelta

    source ·
    pub struct Timedelta<U: Unit>(/* private fields */);
    Expand description

    Corresponds to the [timedelta64][scalars-datetime64] scalar type

    -

    Trait Implementations§

    source§

    impl<U: Clone + Unit> Clone for Timedelta<U>

    source§

    fn clone(&self) -> Timedelta<U>

    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<U: Unit> Debug for Timedelta<U>

    source§

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

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

    impl<U: Unit> Element for Timedelta<U>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<U: Unit> From<Timedelta<U>> for i64

    source§

    fn from(val: Timedelta<U>) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Unit> From<i64> for Timedelta<U>

    source§

    fn from(val: i64) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Hash + Unit> Hash for Timedelta<U>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<U: Ord + Unit> Ord for Timedelta<U>

    source§

    fn cmp(&self, other: &Timedelta<U>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<U: PartialEq + Unit> PartialEq for Timedelta<U>

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl<U: Copy + Unit> Copy for Timedelta<U>

    source§

    impl<U: Eq + Unit> Eq for Timedelta<U>

    source§

    impl<U: Unit> StructuralEq for Timedelta<U>

    source§

    impl<U: Unit> StructuralPartialEq for Timedelta<U>

    Auto Trait Implementations§

    §

    impl<U> RefUnwindSafe for Timedelta<U>
    where - U: RefUnwindSafe,

    §

    impl<U> Send for Timedelta<U>

    §

    impl<U> Sync for Timedelta<U>

    §

    impl<U> Unpin for Timedelta<U>
    where - U: Unpin,

    §

    impl<U> UnwindSafe for Timedelta<U>
    where - U: 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> 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).

    +

    Trait Implementations§

    source§

    impl<U: Clone + Unit> Clone for Timedelta<U>

    source§

    fn clone(&self) -> Timedelta<U>

    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<U: Unit> Debug for Timedelta<U>

    source§

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

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

    impl<U: Unit> Element for Timedelta<U>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<U: Unit> From<Timedelta<U>> for i64

    source§

    fn from(val: Timedelta<U>) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Unit> From<i64> for Timedelta<U>

    source§

    fn from(val: i64) -> Self

    Converts to this type from the input type.
    source§

    impl<U: Hash + Unit> Hash for Timedelta<U>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<U: Ord + Unit> Ord for Timedelta<U>

    source§

    fn cmp(&self, other: &Timedelta<U>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<U: PartialEq + Unit> PartialEq for Timedelta<U>

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl<U: Copy + Unit> Copy for Timedelta<U>

    source§

    impl<U: Eq + Unit> Eq for Timedelta<U>

    source§

    impl<U: Unit> StructuralPartialEq for Timedelta<U>

    Auto Trait Implementations§

    §

    impl<U> RefUnwindSafe for Timedelta<U>
    where + U: RefUnwindSafe,

    §

    impl<U> Send for Timedelta<U>

    §

    impl<U> Sync for Timedelta<U>

    §

    impl<U> Unpin for Timedelta<U>
    where + U: Unpin,

    §

    impl<U> UnwindSafe for Timedelta<U>
    where + U: 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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/trait.Unit.html b/numpy/datetime/trait.Unit.html index 57ddb26d3..5fa7209d5 100644 --- a/numpy/datetime/trait.Unit.html +++ b/numpy/datetime/trait.Unit.html @@ -1,8 +1,8 @@ -Unit in numpy::datetime - Rust -

    Trait numpy::datetime::Unit

    source ·
    pub trait Unit: Send + Sync + Clone + Copy + PartialEq + Eq + Hash + PartialOrd + Ord {
    +Unit in numpy::datetime - Rust
    +    

    Trait numpy::datetime::Unit

    source ·
    pub trait Unit: Send + Sync + Clone + Copy + PartialEq + Eq + Hash + PartialOrd + Ord {
         const UNIT: NPY_DATETIMEUNIT;
    -    const ABBREV: &'static str;
    +    const ABBREV: &'static str;
     }
    Expand description

    Represents the datetime units supported by NumPy

    Required Associated Constants§

    source

    const UNIT: NPY_DATETIMEUNIT

    The matching NumPy datetime unit code

    -
    source

    const ABBREV: &'static str

    The abbrevation used for debug formatting

    -

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Unit for Attoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_as

    source§

    const ABBREV: &'static str = "as"

    source§

    impl Unit for Days

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_D

    source§

    const ABBREV: &'static str = "d"

    source§

    impl Unit for Femtoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_fs

    source§

    const ABBREV: &'static str = "fs"

    source§

    impl Unit for Hours

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_h

    source§

    const ABBREV: &'static str = "h"

    source§

    impl Unit for Microseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_us

    source§

    const ABBREV: &'static str = "µs"

    source§

    impl Unit for Milliseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ms

    source§

    const ABBREV: &'static str = "ms"

    source§

    impl Unit for Minutes

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_m

    source§

    const ABBREV: &'static str = "min"

    source§

    impl Unit for Months

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_M

    source§

    const ABBREV: &'static str = "mo"

    source§

    impl Unit for Nanoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns

    source§

    const ABBREV: &'static str = "ns"

    source§

    impl Unit for Picoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ps

    source§

    const ABBREV: &'static str = "ps"

    source§

    impl Unit for Seconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_s

    source§

    const ABBREV: &'static str = "s"

    source§

    impl Unit for Weeks

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_W

    source§

    const ABBREV: &'static str = "w"

    source§

    impl Unit for Years

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_Y

    source§

    const ABBREV: &'static str = "a"

    \ No newline at end of file +
    source

    const ABBREV: &'static str

    The abbrevation used for debug formatting

    +

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Unit for Attoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_as

    source§

    const ABBREV: &'static str = "as"

    source§

    impl Unit for Days

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_D

    source§

    const ABBREV: &'static str = "d"

    source§

    impl Unit for Femtoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_fs

    source§

    const ABBREV: &'static str = "fs"

    source§

    impl Unit for Hours

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_h

    source§

    const ABBREV: &'static str = "h"

    source§

    impl Unit for Microseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_us

    source§

    const ABBREV: &'static str = "µs"

    source§

    impl Unit for Milliseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ms

    source§

    const ABBREV: &'static str = "ms"

    source§

    impl Unit for Minutes

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_m

    source§

    const ABBREV: &'static str = "min"

    source§

    impl Unit for Months

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_M

    source§

    const ABBREV: &'static str = "mo"

    source§

    impl Unit for Nanoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns

    source§

    const ABBREV: &'static str = "ns"

    source§

    impl Unit for Picoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ps

    source§

    const ABBREV: &'static str = "ps"

    source§

    impl Unit for Seconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_s

    source§

    const ABBREV: &'static str = "s"

    source§

    impl Unit for Weeks

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_W

    source§

    const ABBREV: &'static str = "w"

    source§

    impl Unit for Years

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_Y

    source§

    const ABBREV: &'static str = "a"

    \ No newline at end of file diff --git a/numpy/datetime/units/index.html b/numpy/datetime/units/index.html index b7c1b7d20..95327ffde 100644 --- a/numpy/datetime/units/index.html +++ b/numpy/datetime/units/index.html @@ -1,3 +1,3 @@ -numpy::datetime::units - Rust +numpy::datetime::units - Rust

    Module numpy::datetime::units

    source ·
    Expand description

    Predefined implementors of the Unit trait

    -

    Structs

    \ No newline at end of file +

    Structs§

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Attoseconds.html b/numpy/datetime/units/struct.Attoseconds.html index e43d345dd..2a27701ef 100644 --- a/numpy/datetime/units/struct.Attoseconds.html +++ b/numpy/datetime/units/struct.Attoseconds.html @@ -1,27 +1,27 @@ -Attoseconds in numpy::datetime::units - Rust +Attoseconds in numpy::datetime::units - Rust
    pub struct Attoseconds;
    Expand description

    Attoseconds, i.e. 10^-18 seconds

    -

    Trait Implementations§

    source§

    impl Clone for Attoseconds

    source§

    fn clone(&self) -> Attoseconds

    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 Debug for Attoseconds

    source§

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

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

    impl Hash for Attoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Attoseconds

    source§

    fn cmp(&self, other: &Attoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Attoseconds

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Attoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Attoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_as

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "as"

    The abbrevation used for debug formatting
    source§

    impl Copy for Attoseconds

    source§

    impl Eq for Attoseconds

    source§

    impl StructuralEq for Attoseconds

    source§

    impl StructuralPartialEq for Attoseconds

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Attoseconds

    source§

    fn clone(&self) -> Attoseconds

    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 Debug for Attoseconds

    source§

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

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

    impl Hash for Attoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Attoseconds

    source§

    fn cmp(&self, other: &Attoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Attoseconds

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Attoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Attoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_as

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "as"

    The abbrevation used for debug formatting
    source§

    impl Copy for Attoseconds

    source§

    impl Eq for Attoseconds

    source§

    impl StructuralPartialEq for Attoseconds

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Days.html b/numpy/datetime/units/struct.Days.html index bdf399cfb..6c4cf367d 100644 --- a/numpy/datetime/units/struct.Days.html +++ b/numpy/datetime/units/struct.Days.html @@ -1,27 +1,27 @@ -Days in numpy::datetime::units - Rust +Days in numpy::datetime::units - Rust

    Struct numpy::datetime::units::Days

    source ·
    pub struct Days;
    Expand description

    Days, i.e. 24 hours

    -

    Trait Implementations§

    source§

    impl Clone for Days

    source§

    fn clone(&self) -> Days

    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 Debug for Days

    source§

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

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

    impl Hash for Days

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Days

    source§

    fn cmp(&self, other: &Days) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Days

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Days

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Days

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_D

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "d"

    The abbrevation used for debug formatting
    source§

    impl Copy for Days

    source§

    impl Eq for Days

    source§

    impl StructuralEq for Days

    source§

    impl StructuralPartialEq for Days

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Days

    §

    impl Send for Days

    §

    impl Sync for Days

    §

    impl Unpin for Days

    §

    impl UnwindSafe for Days

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Days

    source§

    fn clone(&self) -> Days

    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 Debug for Days

    source§

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

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

    impl Hash for Days

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Days

    source§

    fn cmp(&self, other: &Days) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Days

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Days

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Days

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_D

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "d"

    The abbrevation used for debug formatting
    source§

    impl Copy for Days

    source§

    impl Eq for Days

    source§

    impl StructuralPartialEq for Days

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Days

    §

    impl Send for Days

    §

    impl Sync for Days

    §

    impl Unpin for Days

    §

    impl UnwindSafe for Days

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Femtoseconds.html b/numpy/datetime/units/struct.Femtoseconds.html index f17b08a79..fac5c398a 100644 --- a/numpy/datetime/units/struct.Femtoseconds.html +++ b/numpy/datetime/units/struct.Femtoseconds.html @@ -1,27 +1,27 @@ -Femtoseconds in numpy::datetime::units - Rust +Femtoseconds in numpy::datetime::units - Rust
    pub struct Femtoseconds;
    Expand description

    Femtoseconds, i.e. 10^-15 seconds

    -

    Trait Implementations§

    source§

    impl Clone for Femtoseconds

    source§

    fn clone(&self) -> Femtoseconds

    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 Debug for Femtoseconds

    source§

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

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

    impl Hash for Femtoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Femtoseconds

    source§

    fn cmp(&self, other: &Femtoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Femtoseconds

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Femtoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Femtoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_fs

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "fs"

    The abbrevation used for debug formatting
    source§

    impl Copy for Femtoseconds

    source§

    impl Eq for Femtoseconds

    source§

    impl StructuralEq for Femtoseconds

    source§

    impl StructuralPartialEq for Femtoseconds

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Femtoseconds

    source§

    fn clone(&self) -> Femtoseconds

    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 Debug for Femtoseconds

    source§

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

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

    impl Hash for Femtoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Femtoseconds

    source§

    fn cmp(&self, other: &Femtoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Femtoseconds

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Femtoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Femtoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_fs

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "fs"

    The abbrevation used for debug formatting
    source§

    impl Copy for Femtoseconds

    source§

    impl Eq for Femtoseconds

    source§

    impl StructuralPartialEq for Femtoseconds

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Hours.html b/numpy/datetime/units/struct.Hours.html index af8d48ec2..52c20c9ef 100644 --- a/numpy/datetime/units/struct.Hours.html +++ b/numpy/datetime/units/struct.Hours.html @@ -1,27 +1,27 @@ -Hours in numpy::datetime::units - Rust +Hours in numpy::datetime::units - Rust

    Struct numpy::datetime::units::Hours

    source ·
    pub struct Hours;
    Expand description

    Hours, i.e. 60 minutes

    -

    Trait Implementations§

    source§

    impl Clone for Hours

    source§

    fn clone(&self) -> Hours

    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 Debug for Hours

    source§

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

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

    impl Hash for Hours

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Hours

    source§

    fn cmp(&self, other: &Hours) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Hours

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Hours

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Hours

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_h

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "h"

    The abbrevation used for debug formatting
    source§

    impl Copy for Hours

    source§

    impl Eq for Hours

    source§

    impl StructuralEq for Hours

    source§

    impl StructuralPartialEq for Hours

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Hours

    §

    impl Send for Hours

    §

    impl Sync for Hours

    §

    impl Unpin for Hours

    §

    impl UnwindSafe for Hours

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Hours

    source§

    fn clone(&self) -> Hours

    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 Debug for Hours

    source§

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

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

    impl Hash for Hours

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Hours

    source§

    fn cmp(&self, other: &Hours) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Hours

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Hours

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Hours

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_h

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "h"

    The abbrevation used for debug formatting
    source§

    impl Copy for Hours

    source§

    impl Eq for Hours

    source§

    impl StructuralPartialEq for Hours

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Hours

    §

    impl Send for Hours

    §

    impl Sync for Hours

    §

    impl Unpin for Hours

    §

    impl UnwindSafe for Hours

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Microseconds.html b/numpy/datetime/units/struct.Microseconds.html index 4b3b030e2..f2f64f464 100644 --- a/numpy/datetime/units/struct.Microseconds.html +++ b/numpy/datetime/units/struct.Microseconds.html @@ -1,27 +1,27 @@ -Microseconds in numpy::datetime::units - Rust +Microseconds in numpy::datetime::units - Rust
    pub struct Microseconds;
    Expand description

    Microseconds, i.e. 10^-6 seconds

    -

    Trait Implementations§

    source§

    impl Clone for Microseconds

    source§

    fn clone(&self) -> Microseconds

    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 Debug for Microseconds

    source§

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

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

    impl Hash for Microseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Microseconds

    source§

    fn cmp(&self, other: &Microseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Microseconds

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Microseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Microseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_us

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "µs"

    The abbrevation used for debug formatting
    source§

    impl Copy for Microseconds

    source§

    impl Eq for Microseconds

    source§

    impl StructuralEq for Microseconds

    source§

    impl StructuralPartialEq for Microseconds

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Microseconds

    source§

    fn clone(&self) -> Microseconds

    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 Debug for Microseconds

    source§

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

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

    impl Hash for Microseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Microseconds

    source§

    fn cmp(&self, other: &Microseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Microseconds

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Microseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Microseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_us

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "µs"

    The abbrevation used for debug formatting
    source§

    impl Copy for Microseconds

    source§

    impl Eq for Microseconds

    source§

    impl StructuralPartialEq for Microseconds

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Milliseconds.html b/numpy/datetime/units/struct.Milliseconds.html index 0ea311ca5..7e9d88c88 100644 --- a/numpy/datetime/units/struct.Milliseconds.html +++ b/numpy/datetime/units/struct.Milliseconds.html @@ -1,27 +1,27 @@ -Milliseconds in numpy::datetime::units - Rust +Milliseconds in numpy::datetime::units - Rust
    pub struct Milliseconds;
    Expand description

    Milliseconds, i.e. 10^-3 seconds

    -

    Trait Implementations§

    source§

    impl Clone for Milliseconds

    source§

    fn clone(&self) -> Milliseconds

    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 Debug for Milliseconds

    source§

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

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

    impl Hash for Milliseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Milliseconds

    source§

    fn cmp(&self, other: &Milliseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Milliseconds

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Milliseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Milliseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ms

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "ms"

    The abbrevation used for debug formatting
    source§

    impl Copy for Milliseconds

    source§

    impl Eq for Milliseconds

    source§

    impl StructuralEq for Milliseconds

    source§

    impl StructuralPartialEq for Milliseconds

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Milliseconds

    source§

    fn clone(&self) -> Milliseconds

    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 Debug for Milliseconds

    source§

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

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

    impl Hash for Milliseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Milliseconds

    source§

    fn cmp(&self, other: &Milliseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Milliseconds

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Milliseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Milliseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ms

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "ms"

    The abbrevation used for debug formatting
    source§

    impl Copy for Milliseconds

    source§

    impl Eq for Milliseconds

    source§

    impl StructuralPartialEq for Milliseconds

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Minutes.html b/numpy/datetime/units/struct.Minutes.html index c96e89ef9..164670881 100644 --- a/numpy/datetime/units/struct.Minutes.html +++ b/numpy/datetime/units/struct.Minutes.html @@ -1,27 +1,27 @@ -Minutes in numpy::datetime::units - Rust +Minutes in numpy::datetime::units - Rust

    Struct numpy::datetime::units::Minutes

    source ·
    pub struct Minutes;
    Expand description

    Minutes, i.e. 60 seconds

    -

    Trait Implementations§

    source§

    impl Clone for Minutes

    source§

    fn clone(&self) -> Minutes

    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 Debug for Minutes

    source§

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

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

    impl Hash for Minutes

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Minutes

    source§

    fn cmp(&self, other: &Minutes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Minutes

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Minutes

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Minutes

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_m

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "min"

    The abbrevation used for debug formatting
    source§

    impl Copy for Minutes

    source§

    impl Eq for Minutes

    source§

    impl StructuralEq for Minutes

    source§

    impl StructuralPartialEq for Minutes

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Minutes

    source§

    fn clone(&self) -> Minutes

    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 Debug for Minutes

    source§

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

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

    impl Hash for Minutes

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Minutes

    source§

    fn cmp(&self, other: &Minutes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Minutes

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Minutes

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Minutes

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_m

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "min"

    The abbrevation used for debug formatting
    source§

    impl Copy for Minutes

    source§

    impl Eq for Minutes

    source§

    impl StructuralPartialEq for Minutes

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Months.html b/numpy/datetime/units/struct.Months.html index a01a816a2..f2a829589 100644 --- a/numpy/datetime/units/struct.Months.html +++ b/numpy/datetime/units/struct.Months.html @@ -1,27 +1,27 @@ -Months in numpy::datetime::units - Rust +Months in numpy::datetime::units - Rust

    Struct numpy::datetime::units::Months

    source ·
    pub struct Months;
    Expand description

    Months, i.e. 30 days

    -

    Trait Implementations§

    source§

    impl Clone for Months

    source§

    fn clone(&self) -> Months

    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 Debug for Months

    source§

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

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

    impl Hash for Months

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Months

    source§

    fn cmp(&self, other: &Months) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Months

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Months

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Months

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_M

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "mo"

    The abbrevation used for debug formatting
    source§

    impl Copy for Months

    source§

    impl Eq for Months

    source§

    impl StructuralEq for Months

    source§

    impl StructuralPartialEq for Months

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Months

    source§

    fn clone(&self) -> Months

    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 Debug for Months

    source§

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

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

    impl Hash for Months

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Months

    source§

    fn cmp(&self, other: &Months) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Months

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Months

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Months

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_M

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "mo"

    The abbrevation used for debug formatting
    source§

    impl Copy for Months

    source§

    impl Eq for Months

    source§

    impl StructuralPartialEq for Months

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Nanoseconds.html b/numpy/datetime/units/struct.Nanoseconds.html index 073850e41..37dc150ac 100644 --- a/numpy/datetime/units/struct.Nanoseconds.html +++ b/numpy/datetime/units/struct.Nanoseconds.html @@ -1,27 +1,27 @@ -Nanoseconds in numpy::datetime::units - Rust +Nanoseconds in numpy::datetime::units - Rust
    pub struct Nanoseconds;
    Expand description

    Nanoseconds, i.e. 10^-9 seconds

    -

    Trait Implementations§

    source§

    impl Clone for Nanoseconds

    source§

    fn clone(&self) -> Nanoseconds

    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 Debug for Nanoseconds

    source§

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

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

    impl Hash for Nanoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Nanoseconds

    source§

    fn cmp(&self, other: &Nanoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Nanoseconds

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Nanoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Nanoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "ns"

    The abbrevation used for debug formatting
    source§

    impl Copy for Nanoseconds

    source§

    impl Eq for Nanoseconds

    source§

    impl StructuralEq for Nanoseconds

    source§

    impl StructuralPartialEq for Nanoseconds

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Nanoseconds

    source§

    fn clone(&self) -> Nanoseconds

    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 Debug for Nanoseconds

    source§

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

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

    impl Hash for Nanoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Nanoseconds

    source§

    fn cmp(&self, other: &Nanoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Nanoseconds

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Nanoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Nanoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "ns"

    The abbrevation used for debug formatting
    source§

    impl Copy for Nanoseconds

    source§

    impl Eq for Nanoseconds

    source§

    impl StructuralPartialEq for Nanoseconds

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Picoseconds.html b/numpy/datetime/units/struct.Picoseconds.html index 04ebc3691..5c33af49a 100644 --- a/numpy/datetime/units/struct.Picoseconds.html +++ b/numpy/datetime/units/struct.Picoseconds.html @@ -1,27 +1,27 @@ -Picoseconds in numpy::datetime::units - Rust +Picoseconds in numpy::datetime::units - Rust
    pub struct Picoseconds;
    Expand description

    Picoseconds, i.e. 10^-12 seconds

    -

    Trait Implementations§

    source§

    impl Clone for Picoseconds

    source§

    fn clone(&self) -> Picoseconds

    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 Debug for Picoseconds

    source§

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

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

    impl Hash for Picoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Picoseconds

    source§

    fn cmp(&self, other: &Picoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Picoseconds

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Picoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Picoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ps

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "ps"

    The abbrevation used for debug formatting
    source§

    impl Copy for Picoseconds

    source§

    impl Eq for Picoseconds

    source§

    impl StructuralEq for Picoseconds

    source§

    impl StructuralPartialEq for Picoseconds

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Picoseconds

    source§

    fn clone(&self) -> Picoseconds

    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 Debug for Picoseconds

    source§

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

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

    impl Hash for Picoseconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Picoseconds

    source§

    fn cmp(&self, other: &Picoseconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Picoseconds

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Picoseconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Picoseconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ps

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "ps"

    The abbrevation used for debug formatting
    source§

    impl Copy for Picoseconds

    source§

    impl Eq for Picoseconds

    source§

    impl StructuralPartialEq for Picoseconds

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Seconds.html b/numpy/datetime/units/struct.Seconds.html index 059e21a8d..d9fd9ca66 100644 --- a/numpy/datetime/units/struct.Seconds.html +++ b/numpy/datetime/units/struct.Seconds.html @@ -1,27 +1,27 @@ -Seconds in numpy::datetime::units - Rust +Seconds in numpy::datetime::units - Rust

    Struct numpy::datetime::units::Seconds

    source ·
    pub struct Seconds;
    Expand description

    Seconds

    -

    Trait Implementations§

    source§

    impl Clone for Seconds

    source§

    fn clone(&self) -> Seconds

    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 Debug for Seconds

    source§

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

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

    impl Hash for Seconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Seconds

    source§

    fn cmp(&self, other: &Seconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Seconds

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Seconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Seconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_s

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "s"

    The abbrevation used for debug formatting
    source§

    impl Copy for Seconds

    source§

    impl Eq for Seconds

    source§

    impl StructuralEq for Seconds

    source§

    impl StructuralPartialEq for Seconds

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Seconds

    source§

    fn clone(&self) -> Seconds

    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 Debug for Seconds

    source§

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

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

    impl Hash for Seconds

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Seconds

    source§

    fn cmp(&self, other: &Seconds) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Seconds

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Seconds

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Seconds

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_s

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "s"

    The abbrevation used for debug formatting
    source§

    impl Copy for Seconds

    source§

    impl Eq for Seconds

    source§

    impl StructuralPartialEq for Seconds

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Weeks.html b/numpy/datetime/units/struct.Weeks.html index 1ed1814f5..8d2b6f043 100644 --- a/numpy/datetime/units/struct.Weeks.html +++ b/numpy/datetime/units/struct.Weeks.html @@ -1,27 +1,27 @@ -Weeks in numpy::datetime::units - Rust +Weeks in numpy::datetime::units - Rust

    Struct numpy::datetime::units::Weeks

    source ·
    pub struct Weeks;
    Expand description

    Weeks, i.e. 7 days

    -

    Trait Implementations§

    source§

    impl Clone for Weeks

    source§

    fn clone(&self) -> Weeks

    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 Debug for Weeks

    source§

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

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

    impl Hash for Weeks

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Weeks

    source§

    fn cmp(&self, other: &Weeks) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Weeks

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Weeks

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Weeks

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_W

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "w"

    The abbrevation used for debug formatting
    source§

    impl Copy for Weeks

    source§

    impl Eq for Weeks

    source§

    impl StructuralEq for Weeks

    source§

    impl StructuralPartialEq for Weeks

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Weeks

    §

    impl Send for Weeks

    §

    impl Sync for Weeks

    §

    impl Unpin for Weeks

    §

    impl UnwindSafe for Weeks

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Weeks

    source§

    fn clone(&self) -> Weeks

    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 Debug for Weeks

    source§

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

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

    impl Hash for Weeks

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Weeks

    source§

    fn cmp(&self, other: &Weeks) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Weeks

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Weeks

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Weeks

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_W

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "w"

    The abbrevation used for debug formatting
    source§

    impl Copy for Weeks

    source§

    impl Eq for Weeks

    source§

    impl StructuralPartialEq for Weeks

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Weeks

    §

    impl Send for Weeks

    §

    impl Sync for Weeks

    §

    impl Unpin for Weeks

    §

    impl UnwindSafe for Weeks

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Years.html b/numpy/datetime/units/struct.Years.html index eeacc5604..299ede6b3 100644 --- a/numpy/datetime/units/struct.Years.html +++ b/numpy/datetime/units/struct.Years.html @@ -1,27 +1,27 @@ -Years in numpy::datetime::units - Rust +Years in numpy::datetime::units - Rust

    Struct numpy::datetime::units::Years

    source ·
    pub struct Years;
    Expand description

    Years, i.e. 12 months

    -

    Trait Implementations§

    source§

    impl Clone for Years

    source§

    fn clone(&self) -> Years

    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 Debug for Years

    source§

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

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

    impl Hash for Years

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Years

    source§

    fn cmp(&self, other: &Years) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Years

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Years

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Unit for Years

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_Y

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "a"

    The abbrevation used for debug formatting
    source§

    impl Copy for Years

    source§

    impl Eq for Years

    source§

    impl StructuralEq for Years

    source§

    impl StructuralPartialEq for Years

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Years

    §

    impl Send for Years

    §

    impl Sync for Years

    §

    impl Unpin for Years

    §

    impl UnwindSafe for Years

    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> 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).

    +

    Trait Implementations§

    source§

    impl Clone for Years

    source§

    fn clone(&self) -> Years

    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 Debug for Years

    source§

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

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

    impl Hash for Years

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for Years

    source§

    fn cmp(&self, other: &Years) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Years

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Years

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Unit for Years

    source§

    const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_Y

    The matching NumPy datetime unit code
    source§

    const ABBREV: &'static str = "a"

    The abbrevation used for debug formatting
    source§

    impl Copy for Years

    source§

    impl Eq for Years

    source§

    impl StructuralPartialEq for Years

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Years

    §

    impl Send for Years

    §

    impl Sync for Years

    §

    impl Unpin for Years

    §

    impl UnwindSafe for Years

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/enum.BorrowError.html b/numpy/enum.BorrowError.html index 337d4ae6a..100045cdd 100644 --- a/numpy/enum.BorrowError.html +++ b/numpy/enum.BorrowError.html @@ -1,22 +1,22 @@ -BorrowError in numpy - Rust +BorrowError in numpy - Rust

    Enum numpy::BorrowError

    source ·
    #[non_exhaustive]
    pub enum BorrowError { AlreadyBorrowed, NotWriteable, }
    Expand description

    Inidcates why borrowing an array failed.

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    AlreadyBorrowed

    The given array is already borrowed

    §

    NotWriteable

    The given array is not writeable

    -

    Trait Implementations§

    source§

    impl Debug for BorrowError

    source§

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

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

    impl Display for BorrowError

    source§

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

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

    impl Error for BorrowError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<BorrowError> for PyErr

    source§

    fn from(err: BorrowError) -> PyErr

    Converts to this type from the input type.
    source§

    impl PyErrArguments for BorrowError

    source§

    fn arguments<'py>(self, py: Python<'py>) -> PyObject

    Arguments for exception

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Debug for BorrowError

    source§

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

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

    impl Display for BorrowError

    source§

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

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

    impl Error for BorrowError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<BorrowError> for PyErr

    source§

    fn from(err: BorrowError) -> PyErr

    Converts to this type from the input type.
    source§

    impl PyErrArguments for BorrowError

    source§

    fn arguments<'py>(self, py: Python<'py>) -> PyObject

    Arguments for exception

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/fn.Ix1.html b/numpy/fn.Ix1.html index 5054bdefd..ae2f91960 100644 --- a/numpy/fn.Ix1.html +++ b/numpy/fn.Ix1.html @@ -1,3 +1,3 @@ -Ix1 in numpy - Rust -

    Function numpy::Ix1

    source ·
    pub fn Ix1(i0: usize) -> Dim<[usize; 1]>
    Expand description

    Create a one-dimensional index

    +Ix1 in numpy - Rust +

    Function numpy::Ix1

    source ·
    pub fn Ix1(i0: usize) -> Dim<[usize; 1]>
    Expand description

    Create a one-dimensional index

    \ No newline at end of file diff --git a/numpy/fn.Ix2.html b/numpy/fn.Ix2.html index 4f876760f..4a2555075 100644 --- a/numpy/fn.Ix2.html +++ b/numpy/fn.Ix2.html @@ -1,3 +1,3 @@ -Ix2 in numpy - Rust -

    Function numpy::Ix2

    source ·
    pub fn Ix2(i0: usize, i1: usize) -> Dim<[usize; 2]>
    Expand description

    Create a two-dimensional index

    +Ix2 in numpy - Rust +

    Function numpy::Ix2

    source ·
    pub fn Ix2(i0: usize, i1: usize) -> Dim<[usize; 2]>
    Expand description

    Create a two-dimensional index

    \ No newline at end of file diff --git a/numpy/fn.Ix3.html b/numpy/fn.Ix3.html index 33ac922fc..0a6c236e5 100644 --- a/numpy/fn.Ix3.html +++ b/numpy/fn.Ix3.html @@ -1,3 +1,3 @@ -Ix3 in numpy - Rust -

    Function numpy::Ix3

    source ·
    pub fn Ix3(i0: usize, i1: usize, i2: usize) -> Dim<[usize; 3]>
    Expand description

    Create a three-dimensional index

    +Ix3 in numpy - Rust +

    Function numpy::Ix3

    source ·
    pub fn Ix3(i0: usize, i1: usize, i2: usize) -> Dim<[usize; 3]>
    Expand description

    Create a three-dimensional index

    \ No newline at end of file diff --git a/numpy/fn.Ix4.html b/numpy/fn.Ix4.html index 0f19370f7..8b8d5834d 100644 --- a/numpy/fn.Ix4.html +++ b/numpy/fn.Ix4.html @@ -1,3 +1,3 @@ -Ix4 in numpy - Rust -

    Function numpy::Ix4

    source ·
    pub fn Ix4(i0: usize, i1: usize, i2: usize, i3: usize) -> Dim<[usize; 4]>
    Expand description

    Create a four-dimensional index

    +Ix4 in numpy - Rust +

    Function numpy::Ix4

    source ·
    pub fn Ix4(i0: usize, i1: usize, i2: usize, i3: usize) -> Dim<[usize; 4]>
    Expand description

    Create a four-dimensional index

    \ No newline at end of file diff --git a/numpy/fn.Ix5.html b/numpy/fn.Ix5.html index 6ac1560b0..66af5afee 100644 --- a/numpy/fn.Ix5.html +++ b/numpy/fn.Ix5.html @@ -1,9 +1,9 @@ -Ix5 in numpy - Rust +Ix5 in numpy - Rust

    Function numpy::Ix5

    source ·
    pub fn Ix5(
    -    i0: usize,
    -    i1: usize,
    -    i2: usize,
    -    i3: usize,
    -    i4: usize
    -) -> Dim<[usize; 5]>
    Expand description

    Create a five-dimensional index

    + i0: usize, + i1: usize, + i2: usize, + i3: usize, + i4: usize +) -> Dim<[usize; 5]>
    Expand description

    Create a five-dimensional index

    \ No newline at end of file diff --git a/numpy/fn.Ix6.html b/numpy/fn.Ix6.html index 038bc90bd..3e9e603f0 100644 --- a/numpy/fn.Ix6.html +++ b/numpy/fn.Ix6.html @@ -1,10 +1,10 @@ -Ix6 in numpy - Rust +Ix6 in numpy - Rust

    Function numpy::Ix6

    source ·
    pub fn Ix6(
    -    i0: usize,
    -    i1: usize,
    -    i2: usize,
    -    i3: usize,
    -    i4: usize,
    -    i5: usize
    -) -> Dim<[usize; 6]>
    Expand description

    Create a six-dimensional index

    + i0: usize, + i1: usize, + i2: usize, + i3: usize, + i4: usize, + i5: usize +) -> Dim<[usize; 6]>
    Expand description

    Create a six-dimensional index

    \ No newline at end of file diff --git a/numpy/fn.IxDyn.html b/numpy/fn.IxDyn.html index e59e1bb97..3636fa305 100644 --- a/numpy/fn.IxDyn.html +++ b/numpy/fn.IxDyn.html @@ -1,3 +1,3 @@ -IxDyn in numpy - Rust -

    Function numpy::IxDyn

    source ·
    pub fn IxDyn(ix: &[usize]) -> Dim<IxDynImpl>
    Expand description

    Create a dynamic-dimensional index

    +IxDyn in numpy - Rust +

    Function numpy::IxDyn

    source ·
    pub fn IxDyn(ix: &[usize]) -> Dim<IxDynImpl>
    Expand description

    Create a dynamic-dimensional index

    \ No newline at end of file diff --git a/numpy/fn.dot.html b/numpy/fn.dot.html index 4baeb8106..faa33c6f9 100644 --- a/numpy/fn.dot.html +++ b/numpy/fn.dot.html @@ -1,4 +1,4 @@ -dot in numpy - Rust +dot in numpy - Rust

    Function numpy::dot

    source ·
    pub fn dot<'py, T, DIN1, DIN2, OUT>(
         array1: &'py PyArray<T, DIN1>,
         array2: &'py PyArray<T, DIN2>
    @@ -8,7 +8,7 @@
         DIN2: Dimension,
         OUT: ArrayOrScalar<'py, T>,
    Expand description

    Return the dot product of two arrays.

    NumPy’s documentation has the details.

    -

    Examples

    +

    §Examples

    Note that this function can either return an array…

    use pyo3::Python;
    diff --git a/numpy/fn.dtype.html b/numpy/fn.dtype.html
    index bee07dae4..97a1259ad 100644
    --- a/numpy/fn.dtype.html
    +++ b/numpy/fn.dtype.html
    @@ -1,3 +1,3 @@
    -dtype in numpy - Rust
    +dtype in numpy - Rust
         

    Function numpy::dtype

    source ·
    pub fn dtype<'py, T: Element>(py: Python<'py>) -> &'py PyArrayDescr
    👎Deprecated since 0.21.0: This will be replaced by dtype_bound in the future.
    Expand description

    Returns the type descriptor (“dtype”) for a registered type.

    \ No newline at end of file diff --git a/numpy/fn.dtype_bound.html b/numpy/fn.dtype_bound.html index 3168e7e3f..c45ac9cee 100644 --- a/numpy/fn.dtype_bound.html +++ b/numpy/fn.dtype_bound.html @@ -1,3 +1,3 @@ -dtype_bound in numpy - Rust +dtype_bound in numpy - Rust

    Function numpy::dtype_bound

    source ·
    pub fn dtype_bound<'py, T: Element>(py: Python<'py>) -> Bound<'py, PyArrayDescr>
    Expand description

    Returns the type descriptor (“dtype”) for a registered type.

    \ No newline at end of file diff --git a/numpy/fn.einsum.html b/numpy/fn.einsum.html index d0207dbbf..020e786eb 100644 --- a/numpy/fn.einsum.html +++ b/numpy/fn.einsum.html @@ -1,6 +1,6 @@ -einsum in numpy - Rust +einsum in numpy - Rust

    Function numpy::einsum

    source ·
    pub fn einsum<'py, T, OUT>(
    -    subscripts: &str,
    +    subscripts: &str,
         arrays: &[&'py PyArray<T, IxDyn>]
     ) -> PyResult<OUT>
    where T: Element, diff --git a/numpy/fn.inner.html b/numpy/fn.inner.html index ebe0aa55f..c39a6f331 100644 --- a/numpy/fn.inner.html +++ b/numpy/fn.inner.html @@ -1,4 +1,4 @@ -inner in numpy - Rust +inner in numpy - Rust

    Function numpy::inner

    source ·
    pub fn inner<'py, T, DIN1, DIN2, OUT>(
         array1: &'py PyArray<T, DIN1>,
         array2: &'py PyArray<T, DIN2>
    @@ -8,7 +8,7 @@
         DIN2: Dimension,
         OUT: ArrayOrScalar<'py, T>,
    Expand description

    Return the inner product of two arrays.

    NumPy’s documentation has the details.

    -

    Examples

    +

    §Examples

    Note that this function can either return a scalar…

    use pyo3::Python;
    diff --git a/numpy/index.html b/numpy/index.html
    index 3e9ea1796..2c432d683 100644
    --- a/numpy/index.html
    +++ b/numpy/index.html
    @@ -1,6 +1,6 @@
    -numpy - Rust
    Expand description

    Checks that op is an exact instance of PyArray or not.

    \ No newline at end of file diff --git a/numpy/npyffi/array/index.html b/numpy/npyffi/array/index.html index c0f69cd85..f89d7da62 100644 --- a/numpy/npyffi/array/index.html +++ b/numpy/npyffi/array/index.html @@ -1,7 +1,7 @@ -numpy::npyffi::array - Rust +numpy::npyffi::array - Rust

    Module numpy::npyffi::array

    source ·
    Expand description

    Low-Level binding for Array API

    Note that NumPy’s low-level allocation functions PyArray_{malloc,realloc,free} are not part of this module. The reason is that they would be re-exports of the PyMem_Raw{Malloc,Realloc,Free} functions from PyO3, but those are not unconditionally exported, i.e. they are not available when using the limited Python C-API.

    -

    Structs

    Enums

    • All type objects exported by the NumPy API.

    Statics

    Functions

    \ No newline at end of file +

    Structs§

    Enums§

    • All type objects exported by the NumPy API.

    Statics§

    Functions§

    \ No newline at end of file diff --git a/numpy/npyffi/array/static.PY_ARRAY_API.html b/numpy/npyffi/array/static.PY_ARRAY_API.html index 4d2efe62a..d0b9036ec 100644 --- a/numpy/npyffi/array/static.PY_ARRAY_API.html +++ b/numpy/npyffi/array/static.PY_ARRAY_API.html @@ -1,9 +1,9 @@ -PY_ARRAY_API in numpy::npyffi::array - Rust +PY_ARRAY_API in numpy::npyffi::array - Rust
    pub static PY_ARRAY_API: PyArrayAPI
    Expand description

    A global variable which stores a ‘capsule’ pointer to Numpy Array API.

    You can access raw C APIs via this variable.

    See PyArrayAPI for what methods you can use via this variable.

    -

    Example

    +

    §Example

    use numpy::prelude::*;
     use numpy::{PyArray, npyffi::types::NPY_SORTKIND, PY_ARRAY_API};
     pyo3::Python::with_gil(|py| {
    diff --git a/numpy/npyffi/array/struct.PyArrayAPI.html b/numpy/npyffi/array/struct.PyArrayAPI.html
    index 04f8b8910..0b120ff75 100644
    --- a/numpy/npyffi/array/struct.PyArrayAPI.html
    +++ b/numpy/npyffi/array/struct.PyArrayAPI.html
    @@ -1,1390 +1,1390 @@
    -PyArrayAPI in numpy::npyffi::array - Rust
    +PyArrayAPI in numpy::npyffi::array - Rust
         

    Struct numpy::npyffi::array::PyArrayAPI

    source ·
    pub struct PyArrayAPI(/* private fields */);
    Expand description

    See PY_ARRAY_API for more.

    -

    Implementations§

    source§

    impl PyArrayAPI

    source

    pub unsafe fn PyArray_GetNDArrayCVersion<'py>(&self, py: Python<'py>) -> c_uint

    source

    pub unsafe fn PyArray_SetNumericOps<'py>( +

    Implementations§

    source§

    impl PyArrayAPI

    source

    pub unsafe fn PyArray_GetNDArrayCVersion<'py>(&self, py: Python<'py>) -> c_uint

    source

    pub unsafe fn PyArray_SetNumericOps<'py>( &self, py: Python<'py>, - dict: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_GetNumericOps<'py>( + dict: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_GetNumericOps<'py>( &self, py: Python<'py> -) -> *mut PyObject

    source

    pub unsafe fn PyArray_INCREF<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_INCREF<'py>( &self, py: Python<'py>, - mp: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_XDECREF<'py>( + mp: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_XDECREF<'py>( &self, py: Python<'py>, - mp: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_SetStringFunction<'py>( + mp: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_SetStringFunction<'py>( &self, py: Python<'py>, - op: *mut PyObject, - repr: c_int + op: *mut PyObject, + repr: c_int )

    source

    pub unsafe fn PyArray_DescrFromType<'py>( &self, py: Python<'py>, - type_: c_int -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_TypeObjectFromType<'py>( + type_: c_int +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_TypeObjectFromType<'py>( &self, py: Python<'py>, - type_: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Zero<'py>( + type_: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Zero<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject -) -> *mut c_char

    source

    pub unsafe fn PyArray_One<'py>( + arr: *mut PyArrayObject +) -> *mut c_char

    source

    pub unsafe fn PyArray_One<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject -) -> *mut c_char

    source

    pub unsafe fn PyArray_CastToType<'py>( + arr: *mut PyArrayObject +) -> *mut c_char

    source

    pub unsafe fn PyArray_CastToType<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - dtype: *mut PyArray_Descr, - is_f_order: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_CastTo<'py>( + arr: *mut PyArrayObject, + dtype: *mut PyArray_Descr, + is_f_order: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_CastTo<'py>( &self, py: Python<'py>, - out: *mut PyArrayObject, - mp: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_CastAnyTo<'py>( + out: *mut PyArrayObject, + mp: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_CastAnyTo<'py>( &self, py: Python<'py>, - out: *mut PyArrayObject, - mp: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_CanCastSafely<'py>( + out: *mut PyArrayObject, + mp: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_CanCastSafely<'py>( &self, py: Python<'py>, - fromtype: c_int, - totype: c_int -) -> c_int

    source

    pub unsafe fn PyArray_CanCastTo<'py>( + fromtype: c_int, + totype: c_int +) -> c_int

    source

    pub unsafe fn PyArray_CanCastTo<'py>( &self, py: Python<'py>, - from: *mut PyArray_Descr, - to: *mut PyArray_Descr + from: *mut PyArray_Descr, + to: *mut PyArray_Descr ) -> npy_bool

    source

    pub unsafe fn PyArray_ObjectType<'py>( &self, py: Python<'py>, - op: *mut PyObject, - minimum_type: c_int -) -> c_int

    source

    pub unsafe fn PyArray_DescrFromObject<'py>( + op: *mut PyObject, + minimum_type: c_int +) -> c_int

    source

    pub unsafe fn PyArray_DescrFromObject<'py>( &self, py: Python<'py>, - op: *mut PyObject, - mintype: *mut PyArray_Descr -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_ConvertToCommonType<'py>( + op: *mut PyObject, + mintype: *mut PyArray_Descr +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_ConvertToCommonType<'py>( &self, py: Python<'py>, - op: *mut PyObject, - retn: *mut c_int -) -> *mut *mut PyArrayObject

    source

    pub unsafe fn PyArray_DescrFromScalar<'py>( + op: *mut PyObject, + retn: *mut c_int +) -> *mut *mut PyArrayObject

    source

    pub unsafe fn PyArray_DescrFromScalar<'py>( &self, py: Python<'py>, - sc: *mut PyObject -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_DescrFromTypeObject<'py>( + sc: *mut PyObject +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_DescrFromTypeObject<'py>( &self, py: Python<'py>, - type_: *mut PyObject -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_Size<'py>( + type_: *mut PyObject +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_Size<'py>( &self, py: Python<'py>, - op: *mut PyObject + op: *mut PyObject ) -> npy_intp

    source

    pub unsafe fn PyArray_Scalar<'py>( &self, py: Python<'py>, - data: *mut c_void, - descr: *mut PyArray_Descr, - base: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromScalar<'py>( + data: *mut c_void, + descr: *mut PyArray_Descr, + base: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromScalar<'py>( &self, py: Python<'py>, - scalar: *mut PyObject, - outcode: *mut PyArray_Descr -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ScalarAsCtype<'py>( + scalar: *mut PyObject, + outcode: *mut PyArray_Descr +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ScalarAsCtype<'py>( &self, py: Python<'py>, - scalar: *mut PyObject, - ctypeptr: *mut c_void + scalar: *mut PyObject, + ctypeptr: *mut c_void )

    source

    pub unsafe fn PyArray_CastScalarToCtype<'py>( &self, py: Python<'py>, - scalar: *mut PyObject, - ctypeptr: *mut c_void, - outcode: *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyArray_CastScalarDirect<'py>( + scalar: *mut PyObject, + ctypeptr: *mut c_void, + outcode: *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyArray_CastScalarDirect<'py>( &self, py: Python<'py>, - scalar: *mut PyObject, - indescr: *mut PyArray_Descr, - ctypeptr: *mut c_void, - outtype: c_int -) -> c_int

    source

    pub unsafe fn PyArray_ScalarFromObject<'py>( + scalar: *mut PyObject, + indescr: *mut PyArray_Descr, + ctypeptr: *mut c_void, + outtype: c_int +) -> c_int

    source

    pub unsafe fn PyArray_ScalarFromObject<'py>( &self, py: Python<'py>, - object: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_GetCastFunc<'py>( + object: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_GetCastFunc<'py>( &self, py: Python<'py>, - descr: *mut PyArray_Descr, - type_num: c_int + descr: *mut PyArray_Descr, + type_num: c_int ) -> PyArray_VectorUnaryFunc

    source

    pub unsafe fn PyArray_FromDims<'py>( &self, py: Python<'py>, - nd: c_int, - d: *mut c_int, - type_: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromDimsAndDataAndDescr<'py>( + nd: c_int, + d: *mut c_int, + type_: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromDimsAndDataAndDescr<'py>( &self, py: Python<'py>, - nd: c_int, - d: *mut c_int, - descr: *mut PyArray_Descr, - data: *mut c_char -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromAny<'py>( + nd: c_int, + d: *mut c_int, + descr: *mut PyArray_Descr, + data: *mut c_char +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromAny<'py>( &self, py: Python<'py>, - op: *mut PyObject, - newtype: *mut PyArray_Descr, - min_depth: c_int, - max_depth: c_int, - flags: c_int, - context: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_EnsureArray<'py>( + op: *mut PyObject, + newtype: *mut PyArray_Descr, + min_depth: c_int, + max_depth: c_int, + flags: c_int, + context: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_EnsureArray<'py>( &self, py: Python<'py>, - op: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_EnsureAnyArray<'py>( + op: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_EnsureAnyArray<'py>( &self, py: Python<'py>, - op: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromFile<'py>( + op: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromFile<'py>( &self, py: Python<'py>, - fp: *mut FILE, - dtype: *mut PyArray_Descr, + fp: *mut FILE, + dtype: *mut PyArray_Descr, num: npy_intp, - sep: *mut c_char -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromString<'py>( + sep: *mut c_char +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromString<'py>( &self, py: Python<'py>, - data: *mut c_char, + data: *mut c_char, slen: npy_intp, - dtype: *mut PyArray_Descr, + dtype: *mut PyArray_Descr, num: npy_intp, - sep: *mut c_char -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromBuffer<'py>( + sep: *mut c_char +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromBuffer<'py>( &self, py: Python<'py>, - buf: *mut PyObject, - type_: *mut PyArray_Descr, + buf: *mut PyObject, + type_: *mut PyArray_Descr, count: npy_intp, offset: npy_intp -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromIter<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromIter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - dtype: *mut PyArray_Descr, + obj: *mut PyObject, + dtype: *mut PyArray_Descr, count: npy_intp -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Return<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Return<'py>( &self, py: Python<'py>, - mp: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_GetField<'py>( + mp: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_GetField<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - typed: *mut PyArray_Descr, - offset: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_SetField<'py>( + self_: *mut PyArrayObject, + typed: *mut PyArray_Descr, + offset: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_SetField<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - dtype: *mut PyArray_Descr, - offset: c_int, - val: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_Byteswap<'py>( + self_: *mut PyArrayObject, + dtype: *mut PyArray_Descr, + offset: c_int, + val: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_Byteswap<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, + self_: *mut PyArrayObject, inplace: npy_bool -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Resize<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Resize<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - newshape: *mut PyArray_Dims, - refcheck: c_int, + self_: *mut PyArrayObject, + newshape: *mut PyArray_Dims, + refcheck: c_int, order: NPY_ORDER -) -> *mut PyObject

    source

    pub unsafe fn PyArray_MoveInto<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_MoveInto<'py>( &self, py: Python<'py>, - dst: *mut PyArrayObject, - src: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_CopyInto<'py>( + dst: *mut PyArrayObject, + src: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_CopyInto<'py>( &self, py: Python<'py>, - dst: *mut PyArrayObject, - src: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_CopyAnyInto<'py>( + dst: *mut PyArrayObject, + src: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_CopyAnyInto<'py>( &self, py: Python<'py>, - dst: *mut PyArrayObject, - src: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_CopyObject<'py>( + dst: *mut PyArrayObject, + src: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_CopyObject<'py>( &self, py: Python<'py>, - dest: *mut PyArrayObject, - src_object: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_NewCopy<'py>( + dest: *mut PyArrayObject, + src_object: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_NewCopy<'py>( &self, py: Python<'py>, - obj: *mut PyArrayObject, + obj: *mut PyArrayObject, order: NPY_ORDER -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ToList<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ToList<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ToString<'py>( + self_: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ToString<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, + self_: *mut PyArrayObject, order: NPY_ORDER -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ToFile<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ToFile<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - fp: *mut FILE, - sep: *mut c_char, - format: *mut c_char -) -> c_int

    source

    pub unsafe fn PyArray_Dump<'py>( + self_: *mut PyArrayObject, + fp: *mut FILE, + sep: *mut c_char, + format: *mut c_char +) -> c_int

    source

    pub unsafe fn PyArray_Dump<'py>( &self, py: Python<'py>, - self_: *mut PyObject, - file: *mut PyObject, - protocol: c_int -) -> c_int

    source

    pub unsafe fn PyArray_Dumps<'py>( + self_: *mut PyObject, + file: *mut PyObject, + protocol: c_int +) -> c_int

    source

    pub unsafe fn PyArray_Dumps<'py>( &self, py: Python<'py>, - self_: *mut PyObject, - protocol: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ValidType<'py>( + self_: *mut PyObject, + protocol: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ValidType<'py>( &self, py: Python<'py>, - type_: c_int -) -> c_int

    source

    pub unsafe fn PyArray_UpdateFlags<'py>( + type_: c_int +) -> c_int

    source

    pub unsafe fn PyArray_UpdateFlags<'py>( &self, py: Python<'py>, - ret: *mut PyArrayObject, - flagmask: c_int + ret: *mut PyArrayObject, + flagmask: c_int )

    source

    pub unsafe fn PyArray_New<'py>( &self, py: Python<'py>, - subtype: *mut PyTypeObject, - nd: c_int, - dims: *mut npy_intp, - type_num: c_int, - strides: *mut npy_intp, - data: *mut c_void, - itemsize: c_int, - flags: c_int, - obj: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_NewFromDescr<'py>( + subtype: *mut PyTypeObject, + nd: c_int, + dims: *mut npy_intp, + type_num: c_int, + strides: *mut npy_intp, + data: *mut c_void, + itemsize: c_int, + flags: c_int, + obj: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_NewFromDescr<'py>( &self, py: Python<'py>, - subtype: *mut PyTypeObject, - descr: *mut PyArray_Descr, - nd: c_int, - dims: *mut npy_intp, - strides: *mut npy_intp, - data: *mut c_void, - flags: c_int, - obj: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_DescrNew<'py>( + subtype: *mut PyTypeObject, + descr: *mut PyArray_Descr, + nd: c_int, + dims: *mut npy_intp, + strides: *mut npy_intp, + data: *mut c_void, + flags: c_int, + obj: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_DescrNew<'py>( &self, py: Python<'py>, - base: *mut PyArray_Descr -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_DescrNewFromType<'py>( + base: *mut PyArray_Descr +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_DescrNewFromType<'py>( &self, py: Python<'py>, - type_num: c_int -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_GetPriority<'py>( + type_num: c_int +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_GetPriority<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - default_: f64 -) -> f64

    source

    pub unsafe fn PyArray_IterNew<'py>( + obj: *mut PyObject, + default_: f64 +) -> f64

    source

    pub unsafe fn PyArray_IterNew<'py>( &self, py: Python<'py>, - obj: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_PyIntAsInt<'py>( + obj: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_PyIntAsInt<'py>( &self, py: Python<'py>, - o: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_PyIntAsIntp<'py>( + o: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_PyIntAsIntp<'py>( &self, py: Python<'py>, - o: *mut PyObject + o: *mut PyObject ) -> npy_intp

    source

    pub unsafe fn PyArray_Broadcast<'py>( &self, py: Python<'py>, - mit: *mut PyArrayMultiIterObject -) -> c_int

    source

    pub unsafe fn PyArray_FillObjectArray<'py>( + mit: *mut PyArrayMultiIterObject +) -> c_int

    source

    pub unsafe fn PyArray_FillObjectArray<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - obj: *mut PyObject + arr: *mut PyArrayObject, + obj: *mut PyObject )

    source

    pub unsafe fn PyArray_FillWithScalar<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - obj: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_CheckStrides<'py>( + arr: *mut PyArrayObject, + obj: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_CheckStrides<'py>( &self, py: Python<'py>, - elsize: c_int, - nd: c_int, + elsize: c_int, + nd: c_int, numbytes: npy_intp, offset: npy_intp, - dims: *mut npy_intp, - newstrides: *mut npy_intp + dims: *mut npy_intp, + newstrides: *mut npy_intp ) -> npy_bool

    source

    pub unsafe fn PyArray_DescrNewByteorder<'py>( &self, py: Python<'py>, - self_: *mut PyArray_Descr, - newendian: c_char -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_IterAllButAxis<'py>( + self_: *mut PyArray_Descr, + newendian: c_char +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_IterAllButAxis<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - inaxis: *mut c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_CheckFromAny<'py>( + obj: *mut PyObject, + inaxis: *mut c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_CheckFromAny<'py>( &self, py: Python<'py>, - op: *mut PyObject, - descr: *mut PyArray_Descr, - min_depth: c_int, - max_depth: c_int, - requires: c_int, - context: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromArray<'py>( + op: *mut PyObject, + descr: *mut PyArray_Descr, + min_depth: c_int, + max_depth: c_int, + requires: c_int, + context: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromArray<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - newtype: *mut PyArray_Descr, - flags: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromInterface<'py>( + arr: *mut PyArrayObject, + newtype: *mut PyArray_Descr, + flags: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromInterface<'py>( &self, py: Python<'py>, - origin: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromStructInterface<'py>( + origin: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromStructInterface<'py>( &self, py: Python<'py>, - input: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromArrayAttr<'py>( + input: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_FromArrayAttr<'py>( &self, py: Python<'py>, - op: *mut PyObject, - typecode: *mut PyArray_Descr, - context: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ScalarKind<'py>( + op: *mut PyObject, + typecode: *mut PyArray_Descr, + context: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ScalarKind<'py>( &self, py: Python<'py>, - typenum: c_int, - arr: *mut *mut PyArrayObject + typenum: c_int, + arr: *mut *mut PyArrayObject ) -> NPY_SCALARKIND

    source

    pub unsafe fn PyArray_CanCoerceScalar<'py>( &self, py: Python<'py>, - thistype: c_int, - neededtype: c_int, + thistype: c_int, + neededtype: c_int, scalar: NPY_SCALARKIND -) -> c_int

    source

    pub unsafe fn PyArray_NewFlagsObject<'py>( +) -> c_int

    source

    pub unsafe fn PyArray_NewFlagsObject<'py>( &self, py: Python<'py>, - obj: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_CanCastScalar<'py>( + obj: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_CanCastScalar<'py>( &self, py: Python<'py>, - from: *mut PyTypeObject, - to: *mut PyTypeObject + from: *mut PyTypeObject, + to: *mut PyTypeObject ) -> npy_bool

    source

    pub unsafe fn PyArray_CompareUCS4<'py>( &self, py: Python<'py>, - s1: *mut npy_ucs4, - s2: *mut npy_ucs4, - len: usize -) -> c_int

    source

    pub unsafe fn PyArray_RemoveSmallest<'py>( + s1: *mut npy_ucs4, + s2: *mut npy_ucs4, + len: usize +) -> c_int

    source

    pub unsafe fn PyArray_RemoveSmallest<'py>( &self, py: Python<'py>, - multi: *mut PyArrayMultiIterObject -) -> c_int

    source

    pub unsafe fn PyArray_ElementStrides<'py>( + multi: *mut PyArrayMultiIterObject +) -> c_int

    source

    pub unsafe fn PyArray_ElementStrides<'py>( &self, py: Python<'py>, - obj: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_Item_INCREF<'py>( + obj: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_Item_INCREF<'py>( &self, py: Python<'py>, - data: *mut c_char, - descr: *mut PyArray_Descr + data: *mut c_char, + descr: *mut PyArray_Descr )

    source

    pub unsafe fn PyArray_Item_XDECREF<'py>( &self, py: Python<'py>, - data: *mut c_char, - descr: *mut PyArray_Descr + data: *mut c_char, + descr: *mut PyArray_Descr )

    source

    pub unsafe fn PyArray_FieldNames<'py>( &self, py: Python<'py>, - fields: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Transpose<'py>( + fields: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Transpose<'py>( &self, py: Python<'py>, - ap: *mut PyArrayObject, - permute: *mut PyArray_Dims -) -> *mut PyObject

    source

    pub unsafe fn PyArray_TakeFrom<'py>( + ap: *mut PyArrayObject, + permute: *mut PyArray_Dims +) -> *mut PyObject

    source

    pub unsafe fn PyArray_TakeFrom<'py>( &self, py: Python<'py>, - self0: *mut PyArrayObject, - indices0: *mut PyObject, - axis: c_int, - out: *mut PyArrayObject, + self0: *mut PyArrayObject, + indices0: *mut PyObject, + axis: c_int, + out: *mut PyArrayObject, clipmode: NPY_CLIPMODE -) -> *mut PyObject

    source

    pub unsafe fn PyArray_PutTo<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_PutTo<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - values0: *mut PyObject, - indices0: *mut PyObject, + self_: *mut PyArrayObject, + values0: *mut PyObject, + indices0: *mut PyObject, clipmode: NPY_CLIPMODE -) -> *mut PyObject

    source

    pub unsafe fn PyArray_PutMask<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_PutMask<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - values0: *mut PyObject, - mask0: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Repeat<'py>( + self_: *mut PyArrayObject, + values0: *mut PyObject, + mask0: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Repeat<'py>( &self, py: Python<'py>, - aop: *mut PyArrayObject, - op: *mut PyObject, - axis: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Choose<'py>( + aop: *mut PyArrayObject, + op: *mut PyObject, + axis: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Choose<'py>( &self, py: Python<'py>, - ip: *mut PyArrayObject, - op: *mut PyObject, - out: *mut PyArrayObject, + ip: *mut PyArrayObject, + op: *mut PyObject, + out: *mut PyArrayObject, clipmode: NPY_CLIPMODE -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Sort<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Sort<'py>( &self, py: Python<'py>, - op: *mut PyArrayObject, - axis: c_int, + op: *mut PyArrayObject, + axis: c_int, which: NPY_SORTKIND -) -> c_int

    source

    pub unsafe fn PyArray_ArgSort<'py>( +) -> c_int

    source

    pub unsafe fn PyArray_ArgSort<'py>( &self, py: Python<'py>, - op: *mut PyArrayObject, - axis: c_int, + op: *mut PyArrayObject, + axis: c_int, which: NPY_SORTKIND -) -> *mut PyObject

    source

    pub unsafe fn PyArray_SearchSorted<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_SearchSorted<'py>( &self, py: Python<'py>, - op1: *mut PyArrayObject, - op2: *mut PyObject, + op1: *mut PyArrayObject, + op2: *mut PyObject, side: NPY_SEARCHSIDE, - perm: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ArgMax<'py>( + perm: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ArgMax<'py>( &self, py: Python<'py>, - op: *mut PyArrayObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ArgMin<'py>( + op: *mut PyArrayObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ArgMin<'py>( &self, py: Python<'py>, - op: *mut PyArrayObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Reshape<'py>( + op: *mut PyArrayObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Reshape<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - shape: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Newshape<'py>( + self_: *mut PyArrayObject, + shape: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Newshape<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - newdims: *mut PyArray_Dims, + self_: *mut PyArrayObject, + newdims: *mut PyArray_Dims, order: NPY_ORDER -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Squeeze<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Squeeze<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_View<'py>( + self_: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_View<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - type_: *mut PyArray_Descr, - pytype: *mut PyTypeObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_SwapAxes<'py>( + self_: *mut PyArrayObject, + type_: *mut PyArray_Descr, + pytype: *mut PyTypeObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_SwapAxes<'py>( &self, py: Python<'py>, - ap: *mut PyArrayObject, - a1: c_int, - a2: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Max<'py>( + ap: *mut PyArrayObject, + a1: c_int, + a2: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Max<'py>( &self, py: Python<'py>, - ap: *mut PyArrayObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Min<'py>( + ap: *mut PyArrayObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Min<'py>( &self, py: Python<'py>, - ap: *mut PyArrayObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Ptp<'py>( + ap: *mut PyArrayObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Ptp<'py>( &self, py: Python<'py>, - ap: *mut PyArrayObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Mean<'py>( + ap: *mut PyArrayObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Mean<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - rtype: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Trace<'py>( + self_: *mut PyArrayObject, + axis: c_int, + rtype: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Trace<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - offset: c_int, - axis1: c_int, - axis2: c_int, - rtype: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Diagonal<'py>( + self_: *mut PyArrayObject, + offset: c_int, + axis1: c_int, + axis2: c_int, + rtype: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Diagonal<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - offset: c_int, - axis1: c_int, - axis2: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Clip<'py>( + self_: *mut PyArrayObject, + offset: c_int, + axis1: c_int, + axis2: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Clip<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - min: *mut PyObject, - max: *mut PyObject, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Conjugate<'py>( + self_: *mut PyArrayObject, + min: *mut PyObject, + max: *mut PyObject, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Conjugate<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Nonzero<'py>( + self_: *mut PyArrayObject, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Nonzero<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Std<'py>( + self_: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Std<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - rtype: c_int, - out: *mut PyArrayObject, - variance: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Sum<'py>( + self_: *mut PyArrayObject, + axis: c_int, + rtype: c_int, + out: *mut PyArrayObject, + variance: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Sum<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - rtype: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_CumSum<'py>( + self_: *mut PyArrayObject, + axis: c_int, + rtype: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_CumSum<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - rtype: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Prod<'py>( + self_: *mut PyArrayObject, + axis: c_int, + rtype: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Prod<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - rtype: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_CumProd<'py>( + self_: *mut PyArrayObject, + axis: c_int, + rtype: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_CumProd<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - rtype: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_All<'py>( + self_: *mut PyArrayObject, + axis: c_int, + rtype: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_All<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Any<'py>( + self_: *mut PyArrayObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Any<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Compress<'py>( + self_: *mut PyArrayObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Compress<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject, - condition: *mut PyObject, - axis: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Flatten<'py>( + self_: *mut PyArrayObject, + condition: *mut PyObject, + axis: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Flatten<'py>( &self, py: Python<'py>, - a: *mut PyArrayObject, + a: *mut PyArrayObject, order: NPY_ORDER -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Ravel<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Ravel<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, + arr: *mut PyArrayObject, order: NPY_ORDER -) -> *mut PyObject

    source

    pub unsafe fn PyArray_MultiplyList<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_MultiplyList<'py>( &self, py: Python<'py>, - l1: *mut npy_intp, - n: c_int + l1: *mut npy_intp, + n: c_int ) -> npy_intp

    source

    pub unsafe fn PyArray_MultiplyIntList<'py>( &self, py: Python<'py>, - l1: *mut c_int, - n: c_int -) -> c_int

    source

    pub unsafe fn PyArray_GetPtr<'py>( + l1: *mut c_int, + n: c_int +) -> c_int

    source

    pub unsafe fn PyArray_GetPtr<'py>( &self, py: Python<'py>, - obj: *mut PyArrayObject, - ind: *mut npy_intp -) -> *mut c_void

    source

    pub unsafe fn PyArray_CompareLists<'py>( + obj: *mut PyArrayObject, + ind: *mut npy_intp +) -> *mut c_void

    source

    pub unsafe fn PyArray_CompareLists<'py>( &self, py: Python<'py>, - l1: *mut npy_intp, - l2: *mut npy_intp, - n: c_int -) -> c_int

    source

    pub unsafe fn PyArray_AsCArray<'py>( + l1: *mut npy_intp, + l2: *mut npy_intp, + n: c_int +) -> c_int

    source

    pub unsafe fn PyArray_AsCArray<'py>( &self, py: Python<'py>, - op: *mut *mut PyObject, - ptr: *mut c_void, - dims: *mut npy_intp, - nd: c_int, - typedescr: *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyArray_As1D<'py>( + op: *mut *mut PyObject, + ptr: *mut c_void, + dims: *mut npy_intp, + nd: c_int, + typedescr: *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyArray_As1D<'py>( &self, py: Python<'py>, - op: *mut *mut PyObject, - ptr: *mut *mut c_char, - d1: *mut c_int, - typecode: c_int -) -> c_int

    source

    pub unsafe fn PyArray_As2D<'py>( + op: *mut *mut PyObject, + ptr: *mut *mut c_char, + d1: *mut c_int, + typecode: c_int +) -> c_int

    source

    pub unsafe fn PyArray_As2D<'py>( &self, py: Python<'py>, - op: *mut *mut PyObject, - ptr: *mut *mut *mut c_char, - d1: *mut c_int, - d2: *mut c_int, - typecode: c_int -) -> c_int

    source

    pub unsafe fn PyArray_Free<'py>( + op: *mut *mut PyObject, + ptr: *mut *mut *mut c_char, + d1: *mut c_int, + d2: *mut c_int, + typecode: c_int +) -> c_int

    source

    pub unsafe fn PyArray_Free<'py>( &self, py: Python<'py>, - op: *mut PyObject, - ptr: *mut c_void -) -> c_int

    source

    pub unsafe fn PyArray_Converter<'py>( + op: *mut PyObject, + ptr: *mut c_void +) -> c_int

    source

    pub unsafe fn PyArray_Converter<'py>( &self, py: Python<'py>, - object: *mut PyObject, - address: *mut *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_IntpFromSequence<'py>( + object: *mut PyObject, + address: *mut *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_IntpFromSequence<'py>( &self, py: Python<'py>, - seq: *mut PyObject, - vals: *mut npy_intp, - maxvals: c_int -) -> c_int

    source

    pub unsafe fn PyArray_Concatenate<'py>( + seq: *mut PyObject, + vals: *mut npy_intp, + maxvals: c_int +) -> c_int

    source

    pub unsafe fn PyArray_Concatenate<'py>( &self, py: Python<'py>, - op: *mut PyObject, - axis: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_InnerProduct<'py>( + op: *mut PyObject, + axis: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_InnerProduct<'py>( &self, py: Python<'py>, - op1: *mut PyObject, - op2: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_MatrixProduct<'py>( + op1: *mut PyObject, + op2: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_MatrixProduct<'py>( &self, py: Python<'py>, - op1: *mut PyObject, - op2: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_CopyAndTranspose<'py>( + op1: *mut PyObject, + op2: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_CopyAndTranspose<'py>( &self, py: Python<'py>, - op: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Correlate<'py>( + op: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Correlate<'py>( &self, py: Python<'py>, - op1: *mut PyObject, - op2: *mut PyObject, - mode: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_TypestrConvert<'py>( + op1: *mut PyObject, + op2: *mut PyObject, + mode: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_TypestrConvert<'py>( &self, py: Python<'py>, - itemsize: c_int, - gentype: c_int -) -> c_int

    source

    pub unsafe fn PyArray_DescrConverter<'py>( + itemsize: c_int, + gentype: c_int +) -> c_int

    source

    pub unsafe fn PyArray_DescrConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - at: *mut *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyArray_DescrConverter2<'py>( + obj: *mut PyObject, + at: *mut *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyArray_DescrConverter2<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - at: *mut *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyArray_IntpConverter<'py>( + obj: *mut PyObject, + at: *mut *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyArray_IntpConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - seq: *mut PyArray_Dims -) -> c_int

    source

    pub unsafe fn PyArray_BufferConverter<'py>( + obj: *mut PyObject, + seq: *mut PyArray_Dims +) -> c_int

    source

    pub unsafe fn PyArray_BufferConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - buf: *mut PyArray_Chunk -) -> c_int

    source

    pub unsafe fn PyArray_AxisConverter<'py>( + obj: *mut PyObject, + buf: *mut PyArray_Chunk +) -> c_int

    source

    pub unsafe fn PyArray_AxisConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - axis: *mut c_int -) -> c_int

    source

    pub unsafe fn PyArray_BoolConverter<'py>( + obj: *mut PyObject, + axis: *mut c_int +) -> c_int

    source

    pub unsafe fn PyArray_BoolConverter<'py>( &self, py: Python<'py>, - object: *mut PyObject, - val: *mut npy_bool -) -> c_int

    source

    pub unsafe fn PyArray_ByteorderConverter<'py>( + object: *mut PyObject, + val: *mut npy_bool +) -> c_int

    source

    pub unsafe fn PyArray_ByteorderConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - endian: *mut c_char -) -> c_int

    source

    pub unsafe fn PyArray_OrderConverter<'py>( + obj: *mut PyObject, + endian: *mut c_char +) -> c_int

    source

    pub unsafe fn PyArray_OrderConverter<'py>( &self, py: Python<'py>, - object: *mut PyObject, - val: *mut NPY_ORDER -) -> c_int

    source

    pub unsafe fn PyArray_EquivTypes<'py>( + object: *mut PyObject, + val: *mut NPY_ORDER +) -> c_int

    source

    pub unsafe fn PyArray_EquivTypes<'py>( &self, py: Python<'py>, - type1: *mut PyArray_Descr, - type2: *mut PyArray_Descr -) -> c_uchar

    source

    pub unsafe fn PyArray_Zeros<'py>( + type1: *mut PyArray_Descr, + type2: *mut PyArray_Descr +) -> c_uchar

    source

    pub unsafe fn PyArray_Zeros<'py>( &self, py: Python<'py>, - nd: c_int, - dims: *mut npy_intp, - type_: *mut PyArray_Descr, - is_f_order: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Empty<'py>( + nd: c_int, + dims: *mut npy_intp, + type_: *mut PyArray_Descr, + is_f_order: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Empty<'py>( &self, py: Python<'py>, - nd: c_int, - dims: *mut npy_intp, - type_: *mut PyArray_Descr, - is_f_order: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Where<'py>( + nd: c_int, + dims: *mut npy_intp, + type_: *mut PyArray_Descr, + is_f_order: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Where<'py>( &self, py: Python<'py>, - condition: *mut PyObject, - x: *mut PyObject, - y: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Arange<'py>( + condition: *mut PyObject, + x: *mut PyObject, + y: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Arange<'py>( &self, py: Python<'py>, - start: f64, - stop: f64, - step: f64, - type_num: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ArangeObj<'py>( + start: f64, + stop: f64, + step: f64, + type_num: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ArangeObj<'py>( &self, py: Python<'py>, - start: *mut PyObject, - stop: *mut PyObject, - step: *mut PyObject, - dtype: *mut PyArray_Descr -) -> *mut PyObject

    source

    pub unsafe fn PyArray_SortkindConverter<'py>( + start: *mut PyObject, + stop: *mut PyObject, + step: *mut PyObject, + dtype: *mut PyArray_Descr +) -> *mut PyObject

    source

    pub unsafe fn PyArray_SortkindConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - sortkind: *mut NPY_SORTKIND -) -> c_int

    source

    pub unsafe fn PyArray_LexSort<'py>( + obj: *mut PyObject, + sortkind: *mut NPY_SORTKIND +) -> c_int

    source

    pub unsafe fn PyArray_LexSort<'py>( &self, py: Python<'py>, - sort_keys: *mut PyObject, - axis: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_Round<'py>( + sort_keys: *mut PyObject, + axis: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Round<'py>( &self, py: Python<'py>, - a: *mut PyArrayObject, - decimals: c_int, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_EquivTypenums<'py>( + a: *mut PyArrayObject, + decimals: c_int, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_EquivTypenums<'py>( &self, py: Python<'py>, - typenum1: c_int, - typenum2: c_int -) -> c_uchar

    source

    pub unsafe fn PyArray_RegisterDataType<'py>( + typenum1: c_int, + typenum2: c_int +) -> c_uchar

    source

    pub unsafe fn PyArray_RegisterDataType<'py>( &self, py: Python<'py>, - descr: *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyArray_RegisterCastFunc<'py>( + descr: *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyArray_RegisterCastFunc<'py>( &self, py: Python<'py>, - descr: *mut PyArray_Descr, - totype: c_int, + descr: *mut PyArray_Descr, + totype: c_int, castfunc: PyArray_VectorUnaryFunc -) -> c_int

    source

    pub unsafe fn PyArray_RegisterCanCast<'py>( +) -> c_int

    source

    pub unsafe fn PyArray_RegisterCanCast<'py>( &self, py: Python<'py>, - descr: *mut PyArray_Descr, - totype: c_int, + descr: *mut PyArray_Descr, + totype: c_int, scalar: NPY_SCALARKIND -) -> c_int

    source

    pub unsafe fn PyArray_InitArrFuncs<'py>( +) -> c_int

    source

    pub unsafe fn PyArray_InitArrFuncs<'py>( &self, py: Python<'py>, - f: *mut PyArray_ArrFuncs + f: *mut PyArray_ArrFuncs )

    source

    pub unsafe fn PyArray_IntTupleFromIntp<'py>( &self, py: Python<'py>, - len: c_int, - vals: *mut npy_intp -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ElementFromName<'py>( + len: c_int, + vals: *mut npy_intp +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ElementFromName<'py>( &self, py: Python<'py>, - str: *mut c_char -) -> c_int

    source

    pub unsafe fn PyArray_ClipmodeConverter<'py>( + str: *mut c_char +) -> c_int

    source

    pub unsafe fn PyArray_ClipmodeConverter<'py>( &self, py: Python<'py>, - object: *mut PyObject, - val: *mut NPY_CLIPMODE -) -> c_int

    source

    pub unsafe fn PyArray_OutputConverter<'py>( + object: *mut PyObject, + val: *mut NPY_CLIPMODE +) -> c_int

    source

    pub unsafe fn PyArray_OutputConverter<'py>( &self, py: Python<'py>, - object: *mut PyObject, - address: *mut *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_BroadcastToShape<'py>( + object: *mut PyObject, + address: *mut *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_BroadcastToShape<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - dims: *mut npy_intp, - nd: c_int -) -> *mut PyObject

    source

    pub unsafe fn _PyArray_SigintHandler<'py>(&self, py: Python<'py>, signum: c_int)

    source

    pub unsafe fn _PyArray_GetSigintBuf<'py>(&self, py: Python<'py>) -> *mut c_void

    source

    pub unsafe fn PyArray_DescrAlignConverter<'py>( + obj: *mut PyObject, + dims: *mut npy_intp, + nd: c_int +) -> *mut PyObject

    source

    pub unsafe fn _PyArray_SigintHandler<'py>(&self, py: Python<'py>, signum: c_int)

    source

    pub unsafe fn _PyArray_GetSigintBuf<'py>(&self, py: Python<'py>) -> *mut c_void

    source

    pub unsafe fn PyArray_DescrAlignConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - at: *mut *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyArray_DescrAlignConverter2<'py>( + obj: *mut PyObject, + at: *mut *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyArray_DescrAlignConverter2<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - at: *mut *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyArray_SearchsideConverter<'py>( + obj: *mut PyObject, + at: *mut *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyArray_SearchsideConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - addr: *mut c_void -) -> c_int

    source

    pub unsafe fn PyArray_CheckAxis<'py>( + obj: *mut PyObject, + addr: *mut c_void +) -> c_int

    source

    pub unsafe fn PyArray_CheckAxis<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - axis: *mut c_int, - flags: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_OverflowMultiplyList<'py>( + arr: *mut PyArrayObject, + axis: *mut c_int, + flags: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_OverflowMultiplyList<'py>( &self, py: Python<'py>, - l1: *mut npy_intp, - n: c_int + l1: *mut npy_intp, + n: c_int ) -> npy_intp

    source

    pub unsafe fn PyArray_CompareString<'py>( &self, py: Python<'py>, - s1: *mut c_char, - s2: *mut c_char, - len: usize -) -> c_int

    source

    pub unsafe fn PyArray_GetEndianness<'py>(&self, py: Python<'py>) -> c_int

    source

    pub unsafe fn PyArray_GetNDArrayCFeatureVersion<'py>( + s1: *mut c_char, + s2: *mut c_char, + len: usize +) -> c_int

    source

    pub unsafe fn PyArray_GetEndianness<'py>(&self, py: Python<'py>) -> c_int

    source

    pub unsafe fn PyArray_GetNDArrayCFeatureVersion<'py>( &self, py: Python<'py> -) -> c_uint

    source

    pub unsafe fn PyArray_Correlate2<'py>( +) -> c_uint

    source

    pub unsafe fn PyArray_Correlate2<'py>( &self, py: Python<'py>, - op1: *mut PyObject, - op2: *mut PyObject, - mode: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_NeighborhoodIterNew<'py>( + op1: *mut PyObject, + op2: *mut PyObject, + mode: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_NeighborhoodIterNew<'py>( &self, py: Python<'py>, - x: *mut PyArrayIterObject, - bounds: *mut npy_intp, - mode: c_int, - fill: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_SetDatetimeParseFunction<'py>( + x: *mut PyArrayIterObject, + bounds: *mut npy_intp, + mode: c_int, + fill: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_SetDatetimeParseFunction<'py>( &self, py: Python<'py>, - op: *mut PyObject + op: *mut PyObject )

    source

    pub unsafe fn PyArray_DatetimeToDatetimeStruct<'py>( &self, py: Python<'py>, val: npy_datetime, fr: NPY_DATETIMEUNIT, - result: *mut npy_datetimestruct + result: *mut npy_datetimestruct )

    source

    pub unsafe fn PyArray_TimedeltaToTimedeltaStruct<'py>( &self, py: Python<'py>, val: npy_timedelta, fr: NPY_DATETIMEUNIT, - result: *mut npy_timedeltastruct + result: *mut npy_timedeltastruct )

    source

    pub unsafe fn PyArray_DatetimeStructToDatetime<'py>( &self, py: Python<'py>, fr: NPY_DATETIMEUNIT, - d: *mut npy_datetimestruct + d: *mut npy_datetimestruct ) -> npy_datetime

    source

    pub unsafe fn PyArray_TimedeltaStructToTimedelta<'py>( &self, py: Python<'py>, fr: NPY_DATETIMEUNIT, - d: *mut npy_timedeltastruct + d: *mut npy_timedeltastruct ) -> npy_datetime

    source

    pub unsafe fn NpyIter_New<'py>( &self, py: Python<'py>, - op: *mut PyArrayObject, + op: *mut PyArrayObject, flags: npy_uint32, order: NPY_ORDER, casting: NPY_CASTING, - dtype: *mut PyArray_Descr -) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_MultiNew<'py>( + dtype: *mut PyArray_Descr +) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_MultiNew<'py>( &self, py: Python<'py>, - nop: c_int, - op_in: *mut *mut PyArrayObject, + nop: c_int, + op_in: *mut *mut PyArrayObject, flags: npy_uint32, order: NPY_ORDER, casting: NPY_CASTING, - op_flags: *mut npy_uint32, - op_request_dtypes: *mut *mut PyArray_Descr -) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_AdvancedNew<'py>( + op_flags: *mut npy_uint32, + op_request_dtypes: *mut *mut PyArray_Descr +) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_AdvancedNew<'py>( &self, py: Python<'py>, - nop: c_int, - op_in: *mut *mut PyArrayObject, + nop: c_int, + op_in: *mut *mut PyArrayObject, flags: npy_uint32, order: NPY_ORDER, casting: NPY_CASTING, - op_flags: *mut npy_uint32, - op_request_dtypes: *mut *mut PyArray_Descr, - oa_ndim: c_int, - op_axes: *mut *mut c_int, - itershape: *mut npy_intp, + op_flags: *mut npy_uint32, + op_request_dtypes: *mut *mut PyArray_Descr, + oa_ndim: c_int, + op_axes: *mut *mut c_int, + itershape: *mut npy_intp, buffersize: npy_intp -) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_Copy<'py>( +) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_Copy<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_Deallocate<'py>( + iter: *mut NpyIter +) -> *mut NpyIter

    source

    pub unsafe fn NpyIter_Deallocate<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> c_int

    source

    pub unsafe fn NpyIter_HasDelayedBufAlloc<'py>( + iter: *mut NpyIter +) -> c_int

    source

    pub unsafe fn NpyIter_HasDelayedBufAlloc<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_HasExternalLoop<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_EnableExternalLoop<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> c_int

    source

    pub unsafe fn NpyIter_GetInnerStrideArray<'py>( + iter: *mut NpyIter +) -> c_int

    source

    pub unsafe fn NpyIter_GetInnerStrideArray<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_GetInnerLoopSizePtr<'py>( + iter: *mut NpyIter +) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_GetInnerLoopSizePtr<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_Reset<'py>( + iter: *mut NpyIter +) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_Reset<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - errmsg: *mut *mut c_char -) -> c_int

    source

    pub unsafe fn NpyIter_ResetBasePointers<'py>( + iter: *mut NpyIter, + errmsg: *mut *mut c_char +) -> c_int

    source

    pub unsafe fn NpyIter_ResetBasePointers<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - baseptrs: *mut *mut c_char, - errmsg: *mut *mut c_char -) -> c_int

    source

    pub unsafe fn NpyIter_ResetToIterIndexRange<'py>( + iter: *mut NpyIter, + baseptrs: *mut *mut c_char, + errmsg: *mut *mut c_char +) -> c_int

    source

    pub unsafe fn NpyIter_ResetToIterIndexRange<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, + iter: *mut NpyIter, istart: npy_intp, iend: npy_intp, - errmsg: *mut *mut c_char -) -> c_int

    source

    pub unsafe fn NpyIter_GetNDim<'py>( + errmsg: *mut *mut c_char +) -> c_int

    source

    pub unsafe fn NpyIter_GetNDim<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> c_int

    source

    pub unsafe fn NpyIter_GetNOp<'py>( + iter: *mut NpyIter +) -> c_int

    source

    pub unsafe fn NpyIter_GetNOp<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> c_int

    source

    pub unsafe fn NpyIter_GetIterNext<'py>( + iter: *mut NpyIter +) -> c_int

    source

    pub unsafe fn NpyIter_GetIterNext<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - errmsg: *mut *mut c_char + iter: *mut NpyIter, + errmsg: *mut *mut c_char ) -> NpyIter_IterNextFunc

    source

    pub unsafe fn NpyIter_GetIterSize<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_intp

    source

    pub unsafe fn NpyIter_GetIterIndexRange<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - istart: *mut npy_intp, - iend: *mut npy_intp + iter: *mut NpyIter, + istart: *mut npy_intp, + iend: *mut npy_intp )

    source

    pub unsafe fn NpyIter_GetIterIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_intp

    source

    pub unsafe fn NpyIter_GotoIterIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, + iter: *mut NpyIter, iterindex: npy_intp -) -> c_int

    source

    pub unsafe fn NpyIter_HasMultiIndex<'py>( +) -> c_int

    source

    pub unsafe fn NpyIter_HasMultiIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_GetShape<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - outshape: *mut npy_intp -) -> c_int

    source

    pub unsafe fn NpyIter_GetGetMultiIndex<'py>( + iter: *mut NpyIter, + outshape: *mut npy_intp +) -> c_int

    source

    pub unsafe fn NpyIter_GetGetMultiIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - errmsg: *mut *mut c_char + iter: *mut NpyIter, + errmsg: *mut *mut c_char ) -> NpyIter_GetMultiIndexFunc

    source

    pub unsafe fn NpyIter_GotoMultiIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - multi_index: *mut npy_intp -) -> c_int

    source

    pub unsafe fn NpyIter_RemoveMultiIndex<'py>( + iter: *mut NpyIter, + multi_index: *mut npy_intp +) -> c_int

    source

    pub unsafe fn NpyIter_RemoveMultiIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> c_int

    source

    pub unsafe fn NpyIter_HasIndex<'py>( + iter: *mut NpyIter +) -> c_int

    source

    pub unsafe fn NpyIter_HasIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_IsBuffered<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_IsGrowInner<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_GetBufferSize<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_intp

    source

    pub unsafe fn NpyIter_GetIndexPtr<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_GotoIndex<'py>( + iter: *mut NpyIter +) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_GotoIndex<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, + iter: *mut NpyIter, flat_index: npy_intp -) -> c_int

    source

    pub unsafe fn NpyIter_GetDataPtrArray<'py>( +) -> c_int

    source

    pub unsafe fn NpyIter_GetDataPtrArray<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut *mut c_char

    source

    pub unsafe fn NpyIter_GetDescrArray<'py>( + iter: *mut NpyIter +) -> *mut *mut c_char

    source

    pub unsafe fn NpyIter_GetDescrArray<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut *mut PyArray_Descr

    source

    pub unsafe fn NpyIter_GetOperandArray<'py>( + iter: *mut NpyIter +) -> *mut *mut PyArray_Descr

    source

    pub unsafe fn NpyIter_GetOperandArray<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut *mut PyArrayObject

    source

    pub unsafe fn NpyIter_GetIterView<'py>( + iter: *mut NpyIter +) -> *mut *mut PyArrayObject

    source

    pub unsafe fn NpyIter_GetIterView<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, + iter: *mut NpyIter, i: npy_intp -) -> *mut PyArrayObject

    source

    pub unsafe fn NpyIter_GetReadFlags<'py>( +) -> *mut PyArrayObject

    source

    pub unsafe fn NpyIter_GetReadFlags<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - outreadflags: *mut c_char + iter: *mut NpyIter, + outreadflags: *mut c_char )

    source

    pub unsafe fn NpyIter_GetWriteFlags<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - outwriteflags: *mut c_char + iter: *mut NpyIter, + outwriteflags: *mut c_char )

    source

    pub unsafe fn NpyIter_DebugPrint<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter )

    source

    pub unsafe fn NpyIter_IterationNeedsAPI<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_GetInnerFixedStrideArray<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - out_strides: *mut npy_intp + iter: *mut NpyIter, + out_strides: *mut npy_intp )

    source

    pub unsafe fn NpyIter_RemoveAxis<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - axis: c_int -) -> c_int

    source

    pub unsafe fn NpyIter_GetAxisStrideArray<'py>( + iter: *mut NpyIter, + axis: c_int +) -> c_int

    source

    pub unsafe fn NpyIter_GetAxisStrideArray<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - axis: c_int -) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_RequiresBuffering<'py>( + iter: *mut NpyIter, + axis: c_int +) -> *mut npy_intp

    source

    pub unsafe fn NpyIter_RequiresBuffering<'py>( &self, py: Python<'py>, - iter: *mut NpyIter + iter: *mut NpyIter ) -> npy_bool

    source

    pub unsafe fn NpyIter_GetInitialDataPtrArray<'py>( &self, py: Python<'py>, - iter: *mut NpyIter -) -> *mut *mut c_char

    source

    pub unsafe fn NpyIter_CreateCompatibleStrides<'py>( + iter: *mut NpyIter +) -> *mut *mut c_char

    source

    pub unsafe fn NpyIter_CreateCompatibleStrides<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, + iter: *mut NpyIter, itemsize: npy_intp, - outstrides: *mut npy_intp -) -> c_int

    source

    pub unsafe fn PyArray_CastingConverter<'py>( + outstrides: *mut npy_intp +) -> c_int

    source

    pub unsafe fn PyArray_CastingConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - casting: *mut NPY_CASTING -) -> c_int

    source

    pub unsafe fn PyArray_CountNonzero<'py>( + obj: *mut PyObject, + casting: *mut NPY_CASTING +) -> c_int

    source

    pub unsafe fn PyArray_CountNonzero<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject + self_: *mut PyArrayObject ) -> npy_intp

    source

    pub unsafe fn PyArray_PromoteTypes<'py>( &self, py: Python<'py>, - type1: *mut PyArray_Descr, - type2: *mut PyArray_Descr -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_MinScalarType<'py>( + type1: *mut PyArray_Descr, + type2: *mut PyArray_Descr +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_MinScalarType<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_ResultType<'py>( + arr: *mut PyArrayObject +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_ResultType<'py>( &self, py: Python<'py>, narrs: npy_intp, - arr: *mut *mut PyArrayObject, + arr: *mut *mut PyArrayObject, ndtypes: npy_intp, - dtypes: *mut *mut PyArray_Descr -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_CanCastArrayTo<'py>( + dtypes: *mut *mut PyArray_Descr +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArray_CanCastArrayTo<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - to: *mut PyArray_Descr, + arr: *mut PyArrayObject, + to: *mut PyArray_Descr, casting: NPY_CASTING ) -> npy_bool

    source

    pub unsafe fn PyArray_CanCastTypeTo<'py>( &self, py: Python<'py>, - from: *mut PyArray_Descr, - to: *mut PyArray_Descr, + from: *mut PyArray_Descr, + to: *mut PyArray_Descr, casting: NPY_CASTING ) -> npy_bool

    source

    pub unsafe fn PyArray_EinsteinSum<'py>( &self, py: Python<'py>, - subscripts: *mut c_char, + subscripts: *mut c_char, nop: npy_intp, - op_in: *mut *mut PyArrayObject, - dtype: *mut PyArray_Descr, + op_in: *mut *mut PyArrayObject, + dtype: *mut PyArray_Descr, order: NPY_ORDER, casting: NPY_CASTING, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_NewLikeArray<'py>( + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_NewLikeArray<'py>( &self, py: Python<'py>, - prototype: *mut PyArrayObject, + prototype: *mut PyArrayObject, order: NPY_ORDER, - dtype: *mut PyArray_Descr, - subok: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyArray_GetArrayParamsFromObject<'py>( + dtype: *mut PyArray_Descr, + subok: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyArray_GetArrayParamsFromObject<'py>( &self, py: Python<'py>, - op: *mut PyObject, - requested_dtype: *mut PyArray_Descr, + op: *mut PyObject, + requested_dtype: *mut PyArray_Descr, writeable: npy_bool, - out_dtype: *mut *mut PyArray_Descr, - out_ndim: *mut c_int, - out_dims: *mut npy_intp, - out_arr: *mut *mut PyArrayObject, - context: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_ConvertClipmodeSequence<'py>( + out_dtype: *mut *mut PyArray_Descr, + out_ndim: *mut c_int, + out_dims: *mut npy_intp, + out_arr: *mut *mut PyArrayObject, + context: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_ConvertClipmodeSequence<'py>( &self, py: Python<'py>, - object: *mut PyObject, - modes: *mut NPY_CLIPMODE, - n: c_int -) -> c_int

    source

    pub unsafe fn PyArray_MatrixProduct2<'py>( + object: *mut PyObject, + modes: *mut NPY_CLIPMODE, + n: c_int +) -> c_int

    source

    pub unsafe fn PyArray_MatrixProduct2<'py>( &self, py: Python<'py>, - op1: *mut PyObject, - op2: *mut PyObject, - out: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn NpyIter_IsFirstVisit<'py>( + op1: *mut PyObject, + op2: *mut PyObject, + out: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn NpyIter_IsFirstVisit<'py>( &self, py: Python<'py>, - iter: *mut NpyIter, - iop: c_int + iter: *mut NpyIter, + iop: c_int ) -> npy_bool

    source

    pub unsafe fn PyArray_SetBaseObject<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - obj: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_CreateSortedStridePerm<'py>( + arr: *mut PyArrayObject, + obj: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_CreateSortedStridePerm<'py>( &self, py: Python<'py>, - ndim: c_int, - strides: *mut npy_intp, - out_strideperm: *mut npy_stride_sort_item + ndim: c_int, + strides: *mut npy_intp, + out_strideperm: *mut npy_stride_sort_item )

    source

    pub unsafe fn PyArray_RemoveAxesInPlace<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - flags: *mut npy_bool + arr: *mut PyArrayObject, + flags: *mut npy_bool )

    source

    pub unsafe fn PyArray_DebugPrint<'py>( &self, py: Python<'py>, - obj: *mut PyArrayObject + obj: *mut PyArrayObject )

    source

    pub unsafe fn PyArray_FailUnlessWriteable<'py>( &self, py: Python<'py>, - obj: *mut PyArrayObject, - name: *const c_char -) -> c_int

    source

    pub unsafe fn PyArray_SetUpdateIfCopyBase<'py>( + obj: *mut PyArrayObject, + name: *const c_char +) -> c_int

    source

    pub unsafe fn PyArray_SetUpdateIfCopyBase<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - base: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyDataMem_NEW<'py>( + arr: *mut PyArrayObject, + base: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyDataMem_NEW<'py>( &self, py: Python<'py>, - size: usize -) -> *mut c_void

    source

    pub unsafe fn PyDataMem_FREE<'py>(&self, py: Python<'py>, ptr: *mut c_void)

    source

    pub unsafe fn PyDataMem_RENEW<'py>( + size: usize +) -> *mut c_void

    source

    pub unsafe fn PyDataMem_FREE<'py>(&self, py: Python<'py>, ptr: *mut c_void)

    source

    pub unsafe fn PyDataMem_RENEW<'py>( &self, py: Python<'py>, - ptr: *mut c_void, - size: usize -) -> *mut c_void

    source

    pub unsafe fn PyDataMem_SetEventHook<'py>( + ptr: *mut c_void, + size: usize +) -> *mut c_void

    source

    pub unsafe fn PyDataMem_SetEventHook<'py>( &self, py: Python<'py>, newhook: PyDataMem_EventHookFunc, - user_data: *mut c_void, - old_data: *mut *mut c_void + user_data: *mut c_void, + old_data: *mut *mut c_void ) -> PyDataMem_EventHookFunc

    source

    pub unsafe fn PyArray_MapIterSwapAxes<'py>( &self, py: Python<'py>, - mit: *mut PyArrayMapIterObject, - ret: *mut *mut PyArrayObject, - getmap: c_int + mit: *mut PyArrayMapIterObject, + ret: *mut *mut PyArrayObject, + getmap: c_int )

    source

    pub unsafe fn PyArray_MapIterArray<'py>( &self, py: Python<'py>, - a: *mut PyArrayObject, - index: *mut PyObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_MapIterNext<'py>( + a: *mut PyArrayObject, + index: *mut PyObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_MapIterNext<'py>( &self, py: Python<'py>, - mit: *mut PyArrayMapIterObject + mit: *mut PyArrayMapIterObject )

    source

    pub unsafe fn PyArray_Partition<'py>( &self, py: Python<'py>, - op: *mut PyArrayObject, - ktharray: *mut PyArrayObject, - axis: c_int, + op: *mut PyArrayObject, + ktharray: *mut PyArrayObject, + axis: c_int, which: NPY_SELECTKIND -) -> c_int

    source

    pub unsafe fn PyArray_ArgPartition<'py>( +) -> c_int

    source

    pub unsafe fn PyArray_ArgPartition<'py>( &self, py: Python<'py>, - op: *mut PyArrayObject, - ktharray: *mut PyArrayObject, - axis: c_int, + op: *mut PyArrayObject, + ktharray: *mut PyArrayObject, + axis: c_int, which: NPY_SELECTKIND -) -> *mut PyObject

    source

    pub unsafe fn PyArray_SelectkindConverter<'py>( +) -> *mut PyObject

    source

    pub unsafe fn PyArray_SelectkindConverter<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - selectkind: *mut NPY_SELECTKIND -) -> c_int

    source

    pub unsafe fn PyDataMem_NEW_ZEROED<'py>( + obj: *mut PyObject, + selectkind: *mut NPY_SELECTKIND +) -> c_int

    source

    pub unsafe fn PyDataMem_NEW_ZEROED<'py>( &self, py: Python<'py>, - size: usize, - elsize: usize -) -> *mut c_void

    source

    pub unsafe fn PyArray_CheckAnyScalarExact<'py>( + size: usize, + elsize: usize +) -> *mut c_void

    source

    pub unsafe fn PyArray_CheckAnyScalarExact<'py>( &self, py: Python<'py>, - obj: *mut PyObject -) -> c_int

    source

    pub unsafe fn PyArray_MapIterArrayCopyIfOverlap<'py>( + obj: *mut PyObject +) -> c_int

    source

    pub unsafe fn PyArray_MapIterArrayCopyIfOverlap<'py>( &self, py: Python<'py>, - a: *mut PyArrayObject, - index: *mut PyObject, - copy_if_overlap: c_int, - extra_op: *mut PyArrayObject -) -> *mut PyObject

    source

    pub unsafe fn PyArray_ResolveWritebackIfCopy<'py>( + a: *mut PyArrayObject, + index: *mut PyObject, + copy_if_overlap: c_int, + extra_op: *mut PyArrayObject +) -> *mut PyObject

    source

    pub unsafe fn PyArray_ResolveWritebackIfCopy<'py>( &self, py: Python<'py>, - self_: *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyArray_SetWritebackIfCopyBase<'py>( + self_: *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyArray_SetWritebackIfCopyBase<'py>( &self, py: Python<'py>, - arr: *mut PyArrayObject, - base: *mut PyArrayObject -) -> c_int

    source§

    impl PyArrayAPI

    source

    pub unsafe fn get_type_object<'py>( + arr: *mut PyArrayObject, + base: *mut PyArrayObject +) -> c_int

    source§

    impl PyArrayAPI

    source

    pub unsafe fn get_type_object<'py>( &self, py: Python<'py>, ty: NpyTypes -) -> *mut PyTypeObject

    Get a pointer of the type object assocaited with ty.

    -

    Trait Implementations§

    Auto Trait Implementations§

    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> 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).

    +) -> *mut PyTypeObject

    Get a pointer of the type object assocaited with ty.

    +

    Trait Implementations§

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ALIGNED_STRUCT.html b/numpy/npyffi/flags/constant.NPY_ALIGNED_STRUCT.html index d8be602d3..fe62b5c98 100644 --- a/numpy/npyffi/flags/constant.NPY_ALIGNED_STRUCT.html +++ b/numpy/npyffi/flags/constant.NPY_ALIGNED_STRUCT.html @@ -1,2 +1,2 @@ -NPY_ALIGNED_STRUCT in numpy::npyffi::flags - Rust +NPY_ALIGNED_STRUCT in numpy::npyffi::flags - Rust
    pub const NPY_ALIGNED_STRUCT: npy_char = 0x80;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_ALIGNED.html b/numpy/npyffi/flags/constant.NPY_ARRAY_ALIGNED.html index b3ea4980b..ce2e2d7fd 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ALIGNED.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ALIGNED.html @@ -1,2 +1,2 @@ -NPY_ARRAY_ALIGNED in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_ALIGNED: c_int = 0x0100;
    \ No newline at end of file +NPY_ARRAY_ALIGNED in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_ALIGNED: c_int = 0x0100;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED.html b/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED.html index cc00f52da..338a18eac 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED.html @@ -1,2 +1,2 @@ -NPY_ARRAY_BEHAVED in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_BEHAVED: c_int = _; // 1_280i32
    \ No newline at end of file +NPY_ARRAY_BEHAVED in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_BEHAVED: c_int = _; // 1_280i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED_NS.html b/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED_NS.html index a29621aa7..08dfe48d7 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED_NS.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED_NS.html @@ -1,2 +1,2 @@ -NPY_ARRAY_BEHAVED_NS in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_BEHAVED_NS: c_int = _; // 1_792i32
    \ No newline at end of file +NPY_ARRAY_BEHAVED_NS in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_BEHAVED_NS: c_int = _; // 1_792i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY.html index e0f9b9fba..b337f88ed 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_CARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_CARRAY: c_int = _; // 1_281i32
    \ No newline at end of file +NPY_ARRAY_CARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_CARRAY: c_int = _; // 1_281i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY_RO.html b/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY_RO.html index 63d50de42..844aea6d7 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY_RO.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY_RO.html @@ -1,2 +1,2 @@ -NPY_ARRAY_CARRAY_RO in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_CARRAY_RO: c_int = _; // 257i32
    \ No newline at end of file +NPY_ARRAY_CARRAY_RO in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_CARRAY_RO: c_int = _; // 257i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_C_CONTIGUOUS.html b/numpy/npyffi/flags/constant.NPY_ARRAY_C_CONTIGUOUS.html index bb770ca5d..4deb41487 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_C_CONTIGUOUS.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_C_CONTIGUOUS.html @@ -1,2 +1,2 @@ -NPY_ARRAY_C_CONTIGUOUS in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_C_CONTIGUOUS: c_int = 0x0001;
    \ No newline at end of file +NPY_ARRAY_C_CONTIGUOUS in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_C_CONTIGUOUS: c_int = 0x0001;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_DEFAULT.html b/numpy/npyffi/flags/constant.NPY_ARRAY_DEFAULT.html index 0ea932b4d..8e8a29d18 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_DEFAULT.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_DEFAULT.html @@ -1,2 +1,2 @@ -NPY_ARRAY_DEFAULT in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_DEFAULT: c_int = NPY_ARRAY_CARRAY; // 1_281i32
    \ No newline at end of file +NPY_ARRAY_DEFAULT in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_DEFAULT: c_int = NPY_ARRAY_CARRAY; // 1_281i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_ELEMENTSTRIDES.html b/numpy/npyffi/flags/constant.NPY_ARRAY_ELEMENTSTRIDES.html index bf8066a27..f12c0682e 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ELEMENTSTRIDES.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ELEMENTSTRIDES.html @@ -1,2 +1,2 @@ -NPY_ARRAY_ELEMENTSTRIDES in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_ELEMENTSTRIDES: c_int = 0x0080;
    \ No newline at end of file +NPY_ARRAY_ELEMENTSTRIDES in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_ELEMENTSTRIDES: c_int = 0x0080;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_ENSUREARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_ENSUREARRAY.html index ea5060083..ed85df9ec 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ENSUREARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ENSUREARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_ENSUREARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_ENSUREARRAY: c_int = 0x0040;
    \ No newline at end of file +NPY_ARRAY_ENSUREARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_ENSUREARRAY: c_int = 0x0040;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_ENSURECOPY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_ENSURECOPY.html index 1b965c6a6..7850d43c0 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ENSURECOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ENSURECOPY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_ENSURECOPY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_ENSURECOPY: c_int = 0x0020;
    \ No newline at end of file +NPY_ARRAY_ENSURECOPY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_ENSURECOPY: c_int = 0x0020;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY.html index 9572f0888..21d3dedb7 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_FARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_FARRAY: c_int = _; // 1_282i32
    \ No newline at end of file +NPY_ARRAY_FARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_FARRAY: c_int = _; // 1_282i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY_RO.html b/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY_RO.html index ce8a84909..1da4ea45b 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY_RO.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY_RO.html @@ -1,2 +1,2 @@ -NPY_ARRAY_FARRAY_RO in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_FARRAY_RO: c_int = _; // 258i32
    \ No newline at end of file +NPY_ARRAY_FARRAY_RO in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_FARRAY_RO: c_int = _; // 258i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_FORCECAST.html b/numpy/npyffi/flags/constant.NPY_ARRAY_FORCECAST.html index 76fdeb5eb..5a6bc55e6 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_FORCECAST.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_FORCECAST.html @@ -1,2 +1,2 @@ -NPY_ARRAY_FORCECAST in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_FORCECAST: c_int = 0x0010;
    \ No newline at end of file +NPY_ARRAY_FORCECAST in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_FORCECAST: c_int = 0x0010;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_F_CONTIGUOUS.html b/numpy/npyffi/flags/constant.NPY_ARRAY_F_CONTIGUOUS.html index 3f7a4765d..9b0160526 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_F_CONTIGUOUS.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_F_CONTIGUOUS.html @@ -1,2 +1,2 @@ -NPY_ARRAY_F_CONTIGUOUS in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_F_CONTIGUOUS: c_int = 0x0002;
    \ No newline at end of file +NPY_ARRAY_F_CONTIGUOUS in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_F_CONTIGUOUS: c_int = 0x0002;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY.html index 6b9eceaf1..68be0ce85 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_INOUT_ARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_INOUT_ARRAY: c_int = _; // 5_377i32
    \ No newline at end of file +NPY_ARRAY_INOUT_ARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_INOUT_ARRAY: c_int = _; // 5_377i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY2.html b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY2.html index ec9f4d940..c613d04d1 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY2.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY2.html @@ -1,2 +1,2 @@ -NPY_ARRAY_INOUT_ARRAY2 in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_INOUT_ARRAY2: c_int = _; // 9_473i32
    \ No newline at end of file +NPY_ARRAY_INOUT_ARRAY2 in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_INOUT_ARRAY2: c_int = _; // 9_473i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY.html index 49d8b66bf..05b76ee33 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_INOUT_FARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_INOUT_FARRAY: c_int = _; // 5_378i32
    \ No newline at end of file +NPY_ARRAY_INOUT_FARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_INOUT_FARRAY: c_int = _; // 5_378i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY2.html b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY2.html index fa9e731ff..e0b41f486 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY2.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY2.html @@ -1,2 +1,2 @@ -NPY_ARRAY_INOUT_FARRAY2 in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_INOUT_FARRAY2: c_int = _; // 9_474i32
    \ No newline at end of file +NPY_ARRAY_INOUT_FARRAY2 in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_INOUT_FARRAY2: c_int = _; // 9_474i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_IN_ARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_IN_ARRAY.html index 89bb09154..3e63886ca 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_IN_ARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_IN_ARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_IN_ARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_IN_ARRAY: c_int = NPY_ARRAY_CARRAY_RO; // 257i32
    \ No newline at end of file +NPY_ARRAY_IN_ARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_IN_ARRAY: c_int = NPY_ARRAY_CARRAY_RO; // 257i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_IN_FARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_IN_FARRAY.html index 20676775e..db0b5813d 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_IN_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_IN_FARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_IN_FARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_IN_FARRAY: c_int = NPY_ARRAY_FARRAY_RO; // 258i32
    \ No newline at end of file +NPY_ARRAY_IN_FARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_IN_FARRAY: c_int = NPY_ARRAY_FARRAY_RO; // 258i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_NOTSWAPPED.html b/numpy/npyffi/flags/constant.NPY_ARRAY_NOTSWAPPED.html index ec3035c8b..0b50122bb 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_NOTSWAPPED.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_NOTSWAPPED.html @@ -1,2 +1,2 @@ -NPY_ARRAY_NOTSWAPPED in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_NOTSWAPPED: c_int = 0x0200;
    \ No newline at end of file +NPY_ARRAY_NOTSWAPPED in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_NOTSWAPPED: c_int = 0x0200;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_ARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_ARRAY.html index dbe019d7c..5c5a89a37 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_ARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_ARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_OUT_ARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_OUT_ARRAY: c_int = NPY_ARRAY_CARRAY; // 1_281i32
    \ No newline at end of file +NPY_ARRAY_OUT_ARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_OUT_ARRAY: c_int = NPY_ARRAY_CARRAY; // 1_281i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_FARRAY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_FARRAY.html index b243fc8f4..c20028019 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_FARRAY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_OUT_FARRAY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_OUT_FARRAY: c_int = NPY_ARRAY_FARRAY; // 1_282i32
    \ No newline at end of file +NPY_ARRAY_OUT_FARRAY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_OUT_FARRAY: c_int = NPY_ARRAY_FARRAY; // 1_282i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_OWNDATA.html b/numpy/npyffi/flags/constant.NPY_ARRAY_OWNDATA.html index 40f86713c..4aa6295a2 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_OWNDATA.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_OWNDATA.html @@ -1,2 +1,2 @@ -NPY_ARRAY_OWNDATA in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_OWNDATA: c_int = 0x0004;
    \ No newline at end of file +NPY_ARRAY_OWNDATA in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_OWNDATA: c_int = 0x0004;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATEIFCOPY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATEIFCOPY.html index 5770051af..cd125481a 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATEIFCOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATEIFCOPY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_UPDATEIFCOPY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_UPDATEIFCOPY: c_int = 0x1000;
    \ No newline at end of file +NPY_ARRAY_UPDATEIFCOPY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_UPDATEIFCOPY: c_int = 0x1000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATE_ALL.html b/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATE_ALL.html index ab46fc6be..0bd606106 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATE_ALL.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATE_ALL.html @@ -1,2 +1,2 @@ -NPY_ARRAY_UPDATE_ALL in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_UPDATE_ALL: c_int = _; // 3i32
    \ No newline at end of file +NPY_ARRAY_UPDATE_ALL in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_UPDATE_ALL: c_int = _; // 3i32
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEABLE.html b/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEABLE.html index 56c3fcb78..57c9494f4 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEABLE.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEABLE.html @@ -1,2 +1,2 @@ -NPY_ARRAY_WRITEABLE in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_WRITEABLE: c_int = 0x0400;
    \ No newline at end of file +NPY_ARRAY_WRITEABLE in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_WRITEABLE: c_int = 0x0400;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEBACKIFCOPY.html b/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEBACKIFCOPY.html index 167f8bf3f..0032b74a7 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEBACKIFCOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEBACKIFCOPY.html @@ -1,2 +1,2 @@ -NPY_ARRAY_WRITEBACKIFCOPY in numpy::npyffi::flags - Rust -
    pub const NPY_ARRAY_WRITEBACKIFCOPY: c_int = 0x2000;
    \ No newline at end of file +NPY_ARRAY_WRITEBACKIFCOPY in numpy::npyffi::flags - Rust +
    pub const NPY_ARRAY_WRITEBACKIFCOPY: c_int = 0x2000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_FROM_FIELDS.html b/numpy/npyffi/flags/constant.NPY_FROM_FIELDS.html index 42f56645f..a8b1a27fd 100644 --- a/numpy/npyffi/flags/constant.NPY_FROM_FIELDS.html +++ b/numpy/npyffi/flags/constant.NPY_FROM_FIELDS.html @@ -1,2 +1,2 @@ -NPY_FROM_FIELDS in numpy::npyffi::flags - Rust +NPY_FROM_FIELDS in numpy::npyffi::flags - Rust
    pub const NPY_FROM_FIELDS: npy_char = _; // 27i8
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITEM_HASOBJECT.html b/numpy/npyffi/flags/constant.NPY_ITEM_HASOBJECT.html index c8403e1b0..d3fe14f21 100644 --- a/numpy/npyffi/flags/constant.NPY_ITEM_HASOBJECT.html +++ b/numpy/npyffi/flags/constant.NPY_ITEM_HASOBJECT.html @@ -1,2 +1,2 @@ -NPY_ITEM_HASOBJECT in numpy::npyffi::flags - Rust +NPY_ITEM_HASOBJECT in numpy::npyffi::flags - Rust
    pub const NPY_ITEM_HASOBJECT: npy_char = 0x01;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITEM_IS_POINTER.html b/numpy/npyffi/flags/constant.NPY_ITEM_IS_POINTER.html index 4919220d4..f6b2af2f4 100644 --- a/numpy/npyffi/flags/constant.NPY_ITEM_IS_POINTER.html +++ b/numpy/npyffi/flags/constant.NPY_ITEM_IS_POINTER.html @@ -1,2 +1,2 @@ -NPY_ITEM_IS_POINTER in numpy::npyffi::flags - Rust +NPY_ITEM_IS_POINTER in numpy::npyffi::flags - Rust
    pub const NPY_ITEM_IS_POINTER: npy_char = 0x04;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITEM_REFCOUNT.html b/numpy/npyffi/flags/constant.NPY_ITEM_REFCOUNT.html index d8cae1b17..44d150f61 100644 --- a/numpy/npyffi/flags/constant.NPY_ITEM_REFCOUNT.html +++ b/numpy/npyffi/flags/constant.NPY_ITEM_REFCOUNT.html @@ -1,2 +1,2 @@ -NPY_ITEM_REFCOUNT in numpy::npyffi::flags - Rust +NPY_ITEM_REFCOUNT in numpy::npyffi::flags - Rust
    pub const NPY_ITEM_REFCOUNT: npy_char = 0x01;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_ALIGNED.html b/numpy/npyffi/flags/constant.NPY_ITER_ALIGNED.html index 8cc9b9295..c46fe515b 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ALIGNED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ALIGNED.html @@ -1,2 +1,2 @@ -NPY_ITER_ALIGNED in numpy::npyffi::flags - Rust +NPY_ITER_ALIGNED in numpy::npyffi::flags - Rust
    pub const NPY_ITER_ALIGNED: npy_uint32 = 0x00100000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_ALLOCATE.html b/numpy/npyffi/flags/constant.NPY_ITER_ALLOCATE.html index 37438ce4d..bd62f6a94 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ALLOCATE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ALLOCATE.html @@ -1,2 +1,2 @@ -NPY_ITER_ALLOCATE in numpy::npyffi::flags - Rust +NPY_ITER_ALLOCATE in numpy::npyffi::flags - Rust
    pub const NPY_ITER_ALLOCATE: npy_uint32 = 0x01000000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_ARRAYMASK.html b/numpy/npyffi/flags/constant.NPY_ITER_ARRAYMASK.html index 109a8b87c..e32e59a06 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ARRAYMASK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ARRAYMASK.html @@ -1,2 +1,2 @@ -NPY_ITER_ARRAYMASK in numpy::npyffi::flags - Rust +NPY_ITER_ARRAYMASK in numpy::npyffi::flags - Rust
    pub const NPY_ITER_ARRAYMASK: npy_uint32 = 0x20000000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_BUFFERED.html b/numpy/npyffi/flags/constant.NPY_ITER_BUFFERED.html index 7264474be..ba88cd8bd 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_BUFFERED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_BUFFERED.html @@ -1,2 +1,2 @@ -NPY_ITER_BUFFERED in numpy::npyffi::flags - Rust +NPY_ITER_BUFFERED in numpy::npyffi::flags - Rust
    pub const NPY_ITER_BUFFERED: npy_uint32 = 0x00000200;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_COMMON_DTYPE.html b/numpy/npyffi/flags/constant.NPY_ITER_COMMON_DTYPE.html index dd2559331..7a3c2ffe1 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_COMMON_DTYPE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_COMMON_DTYPE.html @@ -1,2 +1,2 @@ -NPY_ITER_COMMON_DTYPE in numpy::npyffi::flags - Rust +NPY_ITER_COMMON_DTYPE in numpy::npyffi::flags - Rust
    pub const NPY_ITER_COMMON_DTYPE: npy_uint32 = 0x00000010;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_CONTIG.html b/numpy/npyffi/flags/constant.NPY_ITER_CONTIG.html index 5a542797c..85de3d68c 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_CONTIG.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_CONTIG.html @@ -1,2 +1,2 @@ -NPY_ITER_CONTIG in numpy::npyffi::flags - Rust +NPY_ITER_CONTIG in numpy::npyffi::flags - Rust
    pub const NPY_ITER_CONTIG: npy_uint32 = 0x00200000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_COPY.html b/numpy/npyffi/flags/constant.NPY_ITER_COPY.html index ad52b782c..edfbd66a4 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_COPY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_COPY.html @@ -1,2 +1,2 @@ -NPY_ITER_COPY in numpy::npyffi::flags - Rust +NPY_ITER_COPY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_COPY

    source ·
    pub const NPY_ITER_COPY: npy_uint32 = 0x00400000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_COPY_IF_OVERLAP.html b/numpy/npyffi/flags/constant.NPY_ITER_COPY_IF_OVERLAP.html index 7f64a10c7..920af112f 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_COPY_IF_OVERLAP.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_COPY_IF_OVERLAP.html @@ -1,2 +1,2 @@ -NPY_ITER_COPY_IF_OVERLAP in numpy::npyffi::flags - Rust +NPY_ITER_COPY_IF_OVERLAP in numpy::npyffi::flags - Rust
    pub const NPY_ITER_COPY_IF_OVERLAP: npy_uint32 = 0x00002000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_C_INDEX.html b/numpy/npyffi/flags/constant.NPY_ITER_C_INDEX.html index 5a4ff559f..c8c834f58 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_C_INDEX.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_C_INDEX.html @@ -1,2 +1,2 @@ -NPY_ITER_C_INDEX in numpy::npyffi::flags - Rust +NPY_ITER_C_INDEX in numpy::npyffi::flags - Rust
    pub const NPY_ITER_C_INDEX: npy_uint32 = 0x00000001;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_DELAY_BUFALLOC.html b/numpy/npyffi/flags/constant.NPY_ITER_DELAY_BUFALLOC.html index aee1a2df3..c3cc43de9 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_DELAY_BUFALLOC.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_DELAY_BUFALLOC.html @@ -1,2 +1,2 @@ -NPY_ITER_DELAY_BUFALLOC in numpy::npyffi::flags - Rust +NPY_ITER_DELAY_BUFALLOC in numpy::npyffi::flags - Rust
    pub const NPY_ITER_DELAY_BUFALLOC: npy_uint32 = 0x00000800;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_DONT_NEGATE_STRIDES.html b/numpy/npyffi/flags/constant.NPY_ITER_DONT_NEGATE_STRIDES.html index e9c9a1b18..e150e9971 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_DONT_NEGATE_STRIDES.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_DONT_NEGATE_STRIDES.html @@ -1,2 +1,2 @@ -NPY_ITER_DONT_NEGATE_STRIDES in numpy::npyffi::flags - Rust +NPY_ITER_DONT_NEGATE_STRIDES in numpy::npyffi::flags - Rust
    pub const NPY_ITER_DONT_NEGATE_STRIDES: npy_uint32 = 0x00001000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_EXTERNAL_LOOP.html b/numpy/npyffi/flags/constant.NPY_ITER_EXTERNAL_LOOP.html index 0a20a4912..14cb44686 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_EXTERNAL_LOOP.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_EXTERNAL_LOOP.html @@ -1,2 +1,2 @@ -NPY_ITER_EXTERNAL_LOOP in numpy::npyffi::flags - Rust +NPY_ITER_EXTERNAL_LOOP in numpy::npyffi::flags - Rust
    pub const NPY_ITER_EXTERNAL_LOOP: npy_uint32 = 0x00000008;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_F_INDEX.html b/numpy/npyffi/flags/constant.NPY_ITER_F_INDEX.html index 184190fc3..2de0a8279 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_F_INDEX.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_F_INDEX.html @@ -1,2 +1,2 @@ -NPY_ITER_F_INDEX in numpy::npyffi::flags - Rust +NPY_ITER_F_INDEX in numpy::npyffi::flags - Rust
    pub const NPY_ITER_F_INDEX: npy_uint32 = 0x00000002;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_GLOBAL_FLAGS.html b/numpy/npyffi/flags/constant.NPY_ITER_GLOBAL_FLAGS.html index 13807dd5f..fffcc02b9 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_GLOBAL_FLAGS.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_GLOBAL_FLAGS.html @@ -1,2 +1,2 @@ -NPY_ITER_GLOBAL_FLAGS in numpy::npyffi::flags - Rust +NPY_ITER_GLOBAL_FLAGS in numpy::npyffi::flags - Rust
    pub const NPY_ITER_GLOBAL_FLAGS: npy_uint32 = 0x0000ffff;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_GROWINNER.html b/numpy/npyffi/flags/constant.NPY_ITER_GROWINNER.html index 69625c597..ef5f4b4d1 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_GROWINNER.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_GROWINNER.html @@ -1,2 +1,2 @@ -NPY_ITER_GROWINNER in numpy::npyffi::flags - Rust +NPY_ITER_GROWINNER in numpy::npyffi::flags - Rust
    pub const NPY_ITER_GROWINNER: npy_uint32 = 0x00000400;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_MULTI_INDEX.html b/numpy/npyffi/flags/constant.NPY_ITER_MULTI_INDEX.html index 29c0d8949..fb5743878 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_MULTI_INDEX.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_MULTI_INDEX.html @@ -1,2 +1,2 @@ -NPY_ITER_MULTI_INDEX in numpy::npyffi::flags - Rust +NPY_ITER_MULTI_INDEX in numpy::npyffi::flags - Rust
    pub const NPY_ITER_MULTI_INDEX: npy_uint32 = 0x00000004;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_NBO.html b/numpy/npyffi/flags/constant.NPY_ITER_NBO.html index b64a5dac3..9e9c07169 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_NBO.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_NBO.html @@ -1,2 +1,2 @@ -NPY_ITER_NBO in numpy::npyffi::flags - Rust +NPY_ITER_NBO in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_NBO

    source ·
    pub const NPY_ITER_NBO: npy_uint32 = 0x00080000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_NO_BROADCAST.html b/numpy/npyffi/flags/constant.NPY_ITER_NO_BROADCAST.html index 6eeeafba4..0c0933fd5 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_NO_BROADCAST.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_NO_BROADCAST.html @@ -1,2 +1,2 @@ -NPY_ITER_NO_BROADCAST in numpy::npyffi::flags - Rust +NPY_ITER_NO_BROADCAST in numpy::npyffi::flags - Rust
    pub const NPY_ITER_NO_BROADCAST: npy_uint32 = 0x08000000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_NO_SUBTYPE.html b/numpy/npyffi/flags/constant.NPY_ITER_NO_SUBTYPE.html index 4fc90b091..dcdcdfc38 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_NO_SUBTYPE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_NO_SUBTYPE.html @@ -1,2 +1,2 @@ -NPY_ITER_NO_SUBTYPE in numpy::npyffi::flags - Rust +NPY_ITER_NO_SUBTYPE in numpy::npyffi::flags - Rust
    pub const NPY_ITER_NO_SUBTYPE: npy_uint32 = 0x02000000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE.html b/numpy/npyffi/flags/constant.NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE.html index 8beb17689..ed926fbfe 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE.html @@ -1,2 +1,2 @@ -NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE in numpy::npyffi::flags - Rust +NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE in numpy::npyffi::flags - Rust
    pub const NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE: npy_uint32 = 0x40000000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_PER_OP_FLAGS.html b/numpy/npyffi/flags/constant.NPY_ITER_PER_OP_FLAGS.html index 3e8afdfe3..2d53b5d70 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_PER_OP_FLAGS.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_PER_OP_FLAGS.html @@ -1,2 +1,2 @@ -NPY_ITER_PER_OP_FLAGS in numpy::npyffi::flags - Rust +NPY_ITER_PER_OP_FLAGS in numpy::npyffi::flags - Rust
    pub const NPY_ITER_PER_OP_FLAGS: npy_uint32 = 0xffff0000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_RANGED.html b/numpy/npyffi/flags/constant.NPY_ITER_RANGED.html index dd9e87ad8..64df2e691 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_RANGED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_RANGED.html @@ -1,2 +1,2 @@ -NPY_ITER_RANGED in numpy::npyffi::flags - Rust +NPY_ITER_RANGED in numpy::npyffi::flags - Rust
    pub const NPY_ITER_RANGED: npy_uint32 = 0x00000100;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_READONLY.html b/numpy/npyffi/flags/constant.NPY_ITER_READONLY.html index f9ae241eb..4acbf04ac 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_READONLY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_READONLY.html @@ -1,2 +1,2 @@ -NPY_ITER_READONLY in numpy::npyffi::flags - Rust +NPY_ITER_READONLY in numpy::npyffi::flags - Rust
    pub const NPY_ITER_READONLY: npy_uint32 = 0x00020000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_READWRITE.html b/numpy/npyffi/flags/constant.NPY_ITER_READWRITE.html index e3c380b0a..ff5c53e52 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_READWRITE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_READWRITE.html @@ -1,2 +1,2 @@ -NPY_ITER_READWRITE in numpy::npyffi::flags - Rust +NPY_ITER_READWRITE in numpy::npyffi::flags - Rust
    pub const NPY_ITER_READWRITE: npy_uint32 = 0x00010000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_REDUCE_OK.html b/numpy/npyffi/flags/constant.NPY_ITER_REDUCE_OK.html index 3e36b17c6..4e86f494f 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_REDUCE_OK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_REDUCE_OK.html @@ -1,2 +1,2 @@ -NPY_ITER_REDUCE_OK in numpy::npyffi::flags - Rust +NPY_ITER_REDUCE_OK in numpy::npyffi::flags - Rust
    pub const NPY_ITER_REDUCE_OK: npy_uint32 = 0x00000080;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_REFS_OK.html b/numpy/npyffi/flags/constant.NPY_ITER_REFS_OK.html index 74a259770..9f5e5f96b 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_REFS_OK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_REFS_OK.html @@ -1,2 +1,2 @@ -NPY_ITER_REFS_OK in numpy::npyffi::flags - Rust +NPY_ITER_REFS_OK in numpy::npyffi::flags - Rust
    pub const NPY_ITER_REFS_OK: npy_uint32 = 0x00000020;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_UPDATEIFCOPY.html b/numpy/npyffi/flags/constant.NPY_ITER_UPDATEIFCOPY.html index aa4d7123f..ac9818d24 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_UPDATEIFCOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_UPDATEIFCOPY.html @@ -1,2 +1,2 @@ -NPY_ITER_UPDATEIFCOPY in numpy::npyffi::flags - Rust +NPY_ITER_UPDATEIFCOPY in numpy::npyffi::flags - Rust
    pub const NPY_ITER_UPDATEIFCOPY: npy_uint32 = 0x00800000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_VIRTUAL.html b/numpy/npyffi/flags/constant.NPY_ITER_VIRTUAL.html index f02945eaa..72073277e 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_VIRTUAL.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_VIRTUAL.html @@ -1,2 +1,2 @@ -NPY_ITER_VIRTUAL in numpy::npyffi::flags - Rust +NPY_ITER_VIRTUAL in numpy::npyffi::flags - Rust
    pub const NPY_ITER_VIRTUAL: npy_uint32 = 0x04000000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_WRITEMASKED.html b/numpy/npyffi/flags/constant.NPY_ITER_WRITEMASKED.html index 7fc836b4e..7d126865c 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_WRITEMASKED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_WRITEMASKED.html @@ -1,2 +1,2 @@ -NPY_ITER_WRITEMASKED in numpy::npyffi::flags - Rust +NPY_ITER_WRITEMASKED in numpy::npyffi::flags - Rust
    pub const NPY_ITER_WRITEMASKED: npy_uint32 = 0x10000000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_WRITEONLY.html b/numpy/npyffi/flags/constant.NPY_ITER_WRITEONLY.html index ce60c84a8..2408b3546 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_WRITEONLY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_WRITEONLY.html @@ -1,2 +1,2 @@ -NPY_ITER_WRITEONLY in numpy::npyffi::flags - Rust +NPY_ITER_WRITEONLY in numpy::npyffi::flags - Rust
    pub const NPY_ITER_WRITEONLY: npy_uint32 = 0x00040000;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_ITER_ZEROSIZE_OK.html b/numpy/npyffi/flags/constant.NPY_ITER_ZEROSIZE_OK.html index aff743db2..d962fd67e 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ZEROSIZE_OK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ZEROSIZE_OK.html @@ -1,2 +1,2 @@ -NPY_ITER_ZEROSIZE_OK in numpy::npyffi::flags - Rust +NPY_ITER_ZEROSIZE_OK in numpy::npyffi::flags - Rust
    pub const NPY_ITER_ZEROSIZE_OK: npy_uint32 = 0x00000040;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_LIST_PICKLE.html b/numpy/npyffi/flags/constant.NPY_LIST_PICKLE.html index 3f10d63a0..761ea74ec 100644 --- a/numpy/npyffi/flags/constant.NPY_LIST_PICKLE.html +++ b/numpy/npyffi/flags/constant.NPY_LIST_PICKLE.html @@ -1,2 +1,2 @@ -NPY_LIST_PICKLE in numpy::npyffi::flags - Rust +NPY_LIST_PICKLE in numpy::npyffi::flags - Rust
    pub const NPY_LIST_PICKLE: npy_char = 0x02;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_NEEDS_INIT.html b/numpy/npyffi/flags/constant.NPY_NEEDS_INIT.html index b19d3907e..46654350d 100644 --- a/numpy/npyffi/flags/constant.NPY_NEEDS_INIT.html +++ b/numpy/npyffi/flags/constant.NPY_NEEDS_INIT.html @@ -1,2 +1,2 @@ -NPY_NEEDS_INIT in numpy::npyffi::flags - Rust +NPY_NEEDS_INIT in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_NEEDS_INIT

    source ·
    pub const NPY_NEEDS_INIT: npy_char = 0x08;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_NEEDS_PYAPI.html b/numpy/npyffi/flags/constant.NPY_NEEDS_PYAPI.html index 470d1bccb..cb7884533 100644 --- a/numpy/npyffi/flags/constant.NPY_NEEDS_PYAPI.html +++ b/numpy/npyffi/flags/constant.NPY_NEEDS_PYAPI.html @@ -1,2 +1,2 @@ -NPY_NEEDS_PYAPI in numpy::npyffi::flags - Rust +NPY_NEEDS_PYAPI in numpy::npyffi::flags - Rust
    pub const NPY_NEEDS_PYAPI: npy_char = 0x10;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_OBJECT_DTYPE_FLAGS.html b/numpy/npyffi/flags/constant.NPY_OBJECT_DTYPE_FLAGS.html index 297a786c2..6f2296b00 100644 --- a/numpy/npyffi/flags/constant.NPY_OBJECT_DTYPE_FLAGS.html +++ b/numpy/npyffi/flags/constant.NPY_OBJECT_DTYPE_FLAGS.html @@ -1,2 +1,2 @@ -NPY_OBJECT_DTYPE_FLAGS in numpy::npyffi::flags - Rust +NPY_OBJECT_DTYPE_FLAGS in numpy::npyffi::flags - Rust
    pub const NPY_OBJECT_DTYPE_FLAGS: npy_char = _; // 63i8
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_USE_GETITEM.html b/numpy/npyffi/flags/constant.NPY_USE_GETITEM.html index 580a6b5fb..ebf6d9f92 100644 --- a/numpy/npyffi/flags/constant.NPY_USE_GETITEM.html +++ b/numpy/npyffi/flags/constant.NPY_USE_GETITEM.html @@ -1,2 +1,2 @@ -NPY_USE_GETITEM in numpy::npyffi::flags - Rust +NPY_USE_GETITEM in numpy::npyffi::flags - Rust
    pub const NPY_USE_GETITEM: npy_char = 0x20;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/constant.NPY_USE_SETITEM.html b/numpy/npyffi/flags/constant.NPY_USE_SETITEM.html index 1c00c2ca5..48f40dbbd 100644 --- a/numpy/npyffi/flags/constant.NPY_USE_SETITEM.html +++ b/numpy/npyffi/flags/constant.NPY_USE_SETITEM.html @@ -1,2 +1,2 @@ -NPY_USE_SETITEM in numpy::npyffi::flags - Rust +NPY_USE_SETITEM in numpy::npyffi::flags - Rust
    pub const NPY_USE_SETITEM: npy_char = 0x40;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/index.html b/numpy/npyffi/flags/index.html index 68b168a29..ec025c929 100644 --- a/numpy/npyffi/flags/index.html +++ b/numpy/npyffi/flags/index.html @@ -1,2 +1,2 @@ -numpy::npyffi::flags - Rust -
    \ No newline at end of file +numpy::npyffi::flags - Rust +
    \ No newline at end of file diff --git a/numpy/npyffi/index.html b/numpy/npyffi/index.html index 378aa5fca..3246f7ddc 100644 --- a/numpy/npyffi/index.html +++ b/numpy/npyffi/index.html @@ -1,4 +1,4 @@ -numpy::npyffi - Rust +numpy::npyffi - Rust

    Module numpy::npyffi

    source ·
    Expand description

    Low-Level bindings for NumPy C API.

    https://numpy.org/doc/stable/reference/c-api

    -

    Re-exports

    Modules

    \ No newline at end of file +

    Re-exports§

    Modules§

    \ No newline at end of file diff --git a/numpy/npyffi/objects/index.html b/numpy/npyffi/objects/index.html index 30919c047..5372b8d16 100644 --- a/numpy/npyffi/objects/index.html +++ b/numpy/npyffi/objects/index.html @@ -1,4 +1,4 @@ -numpy::npyffi::objects - Rust +numpy::npyffi::objects - Rust
    \ No newline at end of file +

    Structs§

    Type Aliases§

    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.NpyAuxData.html b/numpy/npyffi/objects/struct.NpyAuxData.html index 4bdaf059e..eb6f510e4 100644 --- a/numpy/npyffi/objects/struct.NpyAuxData.html +++ b/numpy/npyffi/objects/struct.NpyAuxData.html @@ -1,19 +1,19 @@ -NpyAuxData in numpy::npyffi::objects - Rust +NpyAuxData in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct NpyAuxData { pub free: NpyAuxData_FreeFunc, pub clone: NpyAuxData_CloneFunc, - pub reserved: [*mut c_void; 2], -}

    Fields§

    §free: NpyAuxData_FreeFunc§clone: NpyAuxData_CloneFunc§reserved: [*mut c_void; 2]

    Trait Implementations§

    source§

    impl Clone for NpyAuxData

    source§

    fn clone(&self) -> NpyAuxData

    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 Copy for NpyAuxData

    Auto Trait Implementations§

    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> 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).

    + pub reserved: [*mut c_void; 2], +}

    Fields§

    §free: NpyAuxData_FreeFunc§clone: NpyAuxData_CloneFunc§reserved: [*mut c_void; 2]

    Trait Implementations§

    source§

    impl Clone for NpyAuxData

    source§

    fn clone(&self) -> NpyAuxData

    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 Copy for NpyAuxData

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.NpyIter.html b/numpy/npyffi/objects/struct.NpyIter.html index d90298abe..862d39ee5 100644 --- a/numpy/npyffi/objects/struct.NpyIter.html +++ b/numpy/npyffi/objects/struct.NpyIter.html @@ -1,16 +1,16 @@ -NpyIter in numpy::npyffi::objects - Rust -

    Struct numpy::npyffi::objects::NpyIter

    source ·
    #[repr(C)]
    pub struct NpyIter(/* private fields */);

    Trait Implementations§

    source§

    impl Clone for NpyIter

    source§

    fn clone(&self) -> NpyIter

    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 Debug for NpyIter

    source§

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

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

    impl Copy for NpyIter

    Auto Trait Implementations§

    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> 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).

    +NpyIter in numpy::npyffi::objects - Rust +

    Struct numpy::npyffi::objects::NpyIter

    source ·
    #[repr(C)]
    pub struct NpyIter(/* private fields */);

    Trait Implementations§

    source§

    impl Clone for NpyIter

    source§

    fn clone(&self) -> NpyIter

    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 Debug for NpyIter

    source§

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

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

    impl Copy for NpyIter

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayFlagsObject.html b/numpy/npyffi/objects/struct.PyArrayFlagsObject.html index cc880b656..0dc2ce723 100644 --- a/numpy/npyffi/objects/struct.PyArrayFlagsObject.html +++ b/numpy/npyffi/objects/struct.PyArrayFlagsObject.html @@ -1,19 +1,19 @@ -PyArrayFlagsObject in numpy::npyffi::objects - Rust +PyArrayFlagsObject in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArrayFlagsObject { pub ob_base: PyObject, - pub arr: *mut PyObject, - pub flags: c_int, -}

    Fields§

    §ob_base: PyObject§arr: *mut PyObject§flags: c_int

    Trait Implementations§

    source§

    impl Clone for PyArrayFlagsObject

    source§

    fn clone(&self) -> PyArrayFlagsObject

    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 Copy for PyArrayFlagsObject

    Auto Trait Implementations§

    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> 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).

    + pub arr: *mut PyObject, + pub flags: c_int, +}

    Fields§

    §ob_base: PyObject§arr: *mut PyObject§flags: c_int

    Trait Implementations§

    source§

    impl Clone for PyArrayFlagsObject

    source§

    fn clone(&self) -> PyArrayFlagsObject

    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 Copy for PyArrayFlagsObject

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayInterface.html b/numpy/npyffi/objects/struct.PyArrayInterface.html index 8b2bc0871..ea5e91dd2 100644 --- a/numpy/npyffi/objects/struct.PyArrayInterface.html +++ b/numpy/npyffi/objects/struct.PyArrayInterface.html @@ -1,25 +1,25 @@ -PyArrayInterface in numpy::npyffi::objects - Rust +PyArrayInterface in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArrayInterface { - pub two: c_int, - pub nd: c_int, - pub typekind: c_char, - pub itemsize: c_int, - pub flags: c_int, - pub shape: *mut npy_intp, - pub strides: *mut npy_intp, - pub data: *mut c_void, - pub descr: *mut PyObject, -}

    Fields§

    §two: c_int§nd: c_int§typekind: c_char§itemsize: c_int§flags: c_int§shape: *mut npy_intp§strides: *mut npy_intp§data: *mut c_void§descr: *mut PyObject

    Trait Implementations§

    source§

    impl Clone for PyArrayInterface

    source§

    fn clone(&self) -> PyArrayInterface

    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 Copy for PyArrayInterface

    Auto Trait Implementations§

    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> 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).

    + pub two: c_int, + pub nd: c_int, + pub typekind: c_char, + pub itemsize: c_int, + pub flags: c_int, + pub shape: *mut npy_intp, + pub strides: *mut npy_intp, + pub data: *mut c_void, + pub descr: *mut PyObject, +}

    Fields§

    §two: c_int§nd: c_int§typekind: c_char§itemsize: c_int§flags: c_int§shape: *mut npy_intp§strides: *mut npy_intp§data: *mut c_void§descr: *mut PyObject

    Trait Implementations§

    source§

    impl Clone for PyArrayInterface

    source§

    fn clone(&self) -> PyArrayInterface

    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 Copy for PyArrayInterface

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayIterObject.html b/numpy/npyffi/objects/struct.PyArrayIterObject.html index 055ecbfe6..595cb9865 100644 --- a/numpy/npyffi/objects/struct.PyArrayIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayIterObject.html @@ -1,32 +1,32 @@ -PyArrayIterObject in numpy::npyffi::objects - Rust +PyArrayIterObject in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArrayIterObject {
    Show 16 fields pub ob_base: PyObject, - pub nd_m1: c_int, + pub nd_m1: c_int, pub index: npy_intp, pub size: npy_intp, - pub coordinates: [npy_intp; 32], - pub dims_m1: [npy_intp; 32], - pub strides: [npy_intp; 32], - pub backstrides: [npy_intp; 32], - pub factors: [npy_intp; 32], - pub ao: *mut PyArrayObject, - pub dataptr: *mut c_char, + pub coordinates: [npy_intp; 32], + pub dims_m1: [npy_intp; 32], + pub strides: [npy_intp; 32], + pub backstrides: [npy_intp; 32], + pub factors: [npy_intp; 32], + pub ao: *mut PyArrayObject, + pub dataptr: *mut c_char, pub contiguous: npy_bool, - pub bounds: [[npy_intp; 2]; 32], - pub limits: [[npy_intp; 2]; 32], - pub limits_sizes: [npy_intp; 32], + pub bounds: [[npy_intp; 2]; 32], + pub limits: [[npy_intp; 2]; 32], + pub limits_sizes: [npy_intp; 32], pub translate: npy_iter_get_dataptr_t, -
    }

    Fields§

    §ob_base: PyObject§nd_m1: c_int§index: npy_intp§size: npy_intp§coordinates: [npy_intp; 32]§dims_m1: [npy_intp; 32]§strides: [npy_intp; 32]§backstrides: [npy_intp; 32]§factors: [npy_intp; 32]§ao: *mut PyArrayObject§dataptr: *mut c_char§contiguous: npy_bool§bounds: [[npy_intp; 2]; 32]§limits: [[npy_intp; 2]; 32]§limits_sizes: [npy_intp; 32]§translate: npy_iter_get_dataptr_t

    Trait Implementations§

    source§

    impl Clone for PyArrayIterObject

    source§

    fn clone(&self) -> PyArrayIterObject

    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 Copy for PyArrayIterObject

    Auto Trait Implementations§

    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> 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).

    +
    }

    Fields§

    §ob_base: PyObject§nd_m1: c_int§index: npy_intp§size: npy_intp§coordinates: [npy_intp; 32]§dims_m1: [npy_intp; 32]§strides: [npy_intp; 32]§backstrides: [npy_intp; 32]§factors: [npy_intp; 32]§ao: *mut PyArrayObject§dataptr: *mut c_char§contiguous: npy_bool§bounds: [[npy_intp; 2]; 32]§limits: [[npy_intp; 2]; 32]§limits_sizes: [npy_intp; 32]§translate: npy_iter_get_dataptr_t

    Trait Implementations§

    source§

    impl Clone for PyArrayIterObject

    source§

    fn clone(&self) -> PyArrayIterObject

    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 Copy for PyArrayIterObject

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayMapIterObject.html b/numpy/npyffi/objects/struct.PyArrayMapIterObject.html index 12d6cdfa3..0932c1caf 100644 --- a/numpy/npyffi/objects/struct.PyArrayMapIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayMapIterObject.html @@ -1,49 +1,49 @@ -PyArrayMapIterObject in numpy::npyffi::objects - Rust +PyArrayMapIterObject in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArrayMapIterObject {
    Show 33 fields pub ob_base: PyObject, - pub numiter: c_int, + pub numiter: c_int, pub size: npy_intp, pub index: npy_intp, - pub nd: c_int, - pub dimensions: [npy_intp; 32], - pub outer: *mut NpyIter, - pub unused: [*mut c_void; 30], - pub array: *mut PyArrayObject, - pub ait: *mut PyArrayIterObject, - pub subspace: *mut PyArrayObject, - pub iteraxes: [c_int; 32], - pub fancy_strides: [npy_intp; 32], - pub baseoffset: *mut c_char, - pub consec: c_int, - pub dataptr: *mut c_char, - pub nd_fancy: c_int, - pub fancy_dims: [npy_intp; 32], - pub needs_api: c_int, - pub extra_op: *mut PyArrayObject, - pub extra_op_dtype: *mut PyArray_Descr, - pub extra_op_flags: *mut npy_uint32, - pub extra_op_iter: *mut NpyIter, + pub nd: c_int, + pub dimensions: [npy_intp; 32], + pub outer: *mut NpyIter, + pub unused: [*mut c_void; 30], + pub array: *mut PyArrayObject, + pub ait: *mut PyArrayIterObject, + pub subspace: *mut PyArrayObject, + pub iteraxes: [c_int; 32], + pub fancy_strides: [npy_intp; 32], + pub baseoffset: *mut c_char, + pub consec: c_int, + pub dataptr: *mut c_char, + pub nd_fancy: c_int, + pub fancy_dims: [npy_intp; 32], + pub needs_api: c_int, + pub extra_op: *mut PyArrayObject, + pub extra_op_dtype: *mut PyArray_Descr, + pub extra_op_flags: *mut npy_uint32, + pub extra_op_iter: *mut NpyIter, pub extra_op_next: NpyIter_IterNextFunc, - pub extra_op_ptrs: *mut *mut c_char, + pub extra_op_ptrs: *mut *mut c_char, pub outer_next: NpyIter_IterNextFunc, - pub outer_ptrs: *mut *mut c_char, - pub outer_strides: *mut npy_intp, - pub subspace_iter: *mut NpyIter, + pub outer_ptrs: *mut *mut c_char, + pub outer_strides: *mut npy_intp, + pub subspace_iter: *mut NpyIter, pub subspace_next: NpyIter_IterNextFunc, - pub subspace_ptrs: *mut *mut c_char, - pub subspace_strides: *mut npy_intp, + pub subspace_ptrs: *mut *mut c_char, + pub subspace_strides: *mut npy_intp, pub iter_count: npy_intp, -
    }

    Fields§

    §ob_base: PyObject§numiter: c_int§size: npy_intp§index: npy_intp§nd: c_int§dimensions: [npy_intp; 32]§outer: *mut NpyIter§unused: [*mut c_void; 30]§array: *mut PyArrayObject§ait: *mut PyArrayIterObject§subspace: *mut PyArrayObject§iteraxes: [c_int; 32]§fancy_strides: [npy_intp; 32]§baseoffset: *mut c_char§consec: c_int§dataptr: *mut c_char§nd_fancy: c_int§fancy_dims: [npy_intp; 32]§needs_api: c_int§extra_op: *mut PyArrayObject§extra_op_dtype: *mut PyArray_Descr§extra_op_flags: *mut npy_uint32§extra_op_iter: *mut NpyIter§extra_op_next: NpyIter_IterNextFunc§extra_op_ptrs: *mut *mut c_char§outer_next: NpyIter_IterNextFunc§outer_ptrs: *mut *mut c_char§outer_strides: *mut npy_intp§subspace_iter: *mut NpyIter§subspace_next: NpyIter_IterNextFunc§subspace_ptrs: *mut *mut c_char§subspace_strides: *mut npy_intp§iter_count: npy_intp

    Trait Implementations§

    source§

    impl Clone for PyArrayMapIterObject

    source§

    fn clone(&self) -> PyArrayMapIterObject

    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 Copy for PyArrayMapIterObject

    Auto Trait Implementations§

    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> 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).

    +
    }

    Fields§

    §ob_base: PyObject§numiter: c_int§size: npy_intp§index: npy_intp§nd: c_int§dimensions: [npy_intp; 32]§outer: *mut NpyIter§unused: [*mut c_void; 30]§array: *mut PyArrayObject§ait: *mut PyArrayIterObject§subspace: *mut PyArrayObject§iteraxes: [c_int; 32]§fancy_strides: [npy_intp; 32]§baseoffset: *mut c_char§consec: c_int§dataptr: *mut c_char§nd_fancy: c_int§fancy_dims: [npy_intp; 32]§needs_api: c_int§extra_op: *mut PyArrayObject§extra_op_dtype: *mut PyArray_Descr§extra_op_flags: *mut npy_uint32§extra_op_iter: *mut NpyIter§extra_op_next: NpyIter_IterNextFunc§extra_op_ptrs: *mut *mut c_char§outer_next: NpyIter_IterNextFunc§outer_ptrs: *mut *mut c_char§outer_strides: *mut npy_intp§subspace_iter: *mut NpyIter§subspace_next: NpyIter_IterNextFunc§subspace_ptrs: *mut *mut c_char§subspace_strides: *mut npy_intp§iter_count: npy_intp

    Trait Implementations§

    source§

    impl Clone for PyArrayMapIterObject

    source§

    fn clone(&self) -> PyArrayMapIterObject

    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 Copy for PyArrayMapIterObject

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html b/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html index 3ed081e92..2418419d5 100644 --- a/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html @@ -1,23 +1,23 @@ -PyArrayMultiIterObject in numpy::npyffi::objects - Rust +PyArrayMultiIterObject in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArrayMultiIterObject { pub ob_base: PyObject, - pub numiter: c_int, + pub numiter: c_int, pub size: npy_intp, pub index: npy_intp, - pub nd: c_int, - pub dimensions: [npy_intp; 32], - pub iters: [*mut PyArrayIterObject; 32], -}

    Fields§

    §ob_base: PyObject§numiter: c_int§size: npy_intp§index: npy_intp§nd: c_int§dimensions: [npy_intp; 32]§iters: [*mut PyArrayIterObject; 32]

    Trait Implementations§

    source§

    impl Clone for PyArrayMultiIterObject

    source§

    fn clone(&self) -> PyArrayMultiIterObject

    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 Copy for PyArrayMultiIterObject

    Auto Trait Implementations§

    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> 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).

    + pub nd: c_int, + pub dimensions: [npy_intp; 32], + pub iters: [*mut PyArrayIterObject; 32], +}

    Fields§

    §ob_base: PyObject§numiter: c_int§size: npy_intp§index: npy_intp§nd: c_int§dimensions: [npy_intp; 32]§iters: [*mut PyArrayIterObject; 32]

    Trait Implementations§

    source§

    impl Clone for PyArrayMultiIterObject

    source§

    fn clone(&self) -> PyArrayMultiIterObject

    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 Copy for PyArrayMultiIterObject

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html b/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html index 5b0af57b7..fec92121c 100644 --- a/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html @@ -1,37 +1,37 @@ -PyArrayNeighborhoodIterObject in numpy::npyffi::objects - Rust +PyArrayNeighborhoodIterObject in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArrayNeighborhoodIterObject {
    Show 21 fields pub ob_base: PyObject, - pub nd_m1: c_int, + pub nd_m1: c_int, pub index: npy_intp, pub size: npy_intp, - pub coordinates: [npy_intp; 32], - pub dims_m1: [npy_intp; 32], - pub strides: [npy_intp; 32], - pub backstrides: [npy_intp; 32], - pub factors: [npy_intp; 32], - pub ao: *mut PyArrayObject, - pub dataptr: *mut c_char, + pub coordinates: [npy_intp; 32], + pub dims_m1: [npy_intp; 32], + pub strides: [npy_intp; 32], + pub backstrides: [npy_intp; 32], + pub factors: [npy_intp; 32], + pub ao: *mut PyArrayObject, + pub dataptr: *mut c_char, pub contiguous: npy_bool, - pub bounds: [[npy_intp; 2]; 32], - pub limits: [[npy_intp; 2]; 32], - pub limits_sizes: [npy_intp; 32], + pub bounds: [[npy_intp; 2]; 32], + pub limits: [[npy_intp; 2]; 32], + pub limits_sizes: [npy_intp; 32], pub translate: npy_iter_get_dataptr_t, pub nd: npy_intp, - pub dimensions: [npy_intp; 32], - pub _internal_iter: *mut PyArrayIterObject, - pub constant: *mut c_char, - pub mode: c_int, -
    }

    Fields§

    §ob_base: PyObject§nd_m1: c_int§index: npy_intp§size: npy_intp§coordinates: [npy_intp; 32]§dims_m1: [npy_intp; 32]§strides: [npy_intp; 32]§backstrides: [npy_intp; 32]§factors: [npy_intp; 32]§ao: *mut PyArrayObject§dataptr: *mut c_char§contiguous: npy_bool§bounds: [[npy_intp; 2]; 32]§limits: [[npy_intp; 2]; 32]§limits_sizes: [npy_intp; 32]§translate: npy_iter_get_dataptr_t§nd: npy_intp§dimensions: [npy_intp; 32]§_internal_iter: *mut PyArrayIterObject§constant: *mut c_char§mode: c_int

    Trait Implementations§

    source§

    impl Clone for PyArrayNeighborhoodIterObject

    source§

    fn clone(&self) -> PyArrayNeighborhoodIterObject

    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 Copy for PyArrayNeighborhoodIterObject

    Auto Trait Implementations§

    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> 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).

    + pub dimensions: [npy_intp; 32], + pub _internal_iter: *mut PyArrayIterObject, + pub constant: *mut c_char, + pub mode: c_int, +
    }

    Fields§

    §ob_base: PyObject§nd_m1: c_int§index: npy_intp§size: npy_intp§coordinates: [npy_intp; 32]§dims_m1: [npy_intp; 32]§strides: [npy_intp; 32]§backstrides: [npy_intp; 32]§factors: [npy_intp; 32]§ao: *mut PyArrayObject§dataptr: *mut c_char§contiguous: npy_bool§bounds: [[npy_intp; 2]; 32]§limits: [[npy_intp; 2]; 32]§limits_sizes: [npy_intp; 32]§translate: npy_iter_get_dataptr_t§nd: npy_intp§dimensions: [npy_intp; 32]§_internal_iter: *mut PyArrayIterObject§constant: *mut c_char§mode: c_int

    Trait Implementations§

    source§

    impl Clone for PyArrayNeighborhoodIterObject

    source§

    fn clone(&self) -> PyArrayNeighborhoodIterObject

    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 Copy for PyArrayNeighborhoodIterObject

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayObject.html b/numpy/npyffi/objects/struct.PyArrayObject.html index 8e45e228d..d8eeb1d18 100644 --- a/numpy/npyffi/objects/struct.PyArrayObject.html +++ b/numpy/npyffi/objects/struct.PyArrayObject.html @@ -1,25 +1,25 @@ -PyArrayObject in numpy::npyffi::objects - Rust +PyArrayObject in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArrayObject { pub ob_base: PyObject, - pub data: *mut c_char, - pub nd: c_int, - pub dimensions: *mut npy_intp, - pub strides: *mut npy_intp, - pub base: *mut PyObject, - pub descr: *mut PyArray_Descr, - pub flags: c_int, - pub weakreflist: *mut PyObject, -}

    Fields§

    §ob_base: PyObject§data: *mut c_char§nd: c_int§dimensions: *mut npy_intp§strides: *mut npy_intp§base: *mut PyObject§descr: *mut PyArray_Descr§flags: c_int§weakreflist: *mut PyObject

    Trait Implementations§

    source§

    impl Clone for PyArrayObject

    source§

    fn clone(&self) -> PyArrayObject

    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 Copy for PyArrayObject

    Auto Trait Implementations§

    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> 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).

    + pub data: *mut c_char, + pub nd: c_int, + pub dimensions: *mut npy_intp, + pub strides: *mut npy_intp, + pub base: *mut PyObject, + pub descr: *mut PyArray_Descr, + pub flags: c_int, + pub weakreflist: *mut PyObject, +}

    Fields§

    §ob_base: PyObject§data: *mut c_char§nd: c_int§dimensions: *mut npy_intp§strides: *mut npy_intp§base: *mut PyObject§descr: *mut PyArray_Descr§flags: c_int§weakreflist: *mut PyObject

    Trait Implementations§

    source§

    impl Clone for PyArrayObject

    source§

    fn clone(&self) -> PyArrayObject

    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 Copy for PyArrayObject

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_ArrFuncs.html b/numpy/npyffi/objects/struct.PyArray_ArrFuncs.html index 498bf41fc..aefd70d1b 100644 --- a/numpy/npyffi/objects/struct.PyArray_ArrFuncs.html +++ b/numpy/npyffi/objects/struct.PyArray_ArrFuncs.html @@ -1,6 +1,6 @@ -PyArray_ArrFuncs in numpy::npyffi::objects - Rust +PyArray_ArrFuncs in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArray_ArrFuncs {
    Show 23 fields - pub cast: [PyArray_VectorUnaryFunc; 21], + pub cast: [PyArray_VectorUnaryFunc; 21], pub getitem: PyArray_GetItemFunc, pub setitem: PyArray_SetItemFunc, pub copyswapn: PyArray_CopySwapNFunc, @@ -13,27 +13,27 @@ pub nonzero: PyArray_NonzeroFunc, pub fill: PyArray_FillFunc, pub fillwithscalar: PyArray_FillWithScalarFunc, - pub sort: [PyArray_SortFunc; 3], - pub argsort: [PyArray_ArgSortFunc; 3], - pub castdict: *mut PyObject, + pub sort: [PyArray_SortFunc; 3], + pub argsort: [PyArray_ArgSortFunc; 3], + pub castdict: *mut PyObject, pub scalarkind: PyArray_ScalarKindFunc, - pub cancastscalarkindto: *mut *mut c_int, - pub cancastto: *mut c_int, + pub cancastscalarkindto: *mut *mut c_int, + pub cancastto: *mut c_int, pub fastclip: PyArray_FastClipFunc, pub fastputmask: PyArray_FastPutmaskFunc, pub fasttake: PyArray_FastTakeFunc, pub argmin: PyArray_ArgFunc, -
    }

    Fields§

    §cast: [PyArray_VectorUnaryFunc; 21]§getitem: PyArray_GetItemFunc§setitem: PyArray_SetItemFunc§copyswapn: PyArray_CopySwapNFunc§copyswap: PyArray_CopySwapFunc§compare: PyArray_CompareFunc§argmax: PyArray_ArgFunc§dotfunc: PyArray_DotFunc§scanfunc: PyArray_ScanFunc§fromstr: PyArray_FromStrFunc§nonzero: PyArray_NonzeroFunc§fill: PyArray_FillFunc§fillwithscalar: PyArray_FillWithScalarFunc§sort: [PyArray_SortFunc; 3]§argsort: [PyArray_ArgSortFunc; 3]§castdict: *mut PyObject§scalarkind: PyArray_ScalarKindFunc§cancastscalarkindto: *mut *mut c_int§cancastto: *mut c_int§fastclip: PyArray_FastClipFunc§fastputmask: PyArray_FastPutmaskFunc§fasttake: PyArray_FastTakeFunc§argmin: PyArray_ArgFunc

    Trait Implementations§

    source§

    impl Clone for PyArray_ArrFuncs

    source§

    fn clone(&self) -> PyArray_ArrFuncs

    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 Copy for PyArray_ArrFuncs

    Auto Trait Implementations§

    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> 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).

    +
    }

    Fields§

    §cast: [PyArray_VectorUnaryFunc; 21]§getitem: PyArray_GetItemFunc§setitem: PyArray_SetItemFunc§copyswapn: PyArray_CopySwapNFunc§copyswap: PyArray_CopySwapFunc§compare: PyArray_CompareFunc§argmax: PyArray_ArgFunc§dotfunc: PyArray_DotFunc§scanfunc: PyArray_ScanFunc§fromstr: PyArray_FromStrFunc§nonzero: PyArray_NonzeroFunc§fill: PyArray_FillFunc§fillwithscalar: PyArray_FillWithScalarFunc§sort: [PyArray_SortFunc; 3]§argsort: [PyArray_ArgSortFunc; 3]§castdict: *mut PyObject§scalarkind: PyArray_ScalarKindFunc§cancastscalarkindto: *mut *mut c_int§cancastto: *mut c_int§fastclip: PyArray_FastClipFunc§fastputmask: PyArray_FastPutmaskFunc§fasttake: PyArray_FastTakeFunc§argmin: PyArray_ArgFunc

    Trait Implementations§

    source§

    impl Clone for PyArray_ArrFuncs

    source§

    fn clone(&self) -> PyArray_ArrFuncs

    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 Copy for PyArray_ArrFuncs

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_ArrayDescr.html b/numpy/npyffi/objects/struct.PyArray_ArrayDescr.html index 1816ee9a4..e0238b635 100644 --- a/numpy/npyffi/objects/struct.PyArray_ArrayDescr.html +++ b/numpy/npyffi/objects/struct.PyArray_ArrayDescr.html @@ -1,18 +1,18 @@ -PyArray_ArrayDescr in numpy::npyffi::objects - Rust +PyArray_ArrayDescr in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArray_ArrayDescr { - pub base: *mut PyArray_Descr, - pub shape: *mut PyObject, -}

    Fields§

    §base: *mut PyArray_Descr§shape: *mut PyObject

    Trait Implementations§

    source§

    impl Clone for PyArray_ArrayDescr

    source§

    fn clone(&self) -> PyArray_ArrayDescr

    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 Copy for PyArray_ArrayDescr

    Auto Trait Implementations§

    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> 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).

    + pub base: *mut PyArray_Descr, + pub shape: *mut PyObject, +}

    Fields§

    §base: *mut PyArray_Descr§shape: *mut PyObject

    Trait Implementations§

    source§

    impl Clone for PyArray_ArrayDescr

    source§

    fn clone(&self) -> PyArray_ArrayDescr

    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 Copy for PyArray_ArrayDescr

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_Chunk.html b/numpy/npyffi/objects/struct.PyArray_Chunk.html index 26bff0728..b5cd5d88f 100644 --- a/numpy/npyffi/objects/struct.PyArray_Chunk.html +++ b/numpy/npyffi/objects/struct.PyArray_Chunk.html @@ -1,21 +1,21 @@ -PyArray_Chunk in numpy::npyffi::objects - Rust +PyArray_Chunk in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArray_Chunk { pub ob_base: PyObject, - pub base: *mut PyObject, - pub ptr: *mut c_void, + pub base: *mut PyObject, + pub ptr: *mut c_void, pub len: npy_intp, - pub flags: c_int, -}

    Fields§

    §ob_base: PyObject§base: *mut PyObject§ptr: *mut c_void§len: npy_intp§flags: c_int

    Trait Implementations§

    source§

    impl Clone for PyArray_Chunk

    source§

    fn clone(&self) -> PyArray_Chunk

    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 Copy for PyArray_Chunk

    Auto Trait Implementations§

    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> 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).

    + pub flags: c_int, +}

    Fields§

    §ob_base: PyObject§base: *mut PyObject§ptr: *mut c_void§len: npy_intp§flags: c_int

    Trait Implementations§

    source§

    impl Clone for PyArray_Chunk

    source§

    fn clone(&self) -> PyArray_Chunk

    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 Copy for PyArray_Chunk

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_DatetimeDTypeMetaData.html b/numpy/npyffi/objects/struct.PyArray_DatetimeDTypeMetaData.html index 71c88ceca..4491d7f52 100644 --- a/numpy/npyffi/objects/struct.PyArray_DatetimeDTypeMetaData.html +++ b/numpy/npyffi/objects/struct.PyArray_DatetimeDTypeMetaData.html @@ -1,18 +1,18 @@ -PyArray_DatetimeDTypeMetaData in numpy::npyffi::objects - Rust +PyArray_DatetimeDTypeMetaData in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArray_DatetimeDTypeMetaData { pub base: NpyAuxData, pub meta: PyArray_DatetimeMetaData, -}

    Fields§

    §base: NpyAuxData§meta: PyArray_DatetimeMetaData

    Trait Implementations§

    source§

    impl Clone for PyArray_DatetimeDTypeMetaData

    source§

    fn clone(&self) -> PyArray_DatetimeDTypeMetaData

    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 Copy for PyArray_DatetimeDTypeMetaData

    Auto Trait Implementations§

    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> 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).

    +}

    Fields§

    §base: NpyAuxData§meta: PyArray_DatetimeMetaData

    Trait Implementations§

    source§

    impl Clone for PyArray_DatetimeDTypeMetaData

    source§

    fn clone(&self) -> PyArray_DatetimeDTypeMetaData

    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 Copy for PyArray_DatetimeDTypeMetaData

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_DatetimeMetaData.html b/numpy/npyffi/objects/struct.PyArray_DatetimeMetaData.html index 478db9832..003da0337 100644 --- a/numpy/npyffi/objects/struct.PyArray_DatetimeMetaData.html +++ b/numpy/npyffi/objects/struct.PyArray_DatetimeMetaData.html @@ -1,19 +1,19 @@ -PyArray_DatetimeMetaData in numpy::npyffi::objects - Rust +PyArray_DatetimeMetaData in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArray_DatetimeMetaData { pub base: NPY_DATETIMEUNIT, - pub num: c_int, -}

    Fields§

    §base: NPY_DATETIMEUNIT§num: c_int

    Trait Implementations§

    source§

    impl Clone for PyArray_DatetimeMetaData

    source§

    fn clone(&self) -> PyArray_DatetimeMetaData

    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 Copy for PyArray_DatetimeMetaData

    Auto Trait Implementations§

    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> 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).

    + pub num: c_int, +}

    Fields§

    §base: NPY_DATETIMEUNIT§num: c_int

    Trait Implementations§

    source§

    impl Clone for PyArray_DatetimeMetaData

    source§

    fn clone(&self) -> PyArray_DatetimeMetaData

    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 Copy for PyArray_DatetimeMetaData

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_Descr.html b/numpy/npyffi/objects/struct.PyArray_Descr.html index a4fc65194..cd40e48d7 100644 --- a/numpy/npyffi/objects/struct.PyArray_Descr.html +++ b/numpy/npyffi/objects/struct.PyArray_Descr.html @@ -1,32 +1,32 @@ -PyArray_Descr in numpy::npyffi::objects - Rust +PyArray_Descr in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArray_Descr {
    Show 16 fields pub ob_base: PyObject, - pub typeobj: *mut PyTypeObject, - pub kind: c_char, - pub type_: c_char, - pub byteorder: c_char, - pub flags: c_char, - pub type_num: c_int, - pub elsize: c_int, - pub alignment: c_int, - pub subarray: *mut PyArray_ArrayDescr, - pub fields: *mut PyObject, - pub names: *mut PyObject, - pub f: *mut PyArray_ArrFuncs, - pub metadata: *mut PyObject, - pub c_metadata: *mut NpyAuxData, + pub typeobj: *mut PyTypeObject, + pub kind: c_char, + pub type_: c_char, + pub byteorder: c_char, + pub flags: c_char, + pub type_num: c_int, + pub elsize: c_int, + pub alignment: c_int, + pub subarray: *mut PyArray_ArrayDescr, + pub fields: *mut PyObject, + pub names: *mut PyObject, + pub f: *mut PyArray_ArrFuncs, + pub metadata: *mut PyObject, + pub c_metadata: *mut NpyAuxData, pub hash: npy_hash_t, -
    }

    Fields§

    §ob_base: PyObject§typeobj: *mut PyTypeObject§kind: c_char§type_: c_char§byteorder: c_char§flags: c_char§type_num: c_int§elsize: c_int§alignment: c_int§subarray: *mut PyArray_ArrayDescr§fields: *mut PyObject§names: *mut PyObject§f: *mut PyArray_ArrFuncs§metadata: *mut PyObject§c_metadata: *mut NpyAuxData§hash: npy_hash_t

    Trait Implementations§

    source§

    impl Clone for PyArray_Descr

    source§

    fn clone(&self) -> PyArray_Descr

    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 Copy for PyArray_Descr

    Auto Trait Implementations§

    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> 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).

    +
    }

    Fields§

    §ob_base: PyObject§typeobj: *mut PyTypeObject§kind: c_char§type_: c_char§byteorder: c_char§flags: c_char§type_num: c_int§elsize: c_int§alignment: c_int§subarray: *mut PyArray_ArrayDescr§fields: *mut PyObject§names: *mut PyObject§f: *mut PyArray_ArrFuncs§metadata: *mut PyObject§c_metadata: *mut NpyAuxData§hash: npy_hash_t

    Trait Implementations§

    source§

    impl Clone for PyArray_Descr

    source§

    fn clone(&self) -> PyArray_Descr

    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 Copy for PyArray_Descr

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_Dims.html b/numpy/npyffi/objects/struct.PyArray_Dims.html index b4f85a854..d4ccf38fd 100644 --- a/numpy/npyffi/objects/struct.PyArray_Dims.html +++ b/numpy/npyffi/objects/struct.PyArray_Dims.html @@ -1,18 +1,18 @@ -PyArray_Dims in numpy::npyffi::objects - Rust +PyArray_Dims in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyArray_Dims { - pub ptr: *mut npy_intp, - pub len: c_int, -}

    Fields§

    §ptr: *mut npy_intp§len: c_int

    Trait Implementations§

    source§

    impl Clone for PyArray_Dims

    source§

    fn clone(&self) -> PyArray_Dims

    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 Copy for PyArray_Dims

    Auto Trait Implementations§

    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> 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).

    + pub ptr: *mut npy_intp, + pub len: c_int, +}

    Fields§

    §ptr: *mut npy_intp§len: c_int

    Trait Implementations§

    source§

    impl Clone for PyArray_Dims

    source§

    fn clone(&self) -> PyArray_Dims

    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 Copy for PyArray_Dims

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyUFuncObject.html b/numpy/npyffi/objects/struct.PyUFuncObject.html index 4d3342182..fe30378b3 100644 --- a/numpy/npyffi/objects/struct.PyUFuncObject.html +++ b/numpy/npyffi/objects/struct.PyUFuncObject.html @@ -1,43 +1,43 @@ -PyUFuncObject in numpy::npyffi::objects - Rust +PyUFuncObject in numpy::npyffi::objects - Rust
    #[repr(C)]
    pub struct PyUFuncObject {
    Show 27 fields pub ob_base: PyObject, - pub nin: c_int, - pub nout: c_int, - pub nargs: c_int, - pub identity: c_int, - pub functions: *mut PyUFuncGenericFunction, - pub data: *mut *mut c_void, - pub ntypes: c_int, - pub reserved1: c_int, - pub name: *const c_char, - pub types: *mut c_char, - pub doc: *const c_char, - pub ptr: *mut c_void, - pub obj: *mut PyObject, - pub userloops: *mut PyObject, - pub core_enabled: c_int, - pub core_num_dim_ix: c_int, - pub core_num_dims: *mut c_int, - pub core_dim_ixs: *mut c_int, - pub core_offsets: *mut c_int, - pub core_signature: *mut c_char, + pub nin: c_int, + pub nout: c_int, + pub nargs: c_int, + pub identity: c_int, + pub functions: *mut PyUFuncGenericFunction, + pub data: *mut *mut c_void, + pub ntypes: c_int, + pub reserved1: c_int, + pub name: *const c_char, + pub types: *mut c_char, + pub doc: *const c_char, + pub ptr: *mut c_void, + pub obj: *mut PyObject, + pub userloops: *mut PyObject, + pub core_enabled: c_int, + pub core_num_dim_ix: c_int, + pub core_num_dims: *mut c_int, + pub core_dim_ixs: *mut c_int, + pub core_offsets: *mut c_int, + pub core_signature: *mut c_char, pub type_resolver: PyUFunc_TypeResolutionFunc, pub legacy_inner_loop_selector: PyUFunc_LegacyInnerLoopSelectionFunc, - pub reserved2: *mut c_void, + pub reserved2: *mut c_void, pub masked_inner_loop_selector: PyUFunc_MaskedInnerLoopSelectionFunc, - pub op_flags: *mut npy_uint32, + pub op_flags: *mut npy_uint32, pub iter_flags: npy_uint32, -
    }

    Fields§

    §ob_base: PyObject§nin: c_int§nout: c_int§nargs: c_int§identity: c_int§functions: *mut PyUFuncGenericFunction§data: *mut *mut c_void§ntypes: c_int§reserved1: c_int§name: *const c_char§types: *mut c_char§doc: *const c_char§ptr: *mut c_void§obj: *mut PyObject§userloops: *mut PyObject§core_enabled: c_int§core_num_dim_ix: c_int§core_num_dims: *mut c_int§core_dim_ixs: *mut c_int§core_offsets: *mut c_int§core_signature: *mut c_char§type_resolver: PyUFunc_TypeResolutionFunc§legacy_inner_loop_selector: PyUFunc_LegacyInnerLoopSelectionFunc§reserved2: *mut c_void§masked_inner_loop_selector: PyUFunc_MaskedInnerLoopSelectionFunc§op_flags: *mut npy_uint32§iter_flags: npy_uint32

    Trait Implementations§

    source§

    impl Clone for PyUFuncObject

    source§

    fn clone(&self) -> PyUFuncObject

    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 Copy for PyUFuncObject

    Auto Trait Implementations§

    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> 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).

    +
    }

    Fields§

    §ob_base: PyObject§nin: c_int§nout: c_int§nargs: c_int§identity: c_int§functions: *mut PyUFuncGenericFunction§data: *mut *mut c_void§ntypes: c_int§reserved1: c_int§name: *const c_char§types: *mut c_char§doc: *const c_char§ptr: *mut c_void§obj: *mut PyObject§userloops: *mut PyObject§core_enabled: c_int§core_num_dim_ix: c_int§core_num_dims: *mut c_int§core_dim_ixs: *mut c_int§core_offsets: *mut c_int§core_signature: *mut c_char§type_resolver: PyUFunc_TypeResolutionFunc§legacy_inner_loop_selector: PyUFunc_LegacyInnerLoopSelectionFunc§reserved2: *mut c_void§masked_inner_loop_selector: PyUFunc_MaskedInnerLoopSelectionFunc§op_flags: *mut npy_uint32§iter_flags: npy_uint32

    Trait Implementations§

    source§

    impl Clone for PyUFuncObject

    source§

    fn clone(&self) -> PyUFuncObject

    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 Copy for PyUFuncObject

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.NpyAuxData_CloneFunc.html b/numpy/npyffi/objects/type.NpyAuxData_CloneFunc.html index ea85f59b7..43c2d111b 100644 --- a/numpy/npyffi/objects/type.NpyAuxData_CloneFunc.html +++ b/numpy/npyffi/objects/type.NpyAuxData_CloneFunc.html @@ -1,7 +1,7 @@ -NpyAuxData_CloneFunc in numpy::npyffi::objects - Rust -
    pub type NpyAuxData_CloneFunc = Option<unsafe extern "C" fn(_: *mut NpyAuxData) -> *mut NpyAuxData>;

    Aliased Type§

    enum NpyAuxData_CloneFunc {
    +NpyAuxData_CloneFunc in numpy::npyffi::objects - Rust
    +    
    pub type NpyAuxData_CloneFunc = Option<unsafe extern "C" fn(_: *mut NpyAuxData) -> *mut NpyAuxData>;

    Aliased Type§

    enum NpyAuxData_CloneFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut NpyAuxData) -> *mut NpyAuxData),
    +    Some(unsafe extern "C" fn(_: *mut NpyAuxData) -> *mut NpyAuxData),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyAuxData) -> *mut NpyAuxData)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyAuxData) -> *mut NpyAuxData)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.NpyAuxData_FreeFunc.html b/numpy/npyffi/objects/type.NpyAuxData_FreeFunc.html index d5d017a45..e5dabe2d3 100644 --- a/numpy/npyffi/objects/type.NpyAuxData_FreeFunc.html +++ b/numpy/npyffi/objects/type.NpyAuxData_FreeFunc.html @@ -1,7 +1,7 @@ -NpyAuxData_FreeFunc in numpy::npyffi::objects - Rust -
    pub type NpyAuxData_FreeFunc = Option<unsafe extern "C" fn(_: *mut NpyAuxData)>;

    Aliased Type§

    enum NpyAuxData_FreeFunc {
    +NpyAuxData_FreeFunc in numpy::npyffi::objects - Rust
    +    
    pub type NpyAuxData_FreeFunc = Option<unsafe extern "C" fn(_: *mut NpyAuxData)>;

    Aliased Type§

    enum NpyAuxData_FreeFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut NpyAuxData)),
    +    Some(unsafe extern "C" fn(_: *mut NpyAuxData)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyAuxData))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyAuxData))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.NpyIter_GetMultiIndexFunc.html b/numpy/npyffi/objects/type.NpyIter_GetMultiIndexFunc.html index eb0f6e1ed..23fa34d73 100644 --- a/numpy/npyffi/objects/type.NpyIter_GetMultiIndexFunc.html +++ b/numpy/npyffi/objects/type.NpyIter_GetMultiIndexFunc.html @@ -1,7 +1,7 @@ -NpyIter_GetMultiIndexFunc in numpy::npyffi::objects - Rust -
    pub type NpyIter_GetMultiIndexFunc = Option<unsafe extern "C" fn(_: *mut NpyIter, _: *mut npy_intp)>;

    Aliased Type§

    enum NpyIter_GetMultiIndexFunc {
    +NpyIter_GetMultiIndexFunc in numpy::npyffi::objects - Rust
    +    
    pub type NpyIter_GetMultiIndexFunc = Option<unsafe extern "C" fn(_: *mut NpyIter, _: *mut npy_intp)>;

    Aliased Type§

    enum NpyIter_GetMultiIndexFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut NpyIter, _: *mut isize)),
    +    Some(unsafe extern "C" fn(_: *mut NpyIter, _: *mut isize)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyIter, _: *mut isize))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyIter, _: *mut isize))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.NpyIter_IterNextFunc.html b/numpy/npyffi/objects/type.NpyIter_IterNextFunc.html index 7ecbe37ce..ec8f84b7d 100644 --- a/numpy/npyffi/objects/type.NpyIter_IterNextFunc.html +++ b/numpy/npyffi/objects/type.NpyIter_IterNextFunc.html @@ -1,7 +1,7 @@ -NpyIter_IterNextFunc in numpy::npyffi::objects - Rust -
    pub type NpyIter_IterNextFunc = Option<unsafe extern "C" fn(_: *mut NpyIter) -> c_int>;

    Aliased Type§

    enum NpyIter_IterNextFunc {
    +NpyIter_IterNextFunc in numpy::npyffi::objects - Rust
    +    
    pub type NpyIter_IterNextFunc = Option<unsafe extern "C" fn(_: *mut NpyIter) -> c_int>;

    Aliased Type§

    enum NpyIter_IterNextFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut NpyIter) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut NpyIter) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyIter) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut NpyIter) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_ArgFunc.html b/numpy/npyffi/objects/type.PyArray_ArgFunc.html index 759b925f8..08df6fc60 100644 --- a/numpy/npyffi/objects/type.PyArray_ArgFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ArgFunc.html @@ -1,7 +1,7 @@ -PyArray_ArgFunc in numpy::npyffi::objects - Rust -

    Type Alias numpy::npyffi::objects::PyArray_ArgFunc

    source ·
    pub type PyArray_ArgFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ArgFunc {
    +PyArray_ArgFunc in numpy::npyffi::objects - Rust
    +    

    Type Alias numpy::npyffi::objects::PyArray_ArgFunc

    source ·
    pub type PyArray_ArgFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ArgFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut isize, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut isize, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut isize, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut isize, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_ArgPartitionFunc.html b/numpy/npyffi/objects/type.PyArray_ArgPartitionFunc.html index 5ad7c56f3..2d9d641d0 100644 --- a/numpy/npyffi/objects/type.PyArray_ArgPartitionFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ArgPartitionFunc.html @@ -1,7 +1,7 @@ -PyArray_ArgPartitionFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_ArgPartitionFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut npy_intp, _: npy_intp, _: npy_intp, _: *mut npy_intp, _: *mut npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ArgPartitionFunc {
    +PyArray_ArgPartitionFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_ArgPartitionFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut npy_intp, _: npy_intp, _: npy_intp, _: *mut npy_intp, _: *mut npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ArgPartitionFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_ArgSortFunc.html b/numpy/npyffi/objects/type.PyArray_ArgSortFunc.html index 82f118f5a..eba02e5cf 100644 --- a/numpy/npyffi/objects/type.PyArray_ArgSortFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ArgSortFunc.html @@ -1,7 +1,7 @@ -PyArray_ArgSortFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_ArgSortFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut npy_intp, _: npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ArgSortFunc {
    +PyArray_ArgSortFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_ArgSortFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut npy_intp, _: npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ArgSortFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut isize, _: isize, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_CompareFunc.html b/numpy/npyffi/objects/type.PyArray_CompareFunc.html index d4e027c45..81571b7a3 100644 --- a/numpy/npyffi/objects/type.PyArray_CompareFunc.html +++ b/numpy/npyffi/objects/type.PyArray_CompareFunc.html @@ -1,7 +1,7 @@ -PyArray_CompareFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_CompareFunc = Option<unsafe extern "C" fn(_: *const c_void, _: *const c_void, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_CompareFunc {
    +PyArray_CompareFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_CompareFunc = Option<unsafe extern "C" fn(_: *const c_void, _: *const c_void, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_CompareFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *const c_void, _: *const c_void, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *const c_void, _: *const c_void, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *const c_void, _: *const c_void, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *const c_void, _: *const c_void, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_CopySwapFunc.html b/numpy/npyffi/objects/type.PyArray_CopySwapFunc.html index 3f2c66592..a83a39445 100644 --- a/numpy/npyffi/objects/type.PyArray_CopySwapFunc.html +++ b/numpy/npyffi/objects/type.PyArray_CopySwapFunc.html @@ -1,7 +1,7 @@ -PyArray_CopySwapFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_CopySwapFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: c_int, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_CopySwapFunc {
    +PyArray_CopySwapFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_CopySwapFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: c_int, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_CopySwapFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: i32, _: *mut c_void)),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: i32, _: *mut c_void)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: i32, _: *mut c_void))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: i32, _: *mut c_void))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_CopySwapNFunc.html b/numpy/npyffi/objects/type.PyArray_CopySwapNFunc.html index 486ad1f2f..bb032acc8 100644 --- a/numpy/npyffi/objects/type.PyArray_CopySwapNFunc.html +++ b/numpy/npyffi/objects/type.PyArray_CopySwapNFunc.html @@ -1,7 +1,7 @@ -PyArray_CopySwapNFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_CopySwapNFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp, _: npy_intp, _: c_int, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_CopySwapNFunc {
    +PyArray_CopySwapNFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_CopySwapNFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp, _: npy_intp, _: c_int, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_CopySwapNFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: isize, _: i32, _: *mut c_void)),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: isize, _: i32, _: *mut c_void)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: isize, _: i32, _: *mut c_void))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: isize, _: i32, _: *mut c_void))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_DotFunc.html b/numpy/npyffi/objects/type.PyArray_DotFunc.html index 8c706484a..79dd0f973 100644 --- a/numpy/npyffi/objects/type.PyArray_DotFunc.html +++ b/numpy/npyffi/objects/type.PyArray_DotFunc.html @@ -1,7 +1,7 @@ -PyArray_DotFunc in numpy::npyffi::objects - Rust -

    Type Alias numpy::npyffi::objects::PyArray_DotFunc

    source ·
    pub type PyArray_DotFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_DotFunc {
    +PyArray_DotFunc in numpy::npyffi::objects - Rust
    +    

    Type Alias numpy::npyffi::objects::PyArray_DotFunc

    source ·
    pub type PyArray_DotFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_DotFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void)),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void, _: isize, _: *mut c_void))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_FastClipFunc.html b/numpy/npyffi/objects/type.PyArray_FastClipFunc.html index f1f4decb8..3eaba2910 100644 --- a/numpy/npyffi/objects/type.PyArray_FastClipFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FastClipFunc.html @@ -1,7 +1,7 @@ -PyArray_FastClipFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_FastClipFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: *mut c_void, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_FastClipFunc {
    +PyArray_FastClipFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_FastClipFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: *mut c_void, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_FastClipFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void, _: *mut c_void)),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void, _: *mut c_void)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void, _: *mut c_void))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void, _: *mut c_void))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_FastPutmaskFunc.html b/numpy/npyffi/objects/type.PyArray_FastPutmaskFunc.html index 642afa200..4d6f3b5e5 100644 --- a/numpy/npyffi/objects/type.PyArray_FastPutmaskFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FastPutmaskFunc.html @@ -1,7 +1,7 @@ -PyArray_FastPutmaskFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_FastPutmaskFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp)>;

    Aliased Type§

    enum PyArray_FastPutmaskFunc {
    +PyArray_FastPutmaskFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_FastPutmaskFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: npy_intp, _: *mut c_void, _: npy_intp)>;

    Aliased Type§

    enum PyArray_FastPutmaskFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: isize)),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: isize)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: isize))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: isize))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_FastTakeFunc.html b/numpy/npyffi/objects/type.PyArray_FastTakeFunc.html index 99decbeae..11686db8a 100644 --- a/numpy/npyffi/objects/type.PyArray_FastTakeFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FastTakeFunc.html @@ -1,7 +1,7 @@ -PyArray_FastTakeFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_FastTakeFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut npy_intp, _: npy_intp, _: npy_intp, _: npy_intp, _: npy_intp, _: NPY_CLIPMODE) -> c_int>;

    Aliased Type§

    enum PyArray_FastTakeFunc {
    +PyArray_FastTakeFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_FastTakeFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut npy_intp, _: npy_intp, _: npy_intp, _: npy_intp, _: npy_intp, _: NPY_CLIPMODE) -> c_int>;

    Aliased Type§

    enum PyArray_FastTakeFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut isize, _: isize, _: isize, _: isize, _: isize, _: NPY_CLIPMODE) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut isize, _: isize, _: isize, _: isize, _: isize, _: NPY_CLIPMODE) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut isize, _: isize, _: isize, _: isize, _: isize, _: NPY_CLIPMODE) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: *mut isize, _: isize, _: isize, _: isize, _: isize, _: NPY_CLIPMODE) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_FillFunc.html b/numpy/npyffi/objects/type.PyArray_FillFunc.html index 6260c8760..723ab9dc6 100644 --- a/numpy/npyffi/objects/type.PyArray_FillFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FillFunc.html @@ -1,7 +1,7 @@ -PyArray_FillFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_FillFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_FillFunc {
    +PyArray_FillFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_FillFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_FillFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_FillWithScalarFunc.html b/numpy/npyffi/objects/type.PyArray_FillWithScalarFunc.html index c55230737..c45ceaa2f 100644 --- a/numpy/npyffi/objects/type.PyArray_FillWithScalarFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FillWithScalarFunc.html @@ -1,7 +1,7 @@ -PyArray_FillWithScalarFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_FillWithScalarFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_FillWithScalarFunc {
    +PyArray_FillWithScalarFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_FillWithScalarFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_FillWithScalarFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_FromStrFunc.html b/numpy/npyffi/objects/type.PyArray_FromStrFunc.html index 1c693f025..a052de50e 100644 --- a/numpy/npyffi/objects/type.PyArray_FromStrFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FromStrFunc.html @@ -1,7 +1,7 @@ -PyArray_FromStrFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_FromStrFunc = Option<unsafe extern "C" fn(_: *mut c_char, _: *mut c_void, _: *mut *mut c_char, _: *mut PyArray_Descr) -> c_int>;

    Aliased Type§

    enum PyArray_FromStrFunc {
    +PyArray_FromStrFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_FromStrFunc = Option<unsafe extern "C" fn(_: *mut c_char, _: *mut c_void, _: *mut *mut c_char, _: *mut PyArray_Descr) -> c_int>;

    Aliased Type§

    enum PyArray_FromStrFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut i8, _: *mut c_void, _: *mut *mut i8, _: *mut PyArray_Descr) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut i8, _: *mut c_void, _: *mut *mut i8, _: *mut PyArray_Descr) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut i8, _: *mut c_void, _: *mut *mut i8, _: *mut PyArray_Descr) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut i8, _: *mut c_void, _: *mut *mut i8, _: *mut PyArray_Descr) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_GetItemFunc.html b/numpy/npyffi/objects/type.PyArray_GetItemFunc.html index bdc5a04f5..358933ba1 100644 --- a/numpy/npyffi/objects/type.PyArray_GetItemFunc.html +++ b/numpy/npyffi/objects/type.PyArray_GetItemFunc.html @@ -1,7 +1,7 @@ -PyArray_GetItemFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_GetItemFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> *mut PyObject>;

    Aliased Type§

    enum PyArray_GetItemFunc {
    +PyArray_GetItemFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_GetItemFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> *mut PyObject>;

    Aliased Type§

    enum PyArray_GetItemFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> *mut PyObject),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> *mut PyObject),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> *mut PyObject)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> *mut PyObject)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_NonzeroFunc.html b/numpy/npyffi/objects/type.PyArray_NonzeroFunc.html index b2f2f1b5e..d956e3ffe 100644 --- a/numpy/npyffi/objects/type.PyArray_NonzeroFunc.html +++ b/numpy/npyffi/objects/type.PyArray_NonzeroFunc.html @@ -1,7 +1,7 @@ -PyArray_NonzeroFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_NonzeroFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> c_uchar>;

    Aliased Type§

    enum PyArray_NonzeroFunc {
    +PyArray_NonzeroFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_NonzeroFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> c_uchar>;

    Aliased Type§

    enum PyArray_NonzeroFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> u8),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> u8),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> u8)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void) -> u8)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_PartitionFunc.html b/numpy/npyffi/objects/type.PyArray_PartitionFunc.html index 6bbf128d7..96531720a 100644 --- a/numpy/npyffi/objects/type.PyArray_PartitionFunc.html +++ b/numpy/npyffi/objects/type.PyArray_PartitionFunc.html @@ -1,7 +1,7 @@ -PyArray_PartitionFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_PartitionFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: npy_intp, _: *mut npy_intp, _: *mut npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_PartitionFunc {
    +PyArray_PartitionFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_PartitionFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: npy_intp, _: *mut npy_intp, _: *mut npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_PartitionFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: isize, _: *mut isize, _: *mut isize, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_ScalarKindFunc.html b/numpy/npyffi/objects/type.PyArray_ScalarKindFunc.html index daa7430f6..fe5f0603d 100644 --- a/numpy/npyffi/objects/type.PyArray_ScalarKindFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ScalarKindFunc.html @@ -1,7 +1,7 @@ -PyArray_ScalarKindFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_ScalarKindFunc = Option<unsafe extern "C" fn(_: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ScalarKindFunc {
    +PyArray_ScalarKindFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_ScalarKindFunc = Option<unsafe extern "C" fn(_: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_ScalarKindFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_ScanFunc.html b/numpy/npyffi/objects/type.PyArray_ScanFunc.html index 50fd3fed5..753ea6ea5 100644 --- a/numpy/npyffi/objects/type.PyArray_ScanFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ScanFunc.html @@ -1,7 +1,7 @@ -PyArray_ScanFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_ScanFunc = Option<unsafe extern "C" fn(_: *mut FILE, _: *mut c_void, _: *mut c_char, _: *mut PyArray_Descr) -> c_int>;

    Aliased Type§

    enum PyArray_ScanFunc {
    +PyArray_ScanFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_ScanFunc = Option<unsafe extern "C" fn(_: *mut FILE, _: *mut c_void, _: *mut c_char, _: *mut PyArray_Descr) -> c_int>;

    Aliased Type§

    enum PyArray_ScanFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut FILE, _: *mut c_void, _: *mut i8, _: *mut PyArray_Descr) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut FILE, _: *mut c_void, _: *mut i8, _: *mut PyArray_Descr) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut FILE, _: *mut c_void, _: *mut i8, _: *mut PyArray_Descr) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut FILE, _: *mut c_void, _: *mut i8, _: *mut PyArray_Descr) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_SetItemFunc.html b/numpy/npyffi/objects/type.PyArray_SetItemFunc.html index ecdcdc530..d9a1e8ffa 100644 --- a/numpy/npyffi/objects/type.PyArray_SetItemFunc.html +++ b/numpy/npyffi/objects/type.PyArray_SetItemFunc.html @@ -1,7 +1,7 @@ -PyArray_SetItemFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_SetItemFunc = Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_SetItemFunc {
    +PyArray_SetItemFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_SetItemFunc = Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_SetItemFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_SortFunc.html b/numpy/npyffi/objects/type.PyArray_SortFunc.html index 6428c52d0..3b62c8723 100644 --- a/numpy/npyffi/objects/type.PyArray_SortFunc.html +++ b/numpy/npyffi/objects/type.PyArray_SortFunc.html @@ -1,7 +1,7 @@ -PyArray_SortFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_SortFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_SortFunc {
    +PyArray_SortFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_SortFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: npy_intp, _: *mut c_void) -> c_int>;

    Aliased Type§

    enum PyArray_SortFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: isize, _: *mut c_void) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyArray_VectorUnaryFunc.html b/numpy/npyffi/objects/type.PyArray_VectorUnaryFunc.html index 06cf9a458..f64524e97 100644 --- a/numpy/npyffi/objects/type.PyArray_VectorUnaryFunc.html +++ b/numpy/npyffi/objects/type.PyArray_VectorUnaryFunc.html @@ -1,7 +1,7 @@ -PyArray_VectorUnaryFunc in numpy::npyffi::objects - Rust -
    pub type PyArray_VectorUnaryFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: npy_intp, _: *mut c_void, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_VectorUnaryFunc {
    +PyArray_VectorUnaryFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyArray_VectorUnaryFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: npy_intp, _: *mut c_void, _: *mut c_void)>;

    Aliased Type§

    enum PyArray_VectorUnaryFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void)),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize, _: *mut c_void, _: *mut c_void))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyDataMem_EventHookFunc.html b/numpy/npyffi/objects/type.PyDataMem_EventHookFunc.html index 99aa2834a..595c4fda5 100644 --- a/numpy/npyffi/objects/type.PyDataMem_EventHookFunc.html +++ b/numpy/npyffi/objects/type.PyDataMem_EventHookFunc.html @@ -1,7 +1,7 @@ -PyDataMem_EventHookFunc in numpy::npyffi::objects - Rust -
    pub type PyDataMem_EventHookFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: usize, _: *mut c_void)>;

    Aliased Type§

    enum PyDataMem_EventHookFunc {
    +PyDataMem_EventHookFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyDataMem_EventHookFunc = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: usize, _: *mut c_void)>;

    Aliased Type§

    enum PyDataMem_EventHookFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: usize, _: *mut c_void)),
    +    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: usize, _: *mut c_void)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: usize, _: *mut c_void))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: usize, _: *mut c_void))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyUFuncGenericFunction.html b/numpy/npyffi/objects/type.PyUFuncGenericFunction.html index 0fab43f16..6befaaff2 100644 --- a/numpy/npyffi/objects/type.PyUFuncGenericFunction.html +++ b/numpy/npyffi/objects/type.PyUFuncGenericFunction.html @@ -1,7 +1,7 @@ -PyUFuncGenericFunction in numpy::npyffi::objects - Rust -
    pub type PyUFuncGenericFunction = Option<unsafe extern "C" fn(_: *mut *mut c_char, _: *mut npy_intp, _: *mut npy_intp, _: *mut c_void)>;

    Aliased Type§

    enum PyUFuncGenericFunction {
    +PyUFuncGenericFunction in numpy::npyffi::objects - Rust
    +    
    pub type PyUFuncGenericFunction = Option<unsafe extern "C" fn(_: *mut *mut c_char, _: *mut npy_intp, _: *mut npy_intp, _: *mut c_void)>;

    Aliased Type§

    enum PyUFuncGenericFunction {
         None,
    -    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void)),
    +    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyUFunc_LegacyInnerLoopSelectionFunc.html b/numpy/npyffi/objects/type.PyUFunc_LegacyInnerLoopSelectionFunc.html index 19581081d..db2c57587 100644 --- a/numpy/npyffi/objects/type.PyUFunc_LegacyInnerLoopSelectionFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_LegacyInnerLoopSelectionFunc.html @@ -1,7 +1,7 @@ -PyUFunc_LegacyInnerLoopSelectionFunc in numpy::npyffi::objects - Rust -
    pub type PyUFunc_LegacyInnerLoopSelectionFunc = Option<unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyUFuncGenericFunction, _: *mut *mut c_void, _: *mut c_int) -> c_int>;

    Aliased Type§

    enum PyUFunc_LegacyInnerLoopSelectionFunc {
    +PyUFunc_LegacyInnerLoopSelectionFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyUFunc_LegacyInnerLoopSelectionFunc = Option<unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyUFuncGenericFunction, _: *mut *mut c_void, _: *mut c_int) -> c_int>;

    Aliased Type§

    enum PyUFunc_LegacyInnerLoopSelectionFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void)>, _: *mut *mut c_void, _: *mut i32) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void)>, _: *mut *mut c_void, _: *mut i32) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void)>, _: *mut *mut c_void, _: *mut i32) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut isize, _: *mut c_void)>, _: *mut *mut c_void, _: *mut i32) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyUFunc_MaskedInnerLoopSelectionFunc.html b/numpy/npyffi/objects/type.PyUFunc_MaskedInnerLoopSelectionFunc.html index bdced4e6d..c087928df 100644 --- a/numpy/npyffi/objects/type.PyUFunc_MaskedInnerLoopSelectionFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_MaskedInnerLoopSelectionFunc.html @@ -1,7 +1,7 @@ -PyUFunc_MaskedInnerLoopSelectionFunc in numpy::npyffi::objects - Rust -
    pub type PyUFunc_MaskedInnerLoopSelectionFunc = Option<unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyArray_Descr, _: *mut npy_intp, _: npy_intp, _: *mut PyUFunc_MaskedStridedInnerLoopFunc, _: *mut *mut NpyAuxData, _: *mut c_int) -> c_int>;

    Aliased Type§

    enum PyUFunc_MaskedInnerLoopSelectionFunc {
    +PyUFunc_MaskedInnerLoopSelectionFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyUFunc_MaskedInnerLoopSelectionFunc = Option<unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyArray_Descr, _: *mut npy_intp, _: npy_intp, _: *mut PyUFunc_MaskedStridedInnerLoopFunc, _: *mut *mut NpyAuxData, _: *mut c_int) -> c_int>;

    Aliased Type§

    enum PyUFunc_MaskedInnerLoopSelectionFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyArray_Descr, _: *mut isize, _: isize, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData)>, _: *mut *mut NpyAuxData, _: *mut i32) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyArray_Descr, _: *mut isize, _: isize, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData)>, _: *mut *mut NpyAuxData, _: *mut i32) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyArray_Descr, _: *mut isize, _: isize, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData)>, _: *mut *mut NpyAuxData, _: *mut i32) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: *mut *mut PyArray_Descr, _: *mut PyArray_Descr, _: *mut isize, _: isize, _: *mut Option<unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData)>, _: *mut *mut NpyAuxData, _: *mut i32) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyUFunc_MaskedStridedInnerLoopFunc.html b/numpy/npyffi/objects/type.PyUFunc_MaskedStridedInnerLoopFunc.html index c506541c2..44771db04 100644 --- a/numpy/npyffi/objects/type.PyUFunc_MaskedStridedInnerLoopFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_MaskedStridedInnerLoopFunc.html @@ -1,7 +1,7 @@ -PyUFunc_MaskedStridedInnerLoopFunc in numpy::npyffi::objects - Rust -
    pub type PyUFunc_MaskedStridedInnerLoopFunc = Option<unsafe extern "C" fn(_: *mut *mut c_char, _: *mut npy_intp, _: *mut c_char, _: npy_intp, _: npy_intp, _: *mut NpyAuxData)>;

    Aliased Type§

    enum PyUFunc_MaskedStridedInnerLoopFunc {
    +PyUFunc_MaskedStridedInnerLoopFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyUFunc_MaskedStridedInnerLoopFunc = Option<unsafe extern "C" fn(_: *mut *mut c_char, _: *mut npy_intp, _: *mut c_char, _: npy_intp, _: npy_intp, _: *mut NpyAuxData)>;

    Aliased Type§

    enum PyUFunc_MaskedStridedInnerLoopFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData)),
    +    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData)),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData))

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut *mut i8, _: *mut isize, _: *mut i8, _: isize, _: isize, _: *mut NpyAuxData))

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.PyUFunc_TypeResolutionFunc.html b/numpy/npyffi/objects/type.PyUFunc_TypeResolutionFunc.html index c4f9fa98c..89cf893fd 100644 --- a/numpy/npyffi/objects/type.PyUFunc_TypeResolutionFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_TypeResolutionFunc.html @@ -1,7 +1,7 @@ -PyUFunc_TypeResolutionFunc in numpy::npyffi::objects - Rust -
    pub type PyUFunc_TypeResolutionFunc = Option<unsafe extern "C" fn(_: *mut PyUFuncObject, _: NPY_CASTING, _: *mut *mut PyArrayObject, _: *mut PyObject, _: *mut *mut PyArray_Descr) -> c_int>;

    Aliased Type§

    enum PyUFunc_TypeResolutionFunc {
    +PyUFunc_TypeResolutionFunc in numpy::npyffi::objects - Rust
    +    
    pub type PyUFunc_TypeResolutionFunc = Option<unsafe extern "C" fn(_: *mut PyUFuncObject, _: NPY_CASTING, _: *mut *mut PyArrayObject, _: *mut PyObject, _: *mut *mut PyArray_Descr) -> c_int>;

    Aliased Type§

    enum PyUFunc_TypeResolutionFunc {
         None,
    -    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: NPY_CASTING, _: *mut *mut PyArrayObject, _: *mut PyObject, _: *mut *mut PyArray_Descr) -> i32),
    +    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: NPY_CASTING, _: *mut *mut PyArrayObject, _: *mut PyObject, _: *mut *mut PyArray_Descr) -> i32),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: NPY_CASTING, _: *mut *mut PyArrayObject, _: *mut PyObject, _: *mut *mut PyArray_Descr) -> i32)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyUFuncObject, _: NPY_CASTING, _: *mut *mut PyArrayObject, _: *mut PyObject, _: *mut *mut PyArray_Descr) -> i32)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.npy_iter_get_dataptr_t.html b/numpy/npyffi/objects/type.npy_iter_get_dataptr_t.html index afdf3ffb7..aaf5d7c62 100644 --- a/numpy/npyffi/objects/type.npy_iter_get_dataptr_t.html +++ b/numpy/npyffi/objects/type.npy_iter_get_dataptr_t.html @@ -1,7 +1,7 @@ -npy_iter_get_dataptr_t in numpy::npyffi::objects - Rust -
    pub type npy_iter_get_dataptr_t = Option<unsafe extern "C" fn(_: *mut PyArrayIterObject, _: *mut npy_intp) -> *mut c_char>;

    Aliased Type§

    enum npy_iter_get_dataptr_t {
    +npy_iter_get_dataptr_t in numpy::npyffi::objects - Rust
    +    
    pub type npy_iter_get_dataptr_t = Option<unsafe extern "C" fn(_: *mut PyArrayIterObject, _: *mut npy_intp) -> *mut c_char>;

    Aliased Type§

    enum npy_iter_get_dataptr_t {
         None,
    -    Some(unsafe extern "C" fn(_: *mut PyArrayIterObject, _: *mut isize) -> *mut i8),
    +    Some(unsafe extern "C" fn(_: *mut PyArrayIterObject, _: *mut isize) -> *mut i8),
     }

    Variants§

    §1.0.0

    None

    No value.

    -
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyArrayIterObject, _: *mut isize) -> *mut i8)

    Some value of type T.

    +
    §1.0.0

    Some(unsafe extern "C" fn(_: *mut PyArrayIterObject, _: *mut isize) -> *mut i8)

    Some value of type T.

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_BYTEORDER_CHAR.html b/numpy/npyffi/types/enum.NPY_BYTEORDER_CHAR.html index d7bec0e5e..31c458cc7 100644 --- a/numpy/npyffi/types/enum.NPY_BYTEORDER_CHAR.html +++ b/numpy/npyffi/types/enum.NPY_BYTEORDER_CHAR.html @@ -1,27 +1,27 @@ -NPY_BYTEORDER_CHAR in numpy::npyffi::types - Rust +NPY_BYTEORDER_CHAR in numpy::npyffi::types - Rust
    #[repr(u8)]
    pub enum NPY_BYTEORDER_CHAR { NPY_LITTLE = 60, NPY_BIG = 62, NPY_NATIVE = 61, NPY_SWAP = 115, NPY_IGNORE = 124, -}

    Variants§

    §

    NPY_LITTLE = 60

    §

    NPY_BIG = 62

    §

    NPY_NATIVE = 61

    §

    NPY_SWAP = 115

    §

    NPY_IGNORE = 124

    Implementations§

    source§

    impl NPY_BYTEORDER_CHAR

    source

    pub const NPY_NATBYTE: Self = Self::NPY_LITTLE

    source

    pub const NPY_OPPBYTE: Self = Self::NPY_BIG

    Trait Implementations§

    source§

    impl Clone for NPY_BYTEORDER_CHAR

    source§

    fn clone(&self) -> NPY_BYTEORDER_CHAR

    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 Debug for NPY_BYTEORDER_CHAR

    source§

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

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

    impl Hash for NPY_BYTEORDER_CHAR

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_BYTEORDER_CHAR

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_BYTEORDER_CHAR

    source§

    impl Eq for NPY_BYTEORDER_CHAR

    source§

    impl StructuralEq for NPY_BYTEORDER_CHAR

    source§

    impl StructuralPartialEq for NPY_BYTEORDER_CHAR

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_LITTLE = 60

    §

    NPY_BIG = 62

    §

    NPY_NATIVE = 61

    §

    NPY_SWAP = 115

    §

    NPY_IGNORE = 124

    Implementations§

    source§

    impl NPY_BYTEORDER_CHAR

    source

    pub const NPY_NATBYTE: Self = Self::NPY_LITTLE

    source

    pub const NPY_OPPBYTE: Self = Self::NPY_BIG

    Trait Implementations§

    source§

    impl Clone for NPY_BYTEORDER_CHAR

    source§

    fn clone(&self) -> NPY_BYTEORDER_CHAR

    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 Debug for NPY_BYTEORDER_CHAR

    source§

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

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

    impl Hash for NPY_BYTEORDER_CHAR

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_BYTEORDER_CHAR

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_BYTEORDER_CHAR

    source§

    impl Eq for NPY_BYTEORDER_CHAR

    source§

    impl StructuralPartialEq for NPY_BYTEORDER_CHAR

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_CASTING.html b/numpy/npyffi/types/enum.NPY_CASTING.html index 72e8145e5..b53e84f60 100644 --- a/numpy/npyffi/types/enum.NPY_CASTING.html +++ b/numpy/npyffi/types/enum.NPY_CASTING.html @@ -1,27 +1,27 @@ -NPY_CASTING in numpy::npyffi::types - Rust +NPY_CASTING in numpy::npyffi::types - Rust
    #[repr(u32)]
    pub enum NPY_CASTING { NPY_NO_CASTING = 0, NPY_EQUIV_CASTING = 1, NPY_SAFE_CASTING = 2, NPY_SAME_KIND_CASTING = 3, NPY_UNSAFE_CASTING = 4, -}

    Variants§

    §

    NPY_NO_CASTING = 0

    §

    NPY_EQUIV_CASTING = 1

    §

    NPY_SAFE_CASTING = 2

    §

    NPY_SAME_KIND_CASTING = 3

    §

    NPY_UNSAFE_CASTING = 4

    Trait Implementations§

    source§

    impl Clone for NPY_CASTING

    source§

    fn clone(&self) -> NPY_CASTING

    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 Debug for NPY_CASTING

    source§

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

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

    impl Hash for NPY_CASTING

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_CASTING

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_CASTING

    source§

    impl Eq for NPY_CASTING

    source§

    impl StructuralEq for NPY_CASTING

    source§

    impl StructuralPartialEq for NPY_CASTING

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_NO_CASTING = 0

    §

    NPY_EQUIV_CASTING = 1

    §

    NPY_SAFE_CASTING = 2

    §

    NPY_SAME_KIND_CASTING = 3

    §

    NPY_UNSAFE_CASTING = 4

    Trait Implementations§

    source§

    impl Clone for NPY_CASTING

    source§

    fn clone(&self) -> NPY_CASTING

    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 Debug for NPY_CASTING

    source§

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

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

    impl Hash for NPY_CASTING

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_CASTING

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_CASTING

    source§

    impl Eq for NPY_CASTING

    source§

    impl StructuralPartialEq for NPY_CASTING

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_CLIPMODE.html b/numpy/npyffi/types/enum.NPY_CLIPMODE.html index 55a75908b..e6fd002fe 100644 --- a/numpy/npyffi/types/enum.NPY_CLIPMODE.html +++ b/numpy/npyffi/types/enum.NPY_CLIPMODE.html @@ -1,24 +1,24 @@ -NPY_CLIPMODE in numpy::npyffi::types - Rust +NPY_CLIPMODE in numpy::npyffi::types - Rust
    #[repr(u32)]
    pub enum NPY_CLIPMODE { NPY_CLIP = 0, NPY_WRAP = 1, NPY_RAISE = 2, -}

    Variants§

    §

    NPY_CLIP = 0

    §

    NPY_WRAP = 1

    §

    NPY_RAISE = 2

    Trait Implementations§

    source§

    impl Clone for NPY_CLIPMODE

    source§

    fn clone(&self) -> NPY_CLIPMODE

    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 Hash for NPY_CLIPMODE

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_CLIPMODE

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_CLIPMODE

    source§

    impl Eq for NPY_CLIPMODE

    source§

    impl StructuralEq for NPY_CLIPMODE

    source§

    impl StructuralPartialEq for NPY_CLIPMODE

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_CLIP = 0

    §

    NPY_WRAP = 1

    §

    NPY_RAISE = 2

    Trait Implementations§

    source§

    impl Clone for NPY_CLIPMODE

    source§

    fn clone(&self) -> NPY_CLIPMODE

    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 Hash for NPY_CLIPMODE

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_CLIPMODE

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_CLIPMODE

    source§

    impl Eq for NPY_CLIPMODE

    source§

    impl StructuralPartialEq for NPY_CLIPMODE

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_DATETIMEUNIT.html b/numpy/npyffi/types/enum.NPY_DATETIMEUNIT.html index 116e92b55..1b16cc9a4 100644 --- a/numpy/npyffi/types/enum.NPY_DATETIMEUNIT.html +++ b/numpy/npyffi/types/enum.NPY_DATETIMEUNIT.html @@ -1,4 +1,4 @@ -NPY_DATETIMEUNIT in numpy::npyffi::types - Rust +NPY_DATETIMEUNIT in numpy::npyffi::types - Rust
    #[repr(u32)]
    pub enum NPY_DATETIMEUNIT {
    Show 14 variants NPY_FR_Y = 0, NPY_FR_M = 1, @@ -14,23 +14,23 @@ NPY_FR_fs = 12, NPY_FR_as = 13, NPY_FR_GENERIC = 14, -
    }

    Variants§

    §

    NPY_FR_Y = 0

    §

    NPY_FR_M = 1

    §

    NPY_FR_W = 2

    §

    NPY_FR_D = 4

    §

    NPY_FR_h = 5

    §

    NPY_FR_m = 6

    §

    NPY_FR_s = 7

    §

    NPY_FR_ms = 8

    §

    NPY_FR_us = 9

    §

    NPY_FR_ns = 10

    §

    NPY_FR_ps = 11

    §

    NPY_FR_fs = 12

    §

    NPY_FR_as = 13

    §

    NPY_FR_GENERIC = 14

    Trait Implementations§

    source§

    impl Clone for NPY_DATETIMEUNIT

    source§

    fn clone(&self) -> NPY_DATETIMEUNIT

    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 Debug for NPY_DATETIMEUNIT

    source§

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

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

    impl Hash for NPY_DATETIMEUNIT

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_DATETIMEUNIT

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_DATETIMEUNIT

    source§

    impl Eq for NPY_DATETIMEUNIT

    source§

    impl StructuralEq for NPY_DATETIMEUNIT

    source§

    impl StructuralPartialEq for NPY_DATETIMEUNIT

    Auto Trait Implementations§

    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> 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).

    +
    }

    Variants§

    §

    NPY_FR_Y = 0

    §

    NPY_FR_M = 1

    §

    NPY_FR_W = 2

    §

    NPY_FR_D = 4

    §

    NPY_FR_h = 5

    §

    NPY_FR_m = 6

    §

    NPY_FR_s = 7

    §

    NPY_FR_ms = 8

    §

    NPY_FR_us = 9

    §

    NPY_FR_ns = 10

    §

    NPY_FR_ps = 11

    §

    NPY_FR_fs = 12

    §

    NPY_FR_as = 13

    §

    NPY_FR_GENERIC = 14

    Trait Implementations§

    source§

    impl Clone for NPY_DATETIMEUNIT

    source§

    fn clone(&self) -> NPY_DATETIMEUNIT

    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 Debug for NPY_DATETIMEUNIT

    source§

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

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

    impl Hash for NPY_DATETIMEUNIT

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_DATETIMEUNIT

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_DATETIMEUNIT

    source§

    impl Eq for NPY_DATETIMEUNIT

    source§

    impl StructuralPartialEq for NPY_DATETIMEUNIT

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_ORDER.html b/numpy/npyffi/types/enum.NPY_ORDER.html index f68cd38b2..5e6d70740 100644 --- a/numpy/npyffi/types/enum.NPY_ORDER.html +++ b/numpy/npyffi/types/enum.NPY_ORDER.html @@ -1,26 +1,26 @@ -NPY_ORDER in numpy::npyffi::types - Rust +NPY_ORDER in numpy::npyffi::types - Rust
    #[repr(i32)]
    pub enum NPY_ORDER { NPY_ANYORDER = -1, NPY_CORDER = 0, NPY_FORTRANORDER = 1, NPY_KEEPORDER = 2, -}

    Variants§

    §

    NPY_ANYORDER = -1

    §

    NPY_CORDER = 0

    §

    NPY_FORTRANORDER = 1

    §

    NPY_KEEPORDER = 2

    Trait Implementations§

    source§

    impl Clone for NPY_ORDER

    source§

    fn clone(&self) -> NPY_ORDER

    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 Debug for NPY_ORDER

    source§

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

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

    impl Hash for NPY_ORDER

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_ORDER

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_ORDER

    source§

    impl Eq for NPY_ORDER

    source§

    impl StructuralEq for NPY_ORDER

    source§

    impl StructuralPartialEq for NPY_ORDER

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_ANYORDER = -1

    §

    NPY_CORDER = 0

    §

    NPY_FORTRANORDER = 1

    §

    NPY_KEEPORDER = 2

    Trait Implementations§

    source§

    impl Clone for NPY_ORDER

    source§

    fn clone(&self) -> NPY_ORDER

    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 Debug for NPY_ORDER

    source§

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

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

    impl Hash for NPY_ORDER

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_ORDER

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_ORDER

    source§

    impl Eq for NPY_ORDER

    source§

    impl StructuralPartialEq for NPY_ORDER

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_SCALARKIND.html b/numpy/npyffi/types/enum.NPY_SCALARKIND.html index 27aa906fb..1f7cbb908 100644 --- a/numpy/npyffi/types/enum.NPY_SCALARKIND.html +++ b/numpy/npyffi/types/enum.NPY_SCALARKIND.html @@ -1,4 +1,4 @@ -NPY_SCALARKIND in numpy::npyffi::types - Rust +NPY_SCALARKIND in numpy::npyffi::types - Rust
    #[repr(i32)]
    pub enum NPY_SCALARKIND { NPY_NOSCALAR = -1, NPY_BOOL_SCALAR = 0, @@ -7,23 +7,23 @@ NPY_FLOAT_SCALAR = 3, NPY_COMPLEX_SCALAR = 4, NPY_OBJECT_SCALAR = 5, -}

    Variants§

    §

    NPY_NOSCALAR = -1

    §

    NPY_BOOL_SCALAR = 0

    §

    NPY_INTPOS_SCALAR = 1

    §

    NPY_INTNEG_SCALAR = 2

    §

    NPY_FLOAT_SCALAR = 3

    §

    NPY_COMPLEX_SCALAR = 4

    §

    NPY_OBJECT_SCALAR = 5

    Trait Implementations§

    source§

    impl Clone for NPY_SCALARKIND

    source§

    fn clone(&self) -> NPY_SCALARKIND

    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 Debug for NPY_SCALARKIND

    source§

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

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

    impl Hash for NPY_SCALARKIND

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SCALARKIND

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SCALARKIND

    source§

    impl Eq for NPY_SCALARKIND

    source§

    impl StructuralEq for NPY_SCALARKIND

    source§

    impl StructuralPartialEq for NPY_SCALARKIND

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_NOSCALAR = -1

    §

    NPY_BOOL_SCALAR = 0

    §

    NPY_INTPOS_SCALAR = 1

    §

    NPY_INTNEG_SCALAR = 2

    §

    NPY_FLOAT_SCALAR = 3

    §

    NPY_COMPLEX_SCALAR = 4

    §

    NPY_OBJECT_SCALAR = 5

    Trait Implementations§

    source§

    impl Clone for NPY_SCALARKIND

    source§

    fn clone(&self) -> NPY_SCALARKIND

    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 Debug for NPY_SCALARKIND

    source§

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

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

    impl Hash for NPY_SCALARKIND

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SCALARKIND

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SCALARKIND

    source§

    impl Eq for NPY_SCALARKIND

    source§

    impl StructuralPartialEq for NPY_SCALARKIND

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_SEARCHSIDE.html b/numpy/npyffi/types/enum.NPY_SEARCHSIDE.html index e7dafa3ed..70549e8d7 100644 --- a/numpy/npyffi/types/enum.NPY_SEARCHSIDE.html +++ b/numpy/npyffi/types/enum.NPY_SEARCHSIDE.html @@ -1,24 +1,24 @@ -NPY_SEARCHSIDE in numpy::npyffi::types - Rust +NPY_SEARCHSIDE in numpy::npyffi::types - Rust
    #[repr(u32)]
    pub enum NPY_SEARCHSIDE { NPY_SEARCHLEFT = 0, NPY_SEARCHRIGHT = 1, -}

    Variants§

    §

    NPY_SEARCHLEFT = 0

    §

    NPY_SEARCHRIGHT = 1

    Trait Implementations§

    source§

    impl Clone for NPY_SEARCHSIDE

    source§

    fn clone(&self) -> NPY_SEARCHSIDE

    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 Debug for NPY_SEARCHSIDE

    source§

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

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

    impl Hash for NPY_SEARCHSIDE

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SEARCHSIDE

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SEARCHSIDE

    source§

    impl Eq for NPY_SEARCHSIDE

    source§

    impl StructuralEq for NPY_SEARCHSIDE

    source§

    impl StructuralPartialEq for NPY_SEARCHSIDE

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_SEARCHLEFT = 0

    §

    NPY_SEARCHRIGHT = 1

    Trait Implementations§

    source§

    impl Clone for NPY_SEARCHSIDE

    source§

    fn clone(&self) -> NPY_SEARCHSIDE

    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 Debug for NPY_SEARCHSIDE

    source§

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

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

    impl Hash for NPY_SEARCHSIDE

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SEARCHSIDE

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SEARCHSIDE

    source§

    impl Eq for NPY_SEARCHSIDE

    source§

    impl StructuralPartialEq for NPY_SEARCHSIDE

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_SELECTKIND.html b/numpy/npyffi/types/enum.NPY_SELECTKIND.html index 03f43d593..53688f481 100644 --- a/numpy/npyffi/types/enum.NPY_SELECTKIND.html +++ b/numpy/npyffi/types/enum.NPY_SELECTKIND.html @@ -1,23 +1,23 @@ -NPY_SELECTKIND in numpy::npyffi::types - Rust +NPY_SELECTKIND in numpy::npyffi::types - Rust
    #[repr(u32)]
    pub enum NPY_SELECTKIND { NPY_INTROSELECT = 0, -}

    Variants§

    §

    NPY_INTROSELECT = 0

    Trait Implementations§

    source§

    impl Clone for NPY_SELECTKIND

    source§

    fn clone(&self) -> NPY_SELECTKIND

    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 Debug for NPY_SELECTKIND

    source§

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

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

    impl Hash for NPY_SELECTKIND

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SELECTKIND

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SELECTKIND

    source§

    impl Eq for NPY_SELECTKIND

    source§

    impl StructuralEq for NPY_SELECTKIND

    source§

    impl StructuralPartialEq for NPY_SELECTKIND

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_INTROSELECT = 0

    Trait Implementations§

    source§

    impl Clone for NPY_SELECTKIND

    source§

    fn clone(&self) -> NPY_SELECTKIND

    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 Debug for NPY_SELECTKIND

    source§

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

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

    impl Hash for NPY_SELECTKIND

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SELECTKIND

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SELECTKIND

    source§

    impl Eq for NPY_SELECTKIND

    source§

    impl StructuralPartialEq for NPY_SELECTKIND

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_SORTKIND.html b/numpy/npyffi/types/enum.NPY_SORTKIND.html index f45b5ae16..feaa7de27 100644 --- a/numpy/npyffi/types/enum.NPY_SORTKIND.html +++ b/numpy/npyffi/types/enum.NPY_SORTKIND.html @@ -1,25 +1,25 @@ -NPY_SORTKIND in numpy::npyffi::types - Rust +NPY_SORTKIND in numpy::npyffi::types - Rust
    #[repr(u32)]
    pub enum NPY_SORTKIND { NPY_QUICKSORT = 0, NPY_HEAPSORT = 1, NPY_MERGESORT = 2, -}

    Variants§

    §

    NPY_QUICKSORT = 0

    §

    NPY_HEAPSORT = 1

    §

    NPY_MERGESORT = 2

    Trait Implementations§

    source§

    impl Clone for NPY_SORTKIND

    source§

    fn clone(&self) -> NPY_SORTKIND

    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 Debug for NPY_SORTKIND

    source§

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

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

    impl Hash for NPY_SORTKIND

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SORTKIND

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SORTKIND

    source§

    impl Eq for NPY_SORTKIND

    source§

    impl StructuralEq for NPY_SORTKIND

    source§

    impl StructuralPartialEq for NPY_SORTKIND

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_QUICKSORT = 0

    §

    NPY_HEAPSORT = 1

    §

    NPY_MERGESORT = 2

    Trait Implementations§

    source§

    impl Clone for NPY_SORTKIND

    source§

    fn clone(&self) -> NPY_SORTKIND

    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 Debug for NPY_SORTKIND

    source§

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

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

    impl Hash for NPY_SORTKIND

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for NPY_SORTKIND

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NPY_SORTKIND

    source§

    impl Eq for NPY_SORTKIND

    source§

    impl StructuralPartialEq for NPY_SORTKIND

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_TYPECHAR.html b/numpy/npyffi/types/enum.NPY_TYPECHAR.html index b1a00383b..f1fa71922 100644 --- a/numpy/npyffi/types/enum.NPY_TYPECHAR.html +++ b/numpy/npyffi/types/enum.NPY_TYPECHAR.html @@ -1,4 +1,4 @@ -NPY_TYPECHAR in numpy::npyffi::types - Rust +NPY_TYPECHAR in numpy::npyffi::types - Rust
    #[repr(u8)]
    pub enum NPY_TYPECHAR {
    Show 28 variants NPY_BOOLLTR = 63, NPY_BYTELTR = 98, @@ -28,18 +28,18 @@ NPY_CHARLTR = 99, NPY_INTPLTR = 112, NPY_UINTPLTR = 80, -
    }

    Variants§

    §

    NPY_BOOLLTR = 63

    §

    NPY_BYTELTR = 98

    §

    NPY_UBYTELTR = 66

    §

    NPY_SHORTLTR = 104

    §

    NPY_USHORTLTR = 72

    §

    NPY_INTLTR = 105

    §

    NPY_UINTLTR = 73

    §

    NPY_LONGLTR = 108

    §

    NPY_ULONGLTR = 76

    §

    NPY_LONGLONGLTR = 113

    §

    NPY_ULONGLONGLTR = 81

    §

    NPY_HALFLTR = 101

    §

    NPY_FLOATLTR = 102

    §

    NPY_DOUBLELTR = 100

    §

    NPY_LONGDOUBLELTR = 103

    §

    NPY_CFLOATLTR = 70

    §

    NPY_CDOUBLELTR = 68

    §

    NPY_CLONGDOUBLELTR = 71

    §

    NPY_OBJECTLTR = 79

    §

    NPY_STRINGLTR = 83

    §

    NPY_STRINGLTR2 = 97

    §

    NPY_UNICODELTR = 85

    §

    NPY_VOIDLTR = 86

    §

    NPY_DATETIMELTR = 77

    §

    NPY_TIMEDELTALTR = 109

    §

    NPY_CHARLTR = 99

    §

    NPY_INTPLTR = 112

    §

    NPY_UINTPLTR = 80

    Trait Implementations§

    source§

    impl Clone for NPY_TYPECHAR

    source§

    fn clone(&self) -> NPY_TYPECHAR

    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 Debug for NPY_TYPECHAR

    source§

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

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

    impl Copy for NPY_TYPECHAR

    Auto Trait Implementations§

    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> 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).

    +
    }

    Variants§

    §

    NPY_BOOLLTR = 63

    §

    NPY_BYTELTR = 98

    §

    NPY_UBYTELTR = 66

    §

    NPY_SHORTLTR = 104

    §

    NPY_USHORTLTR = 72

    §

    NPY_INTLTR = 105

    §

    NPY_UINTLTR = 73

    §

    NPY_LONGLTR = 108

    §

    NPY_ULONGLTR = 76

    §

    NPY_LONGLONGLTR = 113

    §

    NPY_ULONGLONGLTR = 81

    §

    NPY_HALFLTR = 101

    §

    NPY_FLOATLTR = 102

    §

    NPY_DOUBLELTR = 100

    §

    NPY_LONGDOUBLELTR = 103

    §

    NPY_CFLOATLTR = 70

    §

    NPY_CDOUBLELTR = 68

    §

    NPY_CLONGDOUBLELTR = 71

    §

    NPY_OBJECTLTR = 79

    §

    NPY_STRINGLTR = 83

    §

    NPY_STRINGLTR2 = 97

    §

    NPY_UNICODELTR = 85

    §

    NPY_VOIDLTR = 86

    §

    NPY_DATETIMELTR = 77

    §

    NPY_TIMEDELTALTR = 109

    §

    NPY_CHARLTR = 99

    §

    NPY_INTPLTR = 112

    §

    NPY_UINTPLTR = 80

    Trait Implementations§

    source§

    impl Clone for NPY_TYPECHAR

    source§

    fn clone(&self) -> NPY_TYPECHAR

    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 Debug for NPY_TYPECHAR

    source§

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

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

    impl Copy for NPY_TYPECHAR

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_TYPEKINDCHAR.html b/numpy/npyffi/types/enum.NPY_TYPEKINDCHAR.html index fe3293853..a68222c77 100644 --- a/numpy/npyffi/types/enum.NPY_TYPEKINDCHAR.html +++ b/numpy/npyffi/types/enum.NPY_TYPEKINDCHAR.html @@ -1,22 +1,22 @@ -NPY_TYPEKINDCHAR in numpy::npyffi::types - Rust +NPY_TYPEKINDCHAR in numpy::npyffi::types - Rust
    #[repr(u8)]
    pub enum NPY_TYPEKINDCHAR { NPY_GENBOOLLTR = 98, NPY_SIGNEDLTR = 105, NPY_UNSIGNEDLTR = 117, NPY_FLOATINGLTR = 102, NPY_COMPLEXLTR = 99, -}

    Variants§

    §

    NPY_GENBOOLLTR = 98

    §

    NPY_SIGNEDLTR = 105

    §

    NPY_UNSIGNEDLTR = 117

    §

    NPY_FLOATINGLTR = 102

    §

    NPY_COMPLEXLTR = 99

    Trait Implementations§

    source§

    impl Clone for NPY_TYPEKINDCHAR

    source§

    fn clone(&self) -> NPY_TYPEKINDCHAR

    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 Debug for NPY_TYPEKINDCHAR

    source§

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

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

    impl Copy for NPY_TYPEKINDCHAR

    Auto Trait Implementations§

    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> 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).

    +}

    Variants§

    §

    NPY_GENBOOLLTR = 98

    §

    NPY_SIGNEDLTR = 105

    §

    NPY_UNSIGNEDLTR = 117

    §

    NPY_FLOATINGLTR = 102

    §

    NPY_COMPLEXLTR = 99

    Trait Implementations§

    source§

    impl Clone for NPY_TYPEKINDCHAR

    source§

    fn clone(&self) -> NPY_TYPEKINDCHAR

    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 Debug for NPY_TYPEKINDCHAR

    source§

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

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

    impl Copy for NPY_TYPEKINDCHAR

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_TYPES.html b/numpy/npyffi/types/enum.NPY_TYPES.html index 9f89f42cc..bcde9897a 100644 --- a/numpy/npyffi/types/enum.NPY_TYPES.html +++ b/numpy/npyffi/types/enum.NPY_TYPES.html @@ -1,4 +1,4 @@ -NPY_TYPES in numpy::npyffi::types - Rust +NPY_TYPES in numpy::npyffi::types - Rust
    #[repr(u32)]
    pub enum NPY_TYPES {
    Show 28 variants NPY_BOOL = 0, NPY_BYTE = 1, @@ -28,28 +28,28 @@ NPY_NOTYPE = 25, NPY_CHAR = 26, NPY_USERDEF = 256, -
    }

    Variants§

    §

    NPY_BOOL = 0

    §

    NPY_BYTE = 1

    §

    NPY_UBYTE = 2

    §

    NPY_SHORT = 3

    §

    NPY_USHORT = 4

    §

    NPY_INT = 5

    §

    NPY_UINT = 6

    §

    NPY_LONG = 7

    §

    NPY_ULONG = 8

    §

    NPY_LONGLONG = 9

    §

    NPY_ULONGLONG = 10

    §

    NPY_FLOAT = 11

    §

    NPY_DOUBLE = 12

    §

    NPY_LONGDOUBLE = 13

    §

    NPY_CFLOAT = 14

    §

    NPY_CDOUBLE = 15

    §

    NPY_CLONGDOUBLE = 16

    §

    NPY_OBJECT = 17

    §

    NPY_STRING = 18

    §

    NPY_UNICODE = 19

    §

    NPY_VOID = 20

    §

    NPY_DATETIME = 21

    §

    NPY_TIMEDELTA = 22

    §

    NPY_HALF = 23

    §

    NPY_NTYPES = 24

    §

    NPY_NOTYPE = 25

    §

    NPY_CHAR = 26

    §

    NPY_USERDEF = 256

    Trait Implementations§

    source§

    impl Clone for NPY_TYPES

    source§

    fn clone(&self) -> NPY_TYPES

    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 Debug for NPY_TYPES

    source§

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

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

    impl Hash for NPY_TYPES

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for NPY_TYPES

    source§

    fn cmp(&self, other: &NPY_TYPES) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for NPY_TYPES

    source§

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

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for NPY_TYPES

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Copy for NPY_TYPES

    source§

    impl Eq for NPY_TYPES

    source§

    impl StructuralEq for NPY_TYPES

    source§

    impl StructuralPartialEq for NPY_TYPES

    Auto Trait Implementations§

    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> 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).

    +
    }

    Variants§

    §

    NPY_BOOL = 0

    §

    NPY_BYTE = 1

    §

    NPY_UBYTE = 2

    §

    NPY_SHORT = 3

    §

    NPY_USHORT = 4

    §

    NPY_INT = 5

    §

    NPY_UINT = 6

    §

    NPY_LONG = 7

    §

    NPY_ULONG = 8

    §

    NPY_LONGLONG = 9

    §

    NPY_ULONGLONG = 10

    §

    NPY_FLOAT = 11

    §

    NPY_DOUBLE = 12

    §

    NPY_LONGDOUBLE = 13

    §

    NPY_CFLOAT = 14

    §

    NPY_CDOUBLE = 15

    §

    NPY_CLONGDOUBLE = 16

    §

    NPY_OBJECT = 17

    §

    NPY_STRING = 18

    §

    NPY_UNICODE = 19

    §

    NPY_VOID = 20

    §

    NPY_DATETIME = 21

    §

    NPY_TIMEDELTA = 22

    §

    NPY_HALF = 23

    §

    NPY_NTYPES = 24

    §

    NPY_NOTYPE = 25

    §

    NPY_CHAR = 26

    §

    NPY_USERDEF = 256

    Trait Implementations§

    source§

    impl Clone for NPY_TYPES

    source§

    fn clone(&self) -> NPY_TYPES

    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 Debug for NPY_TYPES

    source§

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

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

    impl Hash for NPY_TYPES

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for NPY_TYPES

    source§

    fn cmp(&self, other: &NPY_TYPES) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for NPY_TYPES

    source§

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

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for NPY_TYPES

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl Copy for NPY_TYPES

    source§

    impl Eq for NPY_TYPES

    source§

    impl StructuralPartialEq for NPY_TYPES

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/index.html b/numpy/npyffi/types/index.html index e99c518d7..3e233970b 100644 --- a/numpy/npyffi/types/index.html +++ b/numpy/npyffi/types/index.html @@ -1,2 +1,2 @@ -numpy::npyffi::types - Rust -
    \ No newline at end of file +numpy::npyffi::types - Rust +
    \ No newline at end of file diff --git a/numpy/npyffi/types/struct.npy_cdouble.html b/numpy/npyffi/types/struct.npy_cdouble.html index 1e23508ac..16429ce8e 100644 --- a/numpy/npyffi/types/struct.npy_cdouble.html +++ b/numpy/npyffi/types/struct.npy_cdouble.html @@ -1,19 +1,19 @@ -npy_cdouble in numpy::npyffi::types - Rust +npy_cdouble in numpy::npyffi::types - Rust

    Struct numpy::npyffi::types::npy_cdouble

    source ·
    #[repr(C)]
    pub struct npy_cdouble { - pub real: f64, - pub imag: f64, -}

    Fields§

    §real: f64§imag: f64

    Trait Implementations§

    source§

    impl Clone for npy_cdouble

    source§

    fn clone(&self) -> npy_cdouble

    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 Debug for npy_cdouble

    source§

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

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

    impl Copy for npy_cdouble

    Auto Trait Implementations§

    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> 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).

    + pub real: f64, + pub imag: f64, +}

    Fields§

    §real: f64§imag: f64

    Trait Implementations§

    source§

    impl Clone for npy_cdouble

    source§

    fn clone(&self) -> npy_cdouble

    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 Debug for npy_cdouble

    source§

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

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

    impl Copy for npy_cdouble

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/struct.npy_cfloat.html b/numpy/npyffi/types/struct.npy_cfloat.html index 450d24a6e..f96597d30 100644 --- a/numpy/npyffi/types/struct.npy_cfloat.html +++ b/numpy/npyffi/types/struct.npy_cfloat.html @@ -1,19 +1,19 @@ -npy_cfloat in numpy::npyffi::types - Rust +npy_cfloat in numpy::npyffi::types - Rust

    Struct numpy::npyffi::types::npy_cfloat

    source ·
    #[repr(C)]
    pub struct npy_cfloat { - pub real: f32, - pub imag: f32, -}

    Fields§

    §real: f32§imag: f32

    Trait Implementations§

    source§

    impl Clone for npy_cfloat

    source§

    fn clone(&self) -> npy_cfloat

    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 Debug for npy_cfloat

    source§

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

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

    impl Copy for npy_cfloat

    Auto Trait Implementations§

    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> 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).

    + pub real: f32, + pub imag: f32, +}

    Fields§

    §real: f32§imag: f32

    Trait Implementations§

    source§

    impl Clone for npy_cfloat

    source§

    fn clone(&self) -> npy_cfloat

    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 Debug for npy_cfloat

    source§

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

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

    impl Copy for npy_cfloat

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/struct.npy_clongdouble.html b/numpy/npyffi/types/struct.npy_clongdouble.html index 374eefefd..742965ea5 100644 --- a/numpy/npyffi/types/struct.npy_clongdouble.html +++ b/numpy/npyffi/types/struct.npy_clongdouble.html @@ -1,19 +1,19 @@ -npy_clongdouble in numpy::npyffi::types - Rust +npy_clongdouble in numpy::npyffi::types - Rust
    #[repr(C)]
    pub struct npy_clongdouble { pub real: npy_longdouble, pub imag: npy_longdouble, -}

    Fields§

    §real: npy_longdouble§imag: npy_longdouble

    Trait Implementations§

    source§

    impl Clone for npy_clongdouble

    source§

    fn clone(&self) -> npy_clongdouble

    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 Debug for npy_clongdouble

    source§

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

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

    impl Copy for npy_clongdouble

    Auto Trait Implementations§

    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> 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).

    +}

    Fields§

    §real: npy_longdouble§imag: npy_longdouble

    Trait Implementations§

    source§

    impl Clone for npy_clongdouble

    source§

    fn clone(&self) -> npy_clongdouble

    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 Debug for npy_clongdouble

    source§

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

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

    impl Copy for npy_clongdouble

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/struct.npy_datetimestruct.html b/numpy/npyffi/types/struct.npy_datetimestruct.html index d6332712a..191ffe00a 100644 --- a/numpy/npyffi/types/struct.npy_datetimestruct.html +++ b/numpy/npyffi/types/struct.npy_datetimestruct.html @@ -1,4 +1,4 @@ -npy_datetimestruct in numpy::npyffi::types - Rust +npy_datetimestruct in numpy::npyffi::types - Rust
    #[repr(C)]
    pub struct npy_datetimestruct { pub year: npy_int64, pub month: npy_int32, @@ -9,18 +9,18 @@ pub us: npy_int32, pub ps: npy_int32, pub as_: npy_int32, -}

    Fields§

    §year: npy_int64§month: npy_int32§day: npy_int32§hour: npy_int32§min: npy_int32§sec: npy_int32§us: npy_int32§ps: npy_int32§as_: npy_int32

    Trait Implementations§

    source§

    impl Clone for npy_datetimestruct

    source§

    fn clone(&self) -> npy_datetimestruct

    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 Debug for npy_datetimestruct

    source§

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

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

    impl Copy for npy_datetimestruct

    Auto Trait Implementations§

    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> 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).

    +}

    Fields§

    §year: npy_int64§month: npy_int32§day: npy_int32§hour: npy_int32§min: npy_int32§sec: npy_int32§us: npy_int32§ps: npy_int32§as_: npy_int32

    Trait Implementations§

    source§

    impl Clone for npy_datetimestruct

    source§

    fn clone(&self) -> npy_datetimestruct

    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 Debug for npy_datetimestruct

    source§

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

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

    impl Copy for npy_datetimestruct

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/struct.npy_stride_sort_item.html b/numpy/npyffi/types/struct.npy_stride_sort_item.html index 1705e3647..0b3edfba6 100644 --- a/numpy/npyffi/types/struct.npy_stride_sort_item.html +++ b/numpy/npyffi/types/struct.npy_stride_sort_item.html @@ -1,19 +1,19 @@ -npy_stride_sort_item in numpy::npyffi::types - Rust +npy_stride_sort_item in numpy::npyffi::types - Rust
    #[repr(C)]
    pub struct npy_stride_sort_item { pub perm: npy_intp, pub stride: npy_intp, -}

    Fields§

    §perm: npy_intp§stride: npy_intp

    Trait Implementations§

    source§

    impl Clone for npy_stride_sort_item

    source§

    fn clone(&self) -> npy_stride_sort_item

    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 Debug for npy_stride_sort_item

    source§

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

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

    impl Copy for npy_stride_sort_item

    Auto Trait Implementations§

    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> 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).

    +}

    Fields§

    §perm: npy_intp§stride: npy_intp

    Trait Implementations§

    source§

    impl Clone for npy_stride_sort_item

    source§

    fn clone(&self) -> npy_stride_sort_item

    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 Debug for npy_stride_sort_item

    source§

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

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

    impl Copy for npy_stride_sort_item

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/struct.npy_timedeltastruct.html b/numpy/npyffi/types/struct.npy_timedeltastruct.html index eb554ecba..1b63765e8 100644 --- a/numpy/npyffi/types/struct.npy_timedeltastruct.html +++ b/numpy/npyffi/types/struct.npy_timedeltastruct.html @@ -1,22 +1,22 @@ -npy_timedeltastruct in numpy::npyffi::types - Rust +npy_timedeltastruct in numpy::npyffi::types - Rust
    #[repr(C)]
    pub struct npy_timedeltastruct { pub day: npy_int64, pub sec: npy_int32, pub us: npy_int32, pub ps: npy_int32, pub as_: npy_int32, -}

    Fields§

    §day: npy_int64§sec: npy_int32§us: npy_int32§ps: npy_int32§as_: npy_int32

    Trait Implementations§

    source§

    impl Clone for npy_timedeltastruct

    source§

    fn clone(&self) -> npy_timedeltastruct

    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 Debug for npy_timedeltastruct

    source§

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

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

    impl Copy for npy_timedeltastruct

    Auto Trait Implementations§

    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> 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).

    +}

    Fields§

    §day: npy_int64§sec: npy_int32§us: npy_int32§ps: npy_int32§as_: npy_int32

    Trait Implementations§

    source§

    impl Clone for npy_timedeltastruct

    source§

    fn clone(&self) -> npy_timedeltastruct

    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 Debug for npy_timedeltastruct

    source§

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

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

    impl Copy for npy_timedeltastruct

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where - U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_bool.html b/numpy/npyffi/types/type.npy_bool.html index 5a923f6e5..0a45edde3 100644 --- a/numpy/npyffi/types/type.npy_bool.html +++ b/numpy/npyffi/types/type.npy_bool.html @@ -1,2 +1,2 @@ -npy_bool in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_bool

    source ·
    pub type npy_bool = c_uchar;
    \ No newline at end of file +npy_bool in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_bool

    source ·
    pub type npy_bool = c_uchar;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_byte.html b/numpy/npyffi/types/type.npy_byte.html index 83d09b2e8..52ced75d0 100644 --- a/numpy/npyffi/types/type.npy_byte.html +++ b/numpy/npyffi/types/type.npy_byte.html @@ -1,2 +1,2 @@ -npy_byte in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_byte

    source ·
    pub type npy_byte = c_char;
    \ No newline at end of file +npy_byte in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_byte

    source ·
    pub type npy_byte = c_char;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_char.html b/numpy/npyffi/types/type.npy_char.html index 0f6004a8e..9cb13216e 100644 --- a/numpy/npyffi/types/type.npy_char.html +++ b/numpy/npyffi/types/type.npy_char.html @@ -1,2 +1,2 @@ -npy_char in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_char

    source ·
    pub type npy_char = c_char;
    \ No newline at end of file +npy_char in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_char

    source ·
    pub type npy_char = c_char;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_complex128.html b/numpy/npyffi/types/type.npy_complex128.html index d073989c0..481597e30 100644 --- a/numpy/npyffi/types/type.npy_complex128.html +++ b/numpy/npyffi/types/type.npy_complex128.html @@ -1,5 +1,5 @@ -npy_complex128 in numpy::npyffi::types - Rust +npy_complex128 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_complex128

    source ·
    pub type npy_complex128 = npy_cdouble;

    Aliased Type§

    struct npy_complex128 {
    -    pub real: f64,
    -    pub imag: f64,
    -}

    Fields§

    §real: f64§imag: f64
    \ No newline at end of file + pub real: f64, + pub imag: f64, +}

    Fields§

    §real: f64§imag: f64 \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_complex256.html b/numpy/npyffi/types/type.npy_complex256.html index d6c05a48c..14ad7e921 100644 --- a/numpy/npyffi/types/type.npy_complex256.html +++ b/numpy/npyffi/types/type.npy_complex256.html @@ -1,5 +1,5 @@ -npy_complex256 in numpy::npyffi::types - Rust +npy_complex256 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_complex256

    source ·
    pub type npy_complex256 = npy_clongdouble;

    Aliased Type§

    struct npy_complex256 {
    -    pub real: f64,
    -    pub imag: f64,
    -}

    Fields§

    §real: f64§imag: f64
    \ No newline at end of file + pub real: f64, + pub imag: f64, +}

    Fields§

    §real: f64§imag: f64 \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_complex64.html b/numpy/npyffi/types/type.npy_complex64.html index f822d28ac..0b3f10b31 100644 --- a/numpy/npyffi/types/type.npy_complex64.html +++ b/numpy/npyffi/types/type.npy_complex64.html @@ -1,5 +1,5 @@ -npy_complex64 in numpy::npyffi::types - Rust +npy_complex64 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_complex64

    source ·
    pub type npy_complex64 = npy_cfloat;

    Aliased Type§

    struct npy_complex64 {
    -    pub real: f32,
    -    pub imag: f32,
    -}

    Fields§

    §real: f32§imag: f32
    \ No newline at end of file + pub real: f32, + pub imag: f32, +}

    Fields§

    §real: f32§imag: f32 \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_datetime.html b/numpy/npyffi/types/type.npy_datetime.html index 0b60d801f..306e6e61f 100644 --- a/numpy/npyffi/types/type.npy_datetime.html +++ b/numpy/npyffi/types/type.npy_datetime.html @@ -1,2 +1,2 @@ -npy_datetime in numpy::npyffi::types - Rust +npy_datetime in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_datetime

    source ·
    pub type npy_datetime = npy_int64;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_double.html b/numpy/npyffi/types/type.npy_double.html index edd236e83..087bb97a4 100644 --- a/numpy/npyffi/types/type.npy_double.html +++ b/numpy/npyffi/types/type.npy_double.html @@ -1,2 +1,2 @@ -npy_double in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_double

    source ·
    pub type npy_double = f64;
    \ No newline at end of file +npy_double in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_double

    source ·
    pub type npy_double = f64;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_float.html b/numpy/npyffi/types/type.npy_float.html index cc4eb5119..86ecf0328 100644 --- a/numpy/npyffi/types/type.npy_float.html +++ b/numpy/npyffi/types/type.npy_float.html @@ -1,2 +1,2 @@ -npy_float in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_float

    source ·
    pub type npy_float = f32;
    \ No newline at end of file +npy_float in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_float

    source ·
    pub type npy_float = f32;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_float128.html b/numpy/npyffi/types/type.npy_float128.html index 33b4f4cd6..f6c0131a1 100644 --- a/numpy/npyffi/types/type.npy_float128.html +++ b/numpy/npyffi/types/type.npy_float128.html @@ -1,2 +1,2 @@ -npy_float128 in numpy::npyffi::types - Rust +npy_float128 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_float128

    source ·
    pub type npy_float128 = npy_longdouble;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_float16.html b/numpy/npyffi/types/type.npy_float16.html index 59aa5ac3a..e73392a03 100644 --- a/numpy/npyffi/types/type.npy_float16.html +++ b/numpy/npyffi/types/type.npy_float16.html @@ -1,2 +1,2 @@ -npy_float16 in numpy::npyffi::types - Rust +npy_float16 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_float16

    source ·
    pub type npy_float16 = npy_half;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_float32.html b/numpy/npyffi/types/type.npy_float32.html index 5e7305d4c..519097faa 100644 --- a/numpy/npyffi/types/type.npy_float32.html +++ b/numpy/npyffi/types/type.npy_float32.html @@ -1,2 +1,2 @@ -npy_float32 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_float32

    source ·
    pub type npy_float32 = f32;
    \ No newline at end of file +npy_float32 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_float32

    source ·
    pub type npy_float32 = f32;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_float64.html b/numpy/npyffi/types/type.npy_float64.html index cb6202f0b..d7185f073 100644 --- a/numpy/npyffi/types/type.npy_float64.html +++ b/numpy/npyffi/types/type.npy_float64.html @@ -1,2 +1,2 @@ -npy_float64 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_float64

    source ·
    pub type npy_float64 = f64;
    \ No newline at end of file +npy_float64 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_float64

    source ·
    pub type npy_float64 = f64;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_half.html b/numpy/npyffi/types/type.npy_half.html index 2ad288e7a..9da80faf7 100644 --- a/numpy/npyffi/types/type.npy_half.html +++ b/numpy/npyffi/types/type.npy_half.html @@ -1,2 +1,2 @@ -npy_half in numpy::npyffi::types - Rust +npy_half in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_half

    source ·
    pub type npy_half = npy_uint16;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_hash_t.html b/numpy/npyffi/types/type.npy_hash_t.html index 3e6b96fa0..1e254bab5 100644 --- a/numpy/npyffi/types/type.npy_hash_t.html +++ b/numpy/npyffi/types/type.npy_hash_t.html @@ -1,2 +1,2 @@ -npy_hash_t in numpy::npyffi::types - Rust +npy_hash_t in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_hash_t

    source ·
    pub type npy_hash_t = Py_hash_t;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_int.html b/numpy/npyffi/types/type.npy_int.html index 425129833..45aabd973 100644 --- a/numpy/npyffi/types/type.npy_int.html +++ b/numpy/npyffi/types/type.npy_int.html @@ -1,2 +1,2 @@ -npy_int in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_int

    source ·
    pub type npy_int = c_int;
    \ No newline at end of file +npy_int in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_int

    source ·
    pub type npy_int = c_int;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_int16.html b/numpy/npyffi/types/type.npy_int16.html index 5b652c7bb..c9ac5db84 100644 --- a/numpy/npyffi/types/type.npy_int16.html +++ b/numpy/npyffi/types/type.npy_int16.html @@ -1,2 +1,2 @@ -npy_int16 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_int16

    source ·
    pub type npy_int16 = c_short;
    \ No newline at end of file +npy_int16 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_int16

    source ·
    pub type npy_int16 = c_short;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_int32.html b/numpy/npyffi/types/type.npy_int32.html index 2bfa1467e..7e44db694 100644 --- a/numpy/npyffi/types/type.npy_int32.html +++ b/numpy/npyffi/types/type.npy_int32.html @@ -1,2 +1,2 @@ -npy_int32 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_int32

    source ·
    pub type npy_int32 = c_int;
    \ No newline at end of file +npy_int32 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_int32

    source ·
    pub type npy_int32 = c_int;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_int64.html b/numpy/npyffi/types/type.npy_int64.html index 6e3f046be..273f298b0 100644 --- a/numpy/npyffi/types/type.npy_int64.html +++ b/numpy/npyffi/types/type.npy_int64.html @@ -1,2 +1,2 @@ -npy_int64 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_int64

    source ·
    pub type npy_int64 = c_long;
    \ No newline at end of file +npy_int64 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_int64

    source ·
    pub type npy_int64 = c_long;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_int8.html b/numpy/npyffi/types/type.npy_int8.html index 26a9314d9..709cecc26 100644 --- a/numpy/npyffi/types/type.npy_int8.html +++ b/numpy/npyffi/types/type.npy_int8.html @@ -1,2 +1,2 @@ -npy_int8 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_int8

    source ·
    pub type npy_int8 = c_char;
    \ No newline at end of file +npy_int8 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_int8

    source ·
    pub type npy_int8 = c_char;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_intp.html b/numpy/npyffi/types/type.npy_intp.html index 7db758096..d8c2a7933 100644 --- a/numpy/npyffi/types/type.npy_intp.html +++ b/numpy/npyffi/types/type.npy_intp.html @@ -1,2 +1,2 @@ -npy_intp in numpy::npyffi::types - Rust +npy_intp in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_intp

    source ·
    pub type npy_intp = Py_intptr_t;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_long.html b/numpy/npyffi/types/type.npy_long.html index b11f9786e..a83a37e0e 100644 --- a/numpy/npyffi/types/type.npy_long.html +++ b/numpy/npyffi/types/type.npy_long.html @@ -1,2 +1,2 @@ -npy_long in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_long

    source ·
    pub type npy_long = c_long;
    \ No newline at end of file +npy_long in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_long

    source ·
    pub type npy_long = c_long;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_longdouble.html b/numpy/npyffi/types/type.npy_longdouble.html index 84d6d4edf..954ed11bd 100644 --- a/numpy/npyffi/types/type.npy_longdouble.html +++ b/numpy/npyffi/types/type.npy_longdouble.html @@ -1,2 +1,2 @@ -npy_longdouble in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_longdouble

    source ·
    pub type npy_longdouble = f64;
    \ No newline at end of file +npy_longdouble in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_longdouble

    source ·
    pub type npy_longdouble = f64;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_longlong.html b/numpy/npyffi/types/type.npy_longlong.html index 77ae221c1..8d9069509 100644 --- a/numpy/npyffi/types/type.npy_longlong.html +++ b/numpy/npyffi/types/type.npy_longlong.html @@ -1,2 +1,2 @@ -npy_longlong in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_longlong

    source ·
    pub type npy_longlong = c_longlong;
    \ No newline at end of file +npy_longlong in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_longlong

    source ·
    pub type npy_longlong = c_longlong;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_short.html b/numpy/npyffi/types/type.npy_short.html index add6b5e1c..b6665abae 100644 --- a/numpy/npyffi/types/type.npy_short.html +++ b/numpy/npyffi/types/type.npy_short.html @@ -1,2 +1,2 @@ -npy_short in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_short

    source ·
    pub type npy_short = c_short;
    \ No newline at end of file +npy_short in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_short

    source ·
    pub type npy_short = c_short;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_timedelta.html b/numpy/npyffi/types/type.npy_timedelta.html index a94b2adce..a92b877fc 100644 --- a/numpy/npyffi/types/type.npy_timedelta.html +++ b/numpy/npyffi/types/type.npy_timedelta.html @@ -1,2 +1,2 @@ -npy_timedelta in numpy::npyffi::types - Rust +npy_timedelta in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_timedelta

    source ·
    pub type npy_timedelta = npy_int64;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_ubyte.html b/numpy/npyffi/types/type.npy_ubyte.html index 9693f2774..f4e4fb7f3 100644 --- a/numpy/npyffi/types/type.npy_ubyte.html +++ b/numpy/npyffi/types/type.npy_ubyte.html @@ -1,2 +1,2 @@ -npy_ubyte in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_ubyte

    source ·
    pub type npy_ubyte = c_uchar;
    \ No newline at end of file +npy_ubyte in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_ubyte

    source ·
    pub type npy_ubyte = c_uchar;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_ucs4.html b/numpy/npyffi/types/type.npy_ucs4.html index f4a5473b4..1d1106c1f 100644 --- a/numpy/npyffi/types/type.npy_ucs4.html +++ b/numpy/npyffi/types/type.npy_ucs4.html @@ -1,2 +1,2 @@ -npy_ucs4 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_ucs4

    source ·
    pub type npy_ucs4 = c_uint;
    \ No newline at end of file +npy_ucs4 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_ucs4

    source ·
    pub type npy_ucs4 = c_uint;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_uint.html b/numpy/npyffi/types/type.npy_uint.html index df7b0edf4..92c46936e 100644 --- a/numpy/npyffi/types/type.npy_uint.html +++ b/numpy/npyffi/types/type.npy_uint.html @@ -1,2 +1,2 @@ -npy_uint in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_uint

    source ·
    pub type npy_uint = c_uint;
    \ No newline at end of file +npy_uint in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_uint

    source ·
    pub type npy_uint = c_uint;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_uint16.html b/numpy/npyffi/types/type.npy_uint16.html index 08e0a2d9a..a522fa258 100644 --- a/numpy/npyffi/types/type.npy_uint16.html +++ b/numpy/npyffi/types/type.npy_uint16.html @@ -1,2 +1,2 @@ -npy_uint16 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_uint16

    source ·
    pub type npy_uint16 = c_ushort;
    \ No newline at end of file +npy_uint16 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_uint16

    source ·
    pub type npy_uint16 = c_ushort;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_uint32.html b/numpy/npyffi/types/type.npy_uint32.html index 8baace5a1..9e9c3263a 100644 --- a/numpy/npyffi/types/type.npy_uint32.html +++ b/numpy/npyffi/types/type.npy_uint32.html @@ -1,2 +1,2 @@ -npy_uint32 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_uint32

    source ·
    pub type npy_uint32 = c_uint;
    \ No newline at end of file +npy_uint32 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_uint32

    source ·
    pub type npy_uint32 = c_uint;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_uint64.html b/numpy/npyffi/types/type.npy_uint64.html index 9305d0382..099ec916e 100644 --- a/numpy/npyffi/types/type.npy_uint64.html +++ b/numpy/npyffi/types/type.npy_uint64.html @@ -1,2 +1,2 @@ -npy_uint64 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_uint64

    source ·
    pub type npy_uint64 = c_ulong;
    \ No newline at end of file +npy_uint64 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_uint64

    source ·
    pub type npy_uint64 = c_ulong;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_uint8.html b/numpy/npyffi/types/type.npy_uint8.html index 2f1082c77..03ba990c5 100644 --- a/numpy/npyffi/types/type.npy_uint8.html +++ b/numpy/npyffi/types/type.npy_uint8.html @@ -1,2 +1,2 @@ -npy_uint8 in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_uint8

    source ·
    pub type npy_uint8 = c_uchar;
    \ No newline at end of file +npy_uint8 in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_uint8

    source ·
    pub type npy_uint8 = c_uchar;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_uintp.html b/numpy/npyffi/types/type.npy_uintp.html index dcd7137a8..5a2f19010 100644 --- a/numpy/npyffi/types/type.npy_uintp.html +++ b/numpy/npyffi/types/type.npy_uintp.html @@ -1,2 +1,2 @@ -npy_uintp in numpy::npyffi::types - Rust +npy_uintp in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_uintp

    source ·
    pub type npy_uintp = Py_uintptr_t;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_ulong.html b/numpy/npyffi/types/type.npy_ulong.html index ffc70f520..1085cc72b 100644 --- a/numpy/npyffi/types/type.npy_ulong.html +++ b/numpy/npyffi/types/type.npy_ulong.html @@ -1,2 +1,2 @@ -npy_ulong in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_ulong

    source ·
    pub type npy_ulong = c_ulong;
    \ No newline at end of file +npy_ulong in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_ulong

    source ·
    pub type npy_ulong = c_ulong;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_ulonglong.html b/numpy/npyffi/types/type.npy_ulonglong.html index 3a2ccaae5..2ebaff58a 100644 --- a/numpy/npyffi/types/type.npy_ulonglong.html +++ b/numpy/npyffi/types/type.npy_ulonglong.html @@ -1,2 +1,2 @@ -npy_ulonglong in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_ulonglong

    source ·
    pub type npy_ulonglong = c_ulonglong;
    \ No newline at end of file +npy_ulonglong in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_ulonglong

    source ·
    pub type npy_ulonglong = c_ulonglong;
    \ No newline at end of file diff --git a/numpy/npyffi/types/type.npy_ushort.html b/numpy/npyffi/types/type.npy_ushort.html index 8f1fa8a38..97990a6e0 100644 --- a/numpy/npyffi/types/type.npy_ushort.html +++ b/numpy/npyffi/types/type.npy_ushort.html @@ -1,2 +1,2 @@ -npy_ushort in numpy::npyffi::types - Rust -

    Type Alias numpy::npyffi::types::npy_ushort

    source ·
    pub type npy_ushort = c_ushort;
    \ No newline at end of file +npy_ushort in numpy::npyffi::types - Rust +

    Type Alias numpy::npyffi::types::npy_ushort

    source ·
    pub type npy_ushort = c_ushort;
    \ No newline at end of file diff --git a/numpy/npyffi/ufunc/index.html b/numpy/npyffi/ufunc/index.html index c9843120f..a38866ed8 100644 --- a/numpy/npyffi/ufunc/index.html +++ b/numpy/npyffi/ufunc/index.html @@ -1,4 +1,4 @@ -numpy::npyffi::ufunc - Rust +numpy::npyffi::ufunc - Rust

    Module numpy::npyffi::ufunc

    source ·
    Expand description

    Low-Level binding for UFunc API

    -

    Structs

    Statics

    \ No newline at end of file diff --git a/numpy/npyffi/ufunc/static.PY_UFUNC_API.html b/numpy/npyffi/ufunc/static.PY_UFUNC_API.html index c149d8ce0..ba18d6d47 100644 --- a/numpy/npyffi/ufunc/static.PY_UFUNC_API.html +++ b/numpy/npyffi/ufunc/static.PY_UFUNC_API.html @@ -1,4 +1,4 @@ -PY_UFUNC_API in numpy::npyffi::ufunc - Rust +PY_UFUNC_API in numpy::npyffi::ufunc - Rust
    pub static PY_UFUNC_API: PyUFuncAPI
    Expand description

    A global variable which stores a ‘capsule’ pointer to Numpy UFunc API.

    \ No newline at end of file diff --git a/numpy/npyffi/ufunc/struct.PyUFuncAPI.html b/numpy/npyffi/ufunc/struct.PyUFuncAPI.html index 733b93442..41f11d25d 100644 --- a/numpy/npyffi/ufunc/struct.PyUFuncAPI.html +++ b/numpy/npyffi/ufunc/struct.PyUFuncAPI.html @@ -1,316 +1,316 @@ -PyUFuncAPI in numpy::npyffi::ufunc - Rust +PyUFuncAPI in numpy::npyffi::ufunc - Rust

    Struct numpy::npyffi::ufunc::PyUFuncAPI

    source ·
    pub struct PyUFuncAPI(/* private fields */);

    Implementations§

    source§

    impl PyUFuncAPI

    source

    pub unsafe fn PyUFunc_FromFuncAndData<'py>( &self, py: Python<'py>, - func: *mut PyUFuncGenericFunction, - data: *mut *mut c_void, - types: *mut c_char, - ntypes: c_int, - nin: c_int, - nout: c_int, - identity: c_int, - name: *const c_char, - doc: *const c_char, - unused: c_int -) -> *mut PyObject

    source

    pub unsafe fn PyUFunc_RegisterLoopForType<'py>( + func: *mut PyUFuncGenericFunction, + data: *mut *mut c_void, + types: *mut c_char, + ntypes: c_int, + nin: c_int, + nout: c_int, + identity: c_int, + name: *const c_char, + doc: *const c_char, + unused: c_int +) -> *mut PyObject

    source

    pub unsafe fn PyUFunc_RegisterLoopForType<'py>( &self, py: Python<'py>, - ufunc: *mut PyUFuncObject, - usertype: c_int, + ufunc: *mut PyUFuncObject, + usertype: c_int, function: PyUFuncGenericFunction, - arg_types: *mut c_int, - data: *mut c_void -) -> c_int

    source

    pub unsafe fn PyUFunc_GenericFunction<'py>( + arg_types: *mut c_int, + data: *mut c_void +) -> c_int

    source

    pub unsafe fn PyUFunc_GenericFunction<'py>( &self, py: Python<'py>, - ufunc: *mut PyUFuncObject, - args: *mut PyObject, - kwds: *mut PyObject, - op: *mut *mut PyArrayObject -) -> c_int

    source

    pub unsafe fn PyUFunc_f_f_As_d_d<'py>( + ufunc: *mut PyUFuncObject, + args: *mut PyObject, + kwds: *mut PyObject, + op: *mut *mut PyArrayObject +) -> c_int

    source

    pub unsafe fn PyUFunc_f_f_As_d_d<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_d_d<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_f_f<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_g_g<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_F_F_As_D_D<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_F_F<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_D_D<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_G_G<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_O_O<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_ff_f_As_dd_d<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_ff_f<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_dd_d<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_gg_g<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_FF_F_As_DD_D<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_DD_D<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_FF_F<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_GG_G<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_OO_O<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_O_O_method<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_OO_O_method<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_On_Om<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_GetPyValues<'py>( &self, py: Python<'py>, - name: *mut c_char, - bufsize: *mut c_int, - errmask: *mut c_int, - errobj: *mut *mut PyObject -) -> c_int

    source

    pub unsafe fn PyUFunc_checkfperr<'py>( + name: *mut c_char, + bufsize: *mut c_int, + errmask: *mut c_int, + errobj: *mut *mut PyObject +) -> c_int

    source

    pub unsafe fn PyUFunc_checkfperr<'py>( &self, py: Python<'py>, - errmask: c_int, - errobj: *mut PyObject, - first: *mut c_int -) -> c_int

    source

    pub unsafe fn PyUFunc_clearfperr<'py>(&self, py: Python<'py>)

    source

    pub unsafe fn PyUFunc_getfperr<'py>(&self, py: Python<'py>) -> c_int

    source

    pub unsafe fn PyUFunc_handlefperr<'py>( + errmask: c_int, + errobj: *mut PyObject, + first: *mut c_int +) -> c_int

    source

    pub unsafe fn PyUFunc_clearfperr<'py>(&self, py: Python<'py>)

    source

    pub unsafe fn PyUFunc_getfperr<'py>(&self, py: Python<'py>) -> c_int

    source

    pub unsafe fn PyUFunc_handlefperr<'py>( &self, py: Python<'py>, - errmask: c_int, - errobj: *mut PyObject, - retstatus: c_int, - first: *mut c_int -) -> c_int

    source

    pub unsafe fn PyUFunc_ReplaceLoopBySignature<'py>( + errmask: c_int, + errobj: *mut PyObject, + retstatus: c_int, + first: *mut c_int +) -> c_int

    source

    pub unsafe fn PyUFunc_ReplaceLoopBySignature<'py>( &self, py: Python<'py>, - func: *mut PyUFuncObject, + func: *mut PyUFuncObject, newfunc: PyUFuncGenericFunction, - signature: *mut c_int, - oldfunc: *mut PyUFuncGenericFunction -) -> c_int

    source

    pub unsafe fn PyUFunc_FromFuncAndDataAndSignature<'py>( - &self, - py: Python<'py>, - func: *mut PyUFuncGenericFunction, - data: *mut *mut c_void, - types: *mut c_char, - ntypes: c_int, - nin: c_int, - nout: c_int, - identity: c_int, - name: *const c_char, - doc: *const c_char, - unused: c_int, - signature: *const c_char -) -> *mut PyObject

    source

    pub unsafe fn PyUFunc_SetUsesArraysAsData<'py>( - &self, - py: Python<'py>, - data: *mut *mut c_void, - i: usize -) -> c_int

    source

    pub unsafe fn PyUFunc_e_e<'py>( - &self, - py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + signature: *mut c_int, + oldfunc: *mut PyUFuncGenericFunction +) -> c_int

    source

    pub unsafe fn PyUFunc_FromFuncAndDataAndSignature<'py>( + &self, + py: Python<'py>, + func: *mut PyUFuncGenericFunction, + data: *mut *mut c_void, + types: *mut c_char, + ntypes: c_int, + nin: c_int, + nout: c_int, + identity: c_int, + name: *const c_char, + doc: *const c_char, + unused: c_int, + signature: *const c_char +) -> *mut PyObject

    source

    pub unsafe fn PyUFunc_SetUsesArraysAsData<'py>( + &self, + py: Python<'py>, + data: *mut *mut c_void, + i: usize +) -> c_int

    source

    pub unsafe fn PyUFunc_e_e<'py>( + &self, + py: Python<'py>, + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_e_e_As_f_f<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_e_e_As_d_d<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_ee_e<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_ee_e_As_ff_f<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_ee_e_As_dd_d<'py>( &self, py: Python<'py>, - args: *mut *mut c_char, - dimensions: *mut npy_intp, - steps: *mut npy_intp, - func: *mut c_void + args: *mut *mut c_char, + dimensions: *mut npy_intp, + steps: *mut npy_intp, + func: *mut c_void )

    source

    pub unsafe fn PyUFunc_DefaultTypeResolver<'py>( &self, py: Python<'py>, - ufunc: *mut PyUFuncObject, + ufunc: *mut PyUFuncObject, casting: NPY_CASTING, - operands: *mut *mut PyArrayObject, - type_tup: *mut PyObject, - out_dtypes: *mut *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyUFunc_ValidateCasting<'py>( + operands: *mut *mut PyArrayObject, + type_tup: *mut PyObject, + out_dtypes: *mut *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyUFunc_ValidateCasting<'py>( &self, py: Python<'py>, - ufunc: *mut PyUFuncObject, + ufunc: *mut PyUFuncObject, casting: NPY_CASTING, - operands: *mut *mut PyArrayObject, - dtypes: *mut *mut PyArray_Descr -) -> c_int

    source

    pub unsafe fn PyUFunc_RegisterLoopForDescr<'py>( + operands: *mut *mut PyArrayObject, + dtypes: *mut *mut PyArray_Descr +) -> c_int

    source

    pub unsafe fn PyUFunc_RegisterLoopForDescr<'py>( &self, py: Python<'py>, - ufunc: *mut PyUFuncObject, - user_dtype: *mut PyArray_Descr, + ufunc: *mut PyUFuncObject, + user_dtype: *mut PyArray_Descr, function: PyUFuncGenericFunction, - arg_dtypes: *mut *mut PyArray_Descr, - data: *mut c_void -) -> c_int

    source

    pub unsafe fn PyUFunc_FromFuncAndDataAndSignatureAndIdentity<'py>( - &self, - py: Python<'py>, - ufunc: *mut PyUFuncObject, - data: *mut *mut c_void, - types: *mut c_char, - ntypes: c_int, - nin: c_int, - nout: c_int, - identity: c_int, - name: *const c_char, - doc: *const c_char, - unused: c_int, - signature: *const c_char, - identity_value: *const c_char -) -> c_int

    Trait Implementations§

    Auto Trait Implementations§

    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> 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).

    + arg_dtypes: *mut *mut PyArray_Descr, + data: *mut c_void +) -> c_int
    source

    pub unsafe fn PyUFunc_FromFuncAndDataAndSignatureAndIdentity<'py>( + &self, + py: Python<'py>, + ufunc: *mut PyUFuncObject, + data: *mut *mut c_void, + types: *mut c_char, + ntypes: c_int, + nin: c_int, + nout: c_int, + identity: c_int, + name: *const c_char, + doc: *const c_char, + unused: c_int, + signature: *const c_char, + identity_value: *const c_char +) -> c_int

    Trait Implementations§

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/prelude/index.html b/numpy/prelude/index.html index 1cb86d989..7c8a13086 100644 --- a/numpy/prelude/index.html +++ b/numpy/prelude/index.html @@ -1,7 +1,7 @@ -numpy::prelude - Rust +numpy::prelude - Rust

    Module numpy::prelude

    source ·
    Expand description

    A prelude

    The purpose of this module is to avoid direct imports of the method traits defined by this crate via a glob import:

    use numpy::prelude::*;
    -

    Re-exports

    Traits

    \ No newline at end of file +

    Re-exports§

    Traits§

    \ No newline at end of file diff --git a/numpy/prelude/trait.PyArrayDescrMethods.html b/numpy/prelude/trait.PyArrayDescrMethods.html index c9f7a8388..638e2153f 100644 --- a/numpy/prelude/trait.PyArrayDescrMethods.html +++ b/numpy/prelude/trait.PyArrayDescrMethods.html @@ -1,81 +1,81 @@ -PyArrayDescrMethods in numpy::prelude - Rust +PyArrayDescrMethods in numpy::prelude - Rust
    pub trait PyArrayDescrMethods<'py>: Sealed {
     
    Show 21 methods // Required methods - fn as_dtype_ptr(&self) -> *mut PyArray_Descr; - fn into_dtype_ptr(self) -> *mut PyArray_Descr; - fn is_equiv_to(&self, other: &Self) -> bool; + fn as_dtype_ptr(&self) -> *mut PyArray_Descr; + fn into_dtype_ptr(self) -> *mut PyArray_Descr; + fn is_equiv_to(&self, other: &Self) -> bool; fn typeobj(&self) -> Bound<'py, PyType>; fn base(&self) -> Bound<'py, PyArrayDescr>; - fn shape(&self) -> Vec<usize>; - fn names(&self) -> Option<Vec<&str>>; + fn shape(&self) -> Vec<usize>; + fn names(&self) -> Option<Vec<&str>>; fn get_field( &self, - name: &str - ) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>; + name: &str + ) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>; // Provided methods - fn num(&self) -> c_int { ... } - fn itemsize(&self) -> usize { ... } - fn alignment(&self) -> usize { ... } - fn byteorder(&self) -> u8 { ... } - fn char(&self) -> u8 { ... } - fn kind(&self) -> u8 { ... } - fn flags(&self) -> c_char { ... } - fn ndim(&self) -> usize { ... } - fn has_object(&self) -> bool { ... } - fn is_aligned_struct(&self) -> bool { ... } - fn has_subarray(&self) -> bool { ... } - fn has_fields(&self) -> bool { ... } - fn is_native_byteorder(&self) -> Option<bool> { ... } + fn num(&self) -> c_int { ... } + fn itemsize(&self) -> usize { ... } + fn alignment(&self) -> usize { ... } + fn byteorder(&self) -> u8 { ... } + fn char(&self) -> u8 { ... } + fn kind(&self) -> u8 { ... } + fn flags(&self) -> c_char { ... } + fn ndim(&self) -> usize { ... } + fn has_object(&self) -> bool { ... } + fn is_aligned_struct(&self) -> bool { ... } + fn has_subarray(&self) -> bool { ... } + fn has_fields(&self) -> bool { ... } + fn is_native_byteorder(&self) -> Option<bool> { ... }
    }
    Expand description

    Implementation of functionality for PyArrayDescr.

    -

    Required Methods§

    source

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr.

    -
    source

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr while increasing the reference count.

    +

    Required Methods§

    source

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr.

    +
    source

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr while increasing the reference count.

    Useful in cases where the descriptor is stolen by the API.

    -
    source

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

    Returns true if two type descriptors are equivalent.

    +
    source

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

    Returns true if two type descriptors are equivalent.

    source

    fn typeobj(&self) -> Bound<'py, PyType>

    Returns the array scalar corresponding to this type descriptor.

    Equivalent to numpy.dtype.type.

    source

    fn base(&self) -> Bound<'py, PyArrayDescr>

    Returns the type descriptor for the base element of subarrays, regardless of their dimension or shape.

    If the dtype is not a subarray, returns self.

    Equivalent to numpy.dtype.base.

    -
    source

    fn shape(&self) -> Vec<usize>

    Returns the shape of the sub-array.

    +
    source

    fn shape(&self) -> Vec<usize>

    Returns the shape of the sub-array.

    If the dtype is not a sub-array, an empty vector is returned.

    Equivalent to numpy.dtype.shape.

    -
    source

    fn names(&self) -> Option<Vec<&str>>

    Returns an ordered list of field names, or None if there are no fields.

    +
    source

    fn names(&self) -> Option<Vec<&str>>

    Returns an ordered list of field names, or None if there are no fields.

    The names are ordered according to increasing byte offset.

    Equivalent to numpy.dtype.names.

    -
    source

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Returns the type descriptor and offset of the field with the given name.

    +
    source

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Returns the type descriptor and offset of the field with the given name.

    This method will return an error if this type descriptor is not structured, or if it does not contain a field with a given name.

    The list of all names can be found via PyArrayDescr::names.

    Equivalent to retrieving a single item from numpy.dtype.fields.

    -

    Provided Methods§

    source

    fn num(&self) -> c_int

    Returns a unique number for each of the 21 different built-in +

    Provided Methods§

    source

    fn num(&self) -> c_int

    Returns a unique number for each of the 21 different built-in enumerated types.

    These are roughly ordered from least-to-most precision.

    Equivalent to numpy.dtype.num.

    -
    source

    fn itemsize(&self) -> usize

    Returns the element size of this type descriptor.

    +
    source

    fn itemsize(&self) -> usize

    Returns the element size of this type descriptor.

    Equivalent to [numpy.dtype.itemsize][dtype-itemsize].

    -
    source

    fn alignment(&self) -> usize

    Returns the required alignment (bytes) of this type descriptor according to the compiler.

    +
    source

    fn alignment(&self) -> usize

    Returns the required alignment (bytes) of this type descriptor according to the compiler.

    Equivalent to numpy.dtype.alignment.

    -
    source

    fn byteorder(&self) -> u8

    Returns an ASCII character indicating the byte-order of this type descriptor object.

    +
    source

    fn byteorder(&self) -> u8

    Returns an ASCII character indicating the byte-order of this type descriptor object.

    All built-in data-type objects have byteorder either = or |.

    Equivalent to numpy.dtype.byteorder.

    -
    source

    fn char(&self) -> u8

    Returns a unique ASCII character for each of the 21 different built-in types.

    +
    source

    fn char(&self) -> u8

    Returns a unique ASCII character for each of the 21 different built-in types.

    Note that structured data types are categorized as V (void).

    Equivalent to numpy.dtype.char.

    -
    source

    fn kind(&self) -> u8

    Returns an ASCII character (one of biufcmMOSUV) identifying the general kind of data.

    +
    source

    fn kind(&self) -> u8

    Returns an ASCII character (one of biufcmMOSUV) identifying the general kind of data.

    Note that structured data types are categorized as V (void).

    Equivalent to numpy.dtype.kind.

    -
    source

    fn flags(&self) -> c_char

    Returns bit-flags describing how this type descriptor is to be interpreted.

    +
    source

    fn flags(&self) -> c_char

    Returns bit-flags describing how this type descriptor is to be interpreted.

    Equivalent to numpy.dtype.flags.

    -
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions if this type descriptor represents a sub-array, and zero otherwise.

    +
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions if this type descriptor represents a sub-array, and zero otherwise.

    Equivalent to numpy.dtype.ndim.

    -
    source

    fn has_object(&self) -> bool

    Returns true if the type descriptor contains any reference-counted objects in any fields or sub-dtypes.

    +
    source

    fn has_object(&self) -> bool

    Returns true if the type descriptor contains any reference-counted objects in any fields or sub-dtypes.

    Equivalent to numpy.dtype.hasobject.

    -
    source

    fn is_aligned_struct(&self) -> bool

    Returns true if the type descriptor is a struct which maintains field alignment.

    +
    source

    fn is_aligned_struct(&self) -> bool

    Returns true if the type descriptor is a struct which maintains field alignment.

    This flag is sticky, so when combining multiple structs together, it is preserved and produces new dtypes which are also aligned.

    Equivalent to numpy.dtype.isalignedstruct.

    -
    source

    fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    -
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    -
    source

    fn is_native_byteorder(&self) -> Option<bool>

    Returns true if type descriptor byteorder is native, or None if not applicable.

    -

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<'py> PyArrayDescrMethods<'py> for Bound<'py, PyArrayDescr>

    source§

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    source§

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    source§

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

    source§

    fn typeobj(&self) -> Bound<'py, PyType>

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn names(&self) -> Option<Vec<&str>>

    source§

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Implementors§

    \ No newline at end of file +
    source

    fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    +
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    +
    source

    fn is_native_byteorder(&self) -> Option<bool>

    Returns true if type descriptor byteorder is native, or None if not applicable.

    +

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<'py> PyArrayDescrMethods<'py> for Bound<'py, PyArrayDescr>

    source§

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    source§

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    source§

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

    source§

    fn typeobj(&self) -> Bound<'py, PyType>

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn names(&self) -> Option<Vec<&str>>

    source§

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Implementors§

    \ No newline at end of file diff --git a/numpy/prelude/trait.PyUntypedArrayMethods.html b/numpy/prelude/trait.PyUntypedArrayMethods.html index 54f552163..12beea526 100644 --- a/numpy/prelude/trait.PyUntypedArrayMethods.html +++ b/numpy/prelude/trait.PyUntypedArrayMethods.html @@ -1,34 +1,35 @@ -PyUntypedArrayMethods in numpy::prelude - Rust -
    pub trait PyUntypedArrayMethods<'py>: Sealed {
    +PyUntypedArrayMethods in numpy::prelude - Rust
    +    
    pub trait PyUntypedArrayMethods<'py>: Sealed {
         // Required methods
    -    fn as_array_ptr(&self) -> *mut PyArrayObject;
    +    fn as_array_ptr(&self) -> *mut PyArrayObject;
         fn dtype(&self) -> Bound<'py, PyArrayDescr>;
     
         // Provided methods
    -    fn is_contiguous(&self) -> bool { ... }
    -    fn is_fortran_contiguous(&self) -> bool { ... }
    -    fn is_c_contiguous(&self) -> bool { ... }
    -    fn ndim(&self) -> usize { ... }
    -    fn strides(&self) -> &[isize] { ... }
    -    fn shape(&self) -> &[usize] { ... }
    -    fn len(&self) -> usize { ... }
    -    fn is_empty(&self) -> bool { ... }
    +    fn is_contiguous(&self) -> bool { ... }
    +    fn is_fortran_contiguous(&self) -> bool { ... }
    +    fn is_c_contiguous(&self) -> bool { ... }
    +    fn ndim(&self) -> usize { ... }
    +    fn strides(&self) -> &[isize] { ... }
    +    fn shape(&self) -> &[usize] { ... }
    +    fn len(&self) -> usize { ... }
    +    fn is_empty(&self) -> bool { ... }
     }
    Expand description

    Implementation of functionality for PyUntypedArray.

    -

    Required Methods§

    source

    fn as_array_ptr(&self) -> *mut PyArrayObject

    Returns a raw pointer to the underlying PyArrayObject.

    -
    source

    fn dtype(&self) -> Bound<'py, PyArrayDescr>

    Returns the dtype of the array.

    +

    Required Methods§

    source

    fn as_array_ptr(&self) -> *mut PyArrayObject

    Returns a raw pointer to the underlying PyArrayObject.

    +
    source

    fn dtype(&self) -> Bound<'py, PyArrayDescr>

    Returns the dtype of the array.

    See also ndarray.dtype and PyArray_DTYPE.

    -
    Example
    -
    use numpy::{dtype_bound, PyArray};
    +
    §Example
    +
    use numpy::prelude::*;
    +use numpy::{dtype_bound, PyArray};
     use pyo3::Python;
     
     Python::with_gil(|py| {
    -   let array = PyArray::from_vec(py, vec![1_i32, 2, 3]);
    +   let array = PyArray::from_vec_bound(py, vec![1_i32, 2, 3]);
     
    -   assert!(array.dtype().is_equiv_to(dtype_bound::<i32>(py).as_gil_ref()));
    +   assert!(array.dtype().is_equiv_to(&dtype_bound::<i32>(py)));
     });
    -

    Provided Methods§

    source

    fn is_contiguous(&self) -> bool

    Returns true if the internal data of the array is contiguous, +

    Provided Methods§

    source

    fn is_contiguous(&self) -> bool

    Returns true if the internal data of the array is contiguous, indepedently of whether C-style/row-major or Fortran-style/column-major.

    -
    Example
    +
    §Example
    use numpy::{PyArray1, PyUntypedArrayMethods};
     use pyo3::{types::{IntoPyDict, PyAnyMethods}, Python};
     
    @@ -43,11 +44,11 @@ 
    Example
    .unwrap(); assert!(!view.is_contiguous()); });
    -
    source

    fn is_fortran_contiguous(&self) -> bool

    Returns true if the internal data of the array is Fortran-style/column-major contiguous.

    -
    source

    fn is_c_contiguous(&self) -> bool

    Returns true if the internal data of the array is C-style/row-major contiguous.

    -
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions of the array.

    +
    source

    fn is_fortran_contiguous(&self) -> bool

    Returns true if the internal data of the array is Fortran-style/column-major contiguous.

    +
    source

    fn is_c_contiguous(&self) -> bool

    Returns true if the internal data of the array is C-style/row-major contiguous.

    +
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions of the array.

    See also ndarray.ndim and PyArray_NDIM.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -56,9 +57,9 @@ 
    Example
    assert_eq!(arr.ndim(), 3); });
    -
    source

    fn strides(&self) -> &[isize]

    Returns a slice indicating how many bytes to advance when iterating along each axis.

    +
    source

    fn strides(&self) -> &[isize]

    Returns a slice indicating how many bytes to advance when iterating along each axis.

    See also ndarray.strides and PyArray_STRIDES.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -67,9 +68,9 @@ 
    Example
    assert_eq!(arr.strides(), &[240, 48, 8]); });
    -
    source

    fn shape(&self) -> &[usize]

    Returns a slice which contains dimmensions of the array.

    +
    source

    fn shape(&self) -> &[usize]

    Returns a slice which contains dimmensions of the array.

    See also [ndarray.shape][ndaray-shape] and PyArray_DIMS.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -78,6 +79,6 @@ 
    Example
    assert_eq!(arr.shape(), &[4, 5, 6]); });
    -
    source

    fn len(&self) -> usize

    Calculates the total number of elements in the array.

    -
    source

    fn is_empty(&self) -> bool

    Returns true if the there are no elements in the array.

    -

    Implementations on Foreign Types§

    source§

    impl<'py> PyUntypedArrayMethods<'py> for Bound<'py, PyUntypedArray>

    source§

    impl<'py, T, D> PyUntypedArrayMethods<'py> for Bound<'py, PyArray<T, D>>

    Implementors§

    \ No newline at end of file +
    source

    fn len(&self) -> usize

    Calculates the total number of elements in the array.

    +
    source

    fn is_empty(&self) -> bool

    Returns true if the there are no elements in the array.

    +

    Implementations on Foreign Types§

    source§

    impl<'py> PyUntypedArrayMethods<'py> for Bound<'py, PyUntypedArray>

    source§

    impl<'py, T, D> PyUntypedArrayMethods<'py> for Bound<'py, PyArray<T, D>>

    Implementors§

    \ No newline at end of file diff --git a/numpy/struct.AllowTypeChange.html b/numpy/struct.AllowTypeChange.html index 491cc4acb..83ef3f37e 100644 --- a/numpy/struct.AllowTypeChange.html +++ b/numpy/struct.AllowTypeChange.html @@ -1,16 +1,16 @@ -AllowTypeChange in numpy - Rust +AllowTypeChange in numpy - Rust

    Struct numpy::AllowTypeChange

    source ·
    pub struct AllowTypeChange;
    Expand description

    Marker type to indicate that the element type received via PyArrayLike can be cast to the specified type by NumPy’s asarray.

    -

    Trait Implementations§

    source§

    impl Debug for AllowTypeChange

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Debug for AllowTypeChange

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/struct.FromVecError.html b/numpy/struct.FromVecError.html index d33c27a61..e1725d263 100644 --- a/numpy/struct.FromVecError.html +++ b/numpy/struct.FromVecError.html @@ -1,17 +1,17 @@ -FromVecError in numpy - Rust +FromVecError in numpy - Rust

    Struct numpy::FromVecError

    source ·
    pub struct FromVecError { /* private fields */ }
    Expand description

    Represents that given Vec cannot be treated as an array.

    -

    Trait Implementations§

    source§

    impl Debug for FromVecError

    source§

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

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

    impl Display for FromVecError

    source§

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

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

    impl Error for FromVecError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<FromVecError> for PyErr

    source§

    fn from(err: FromVecError) -> PyErr

    Converts to this type from the input type.
    source§

    impl PyErrArguments for FromVecError

    source§

    fn arguments<'py>(self, py: Python<'py>) -> PyObject

    Arguments for exception

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Debug for FromVecError

    source§

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

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

    impl Display for FromVecError

    source§

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

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

    impl Error for FromVecError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<FromVecError> for PyErr

    source§

    fn from(err: FromVecError) -> PyErr

    Converts to this type from the input type.
    source§

    impl PyErrArguments for FromVecError

    source§

    fn arguments<'py>(self, py: Python<'py>) -> PyObject

    Arguments for exception

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/struct.NotContiguousError.html b/numpy/struct.NotContiguousError.html index 229e3cb75..6fc836071 100644 --- a/numpy/struct.NotContiguousError.html +++ b/numpy/struct.NotContiguousError.html @@ -1,17 +1,17 @@ -NotContiguousError in numpy - Rust +NotContiguousError in numpy - Rust
    pub struct NotContiguousError;
    Expand description

    Represents that the given array is not contiguous.

    -

    Trait Implementations§

    source§

    impl Debug for NotContiguousError

    source§

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

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

    impl Display for NotContiguousError

    source§

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

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

    impl Error for NotContiguousError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<NotContiguousError> for PyErr

    source§

    fn from(err: NotContiguousError) -> PyErr

    Converts to this type from the input type.
    source§

    impl PyErrArguments for NotContiguousError

    source§

    fn arguments<'py>(self, py: Python<'py>) -> PyObject

    Arguments for exception

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Debug for NotContiguousError

    source§

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

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

    impl Display for NotContiguousError

    source§

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

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

    impl Error for NotContiguousError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<NotContiguousError> for PyErr

    source§

    fn from(err: NotContiguousError) -> PyErr

    Converts to this type from the input type.
    source§

    impl PyErrArguments for NotContiguousError

    source§

    fn arguments<'py>(self, py: Python<'py>) -> PyObject

    Arguments for exception

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/struct.PyArrayDescr.html b/numpy/struct.PyArrayDescr.html index 4bcc2ade2..b8f413bb3 100644 --- a/numpy/struct.PyArrayDescr.html +++ b/numpy/struct.PyArrayDescr.html @@ -1,6 +1,6 @@ -PyArrayDescr in numpy - Rust +PyArrayDescr in numpy - Rust

    Struct numpy::PyArrayDescr

    source ·
    pub struct PyArrayDescr(/* private fields */);
    Expand description

    Binding of numpy.dtype.

    -

    Example

    +

    §Example

    use numpy::{dtype, get_array_module, PyArrayDescr};
     use numpy::pyo3::{types::IntoPyDict, Python};
     
    @@ -15,112 +15,112 @@ 

    Example

    assert!(dt.is_equiv_to(dtype::<f64>(py))); });
    -

    Implementations§

    source§

    impl PyArrayDescr

    source

    pub fn new<'py, T: ToPyObject + ?Sized>( +

    Implementations§

    source§

    impl PyArrayDescr

    source

    pub fn new<'py, T: ToPyObject + ?Sized>( py: Python<'py>, - ob: &T -) -> PyResult<&'py Self>

    👎Deprecated since 0.21.0: This will be replace by new_bound in the future.

    Creates a new type descriptor (“dtype”) object from an arbitrary object.

    + ob: &T +) -> PyResult<&'py Self>
    👎Deprecated since 0.21.0: This will be replace by new_bound in the future.

    Creates a new type descriptor (“dtype”) object from an arbitrary object.

    Equivalent to invoking the constructor of numpy.dtype.

    -
    source

    pub fn new_bound<'py, T: ToPyObject + ?Sized>( +

    source

    pub fn new_bound<'py, T: ToPyObject + ?Sized>( py: Python<'py>, - ob: &T + ob: &T ) -> PyResult<Bound<'py, Self>>

    Creates a new type descriptor (“dtype”) object from an arbitrary object.

    Equivalent to invoking the constructor of numpy.dtype.

    -
    source

    pub fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr.

    -
    source

    pub fn into_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr while increasing the reference count.

    +
    source

    pub fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr.

    +
    source

    pub fn into_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr while increasing the reference count.

    Useful in cases where the descriptor is stolen by the API.

    -
    source

    pub fn object<'py>(py: Python<'py>) -> &'py Self

    👎Deprecated since 0.21.0: This will be replaced by object_bound in the future.

    Shortcut for creating a type descriptor of object type.

    +
    source

    pub fn object<'py>(py: Python<'py>) -> &'py Self

    👎Deprecated since 0.21.0: This will be replaced by object_bound in the future.

    Shortcut for creating a type descriptor of object type.

    source

    pub fn object_bound(py: Python<'_>) -> Bound<'_, Self>

    Shortcut for creating a type descriptor of object type.

    -
    source

    pub fn of<'py, T: Element>(py: Python<'py>) -> &'py Self

    👎Deprecated since 0.21.0: This will be replaced by of_bound in the future.

    Returns the type descriptor for a registered type.

    +
    source

    pub fn of<'py, T: Element>(py: Python<'py>) -> &'py Self

    👎Deprecated since 0.21.0: This will be replaced by of_bound in the future.

    Returns the type descriptor for a registered type.

    source

    pub fn of_bound<'py, T: Element>(py: Python<'py>) -> Bound<'py, Self>

    Returns the type descriptor for a registered type.

    -
    source

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

    Returns true if two type descriptors are equivalent.

    +
    source

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

    Returns true if two type descriptors are equivalent.

    source

    pub fn typeobj(&self) -> &PyType

    Returns the array scalar corresponding to this type descriptor.

    Equivalent to numpy.dtype.type.

    -
    source

    pub fn num(&self) -> c_int

    Returns a unique number for each of the 21 different built-in +

    source

    pub fn num(&self) -> c_int

    Returns a unique number for each of the 21 different built-in enumerated types.

    These are roughly ordered from least-to-most precision.

    Equivalent to numpy.dtype.num.

    -
    source

    pub fn itemsize(&self) -> usize

    Returns the element size of this type descriptor.

    +
    source

    pub fn itemsize(&self) -> usize

    Returns the element size of this type descriptor.

    Equivalent to [numpy.dtype.itemsize][dtype-itemsize].

    -
    source

    pub fn alignment(&self) -> usize

    Returns the required alignment (bytes) of this type descriptor according to the compiler.

    +
    source

    pub fn alignment(&self) -> usize

    Returns the required alignment (bytes) of this type descriptor according to the compiler.

    Equivalent to numpy.dtype.alignment.

    -
    source

    pub fn byteorder(&self) -> u8

    Returns an ASCII character indicating the byte-order of this type descriptor object.

    +
    source

    pub fn byteorder(&self) -> u8

    Returns an ASCII character indicating the byte-order of this type descriptor object.

    All built-in data-type objects have byteorder either = or |.

    Equivalent to numpy.dtype.byteorder.

    -
    source

    pub fn char(&self) -> u8

    Returns a unique ASCII character for each of the 21 different built-in types.

    +
    source

    pub fn char(&self) -> u8

    Returns a unique ASCII character for each of the 21 different built-in types.

    Note that structured data types are categorized as V (void).

    Equivalent to numpy.dtype.char.

    -
    source

    pub fn kind(&self) -> u8

    Returns an ASCII character (one of biufcmMOSUV) identifying the general kind of data.

    +
    source

    pub fn kind(&self) -> u8

    Returns an ASCII character (one of biufcmMOSUV) identifying the general kind of data.

    Note that structured data types are categorized as V (void).

    Equivalent to numpy.dtype.kind.

    -
    source

    pub fn flags(&self) -> c_char

    Returns bit-flags describing how this type descriptor is to be interpreted.

    +
    source

    pub fn flags(&self) -> c_char

    Returns bit-flags describing how this type descriptor is to be interpreted.

    Equivalent to numpy.dtype.flags.

    -
    source

    pub fn ndim(&self) -> usize

    Returns the number of dimensions if this type descriptor represents a sub-array, and zero otherwise.

    +
    source

    pub fn ndim(&self) -> usize

    Returns the number of dimensions if this type descriptor represents a sub-array, and zero otherwise.

    Equivalent to numpy.dtype.ndim.

    source

    pub fn base(&self) -> &PyArrayDescr

    Returns the type descriptor for the base element of subarrays, regardless of their dimension or shape.

    If the dtype is not a subarray, returns self.

    Equivalent to numpy.dtype.base.

    -
    source

    pub fn shape(&self) -> Vec<usize>

    Returns the shape of the sub-array.

    +
    source

    pub fn shape(&self) -> Vec<usize>

    Returns the shape of the sub-array.

    If the dtype is not a sub-array, an empty vector is returned.

    Equivalent to numpy.dtype.shape.

    -
    source

    pub fn has_object(&self) -> bool

    Returns true if the type descriptor contains any reference-counted objects in any fields or sub-dtypes.

    +
    source

    pub fn has_object(&self) -> bool

    Returns true if the type descriptor contains any reference-counted objects in any fields or sub-dtypes.

    Equivalent to numpy.dtype.hasobject.

    -
    source

    pub fn is_aligned_struct(&self) -> bool

    Returns true if the type descriptor is a struct which maintains field alignment.

    +
    source

    pub fn is_aligned_struct(&self) -> bool

    Returns true if the type descriptor is a struct which maintains field alignment.

    This flag is sticky, so when combining multiple structs together, it is preserved and produces new dtypes which are also aligned.

    Equivalent to numpy.dtype.isalignedstruct.

    -
    source

    pub fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    -
    source

    pub fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    -
    source

    pub fn is_native_byteorder(&self) -> Option<bool>

    Returns true if type descriptor byteorder is native, or None if not applicable.

    -
    source

    pub fn names(&self) -> Option<Vec<&str>>

    Returns an ordered list of field names, or None if there are no fields.

    +
    source

    pub fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    +
    source

    pub fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    +
    source

    pub fn is_native_byteorder(&self) -> Option<bool>

    Returns true if type descriptor byteorder is native, or None if not applicable.

    +
    source

    pub fn names(&self) -> Option<Vec<&str>>

    Returns an ordered list of field names, or None if there are no fields.

    The names are ordered according to increasing byte offset.

    Equivalent to numpy.dtype.names.

    -
    source

    pub fn get_field(&self, name: &str) -> PyResult<(&PyArrayDescr, usize)>

    Returns the type descriptor and offset of the field with the given name.

    +
    source

    pub fn get_field(&self, name: &str) -> PyResult<(&PyArrayDescr, usize)>

    Returns the type descriptor and offset of the field with the given name.

    This method will return an error if this type descriptor is not structured, or if it does not contain a field with a given name.

    The list of all names can be found via PyArrayDescr::names.

    Equivalent to retrieving a single item from numpy.dtype.fields.

    -

    Methods from Deref<Target = PyAny>§

    pub fn is<T>(&self, other: &T) -> bool
    where +

    Methods from Deref<Target = PyAny>§

    pub fn is<T>(&self, other: &T) -> bool
    where T: AsPyPointer,

    Returns whether self and other point to the same object. To compare the equality of two objects (the == operator), use eq.

    This is equivalent to the Python expression self is other.

    -

    pub fn hasattr<N>(&self, attr_name: N) -> Result<bool, PyErr>
    where +

    pub fn hasattr<N>(&self, attr_name: N) -> Result<bool, PyErr>
    where N: IntoPy<Py<PyString>>,

    Determines whether this object has the given attribute.

    This is equivalent to the Python expression hasattr(self, attr_name).

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

    -
    Example: intern!ing the attribute name
    +
    §Example: intern!ing the attribute name
    #[pyfunction]
     fn has_version(sys: &Bound<'_, PyModule>) -> PyResult<bool> {
         sys.hasattr(intern!(sys.py(), "version"))
     }
    -

    pub fn getattr<N>(&self, attr_name: N) -> Result<&PyAny, PyErr>
    where +

    pub fn getattr<N>(&self, attr_name: N) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>,

    Retrieves an attribute value.

    This is equivalent to the Python expression self.attr_name.

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

    -
    Example: intern!ing the attribute name
    +
    §Example: intern!ing the attribute name
    #[pyfunction]
     fn version<'py>(sys: &Bound<'py, PyModule>) -> PyResult<Bound<'py, PyAny>> {
         sys.getattr(intern!(sys.py(), "version"))
     }
    -

    pub fn setattr<N, V>(&self, attr_name: N, value: V) -> Result<(), PyErr>
    where +

    pub fn setattr<N, V>(&self, attr_name: N, value: V) -> Result<(), PyErr>
    where N: IntoPy<Py<PyString>>, V: ToPyObject,

    Sets an attribute value.

    This is equivalent to the Python expression self.attr_name = value.

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Example: intern!ing the attribute name
    +
    §Example: intern!ing the attribute name
    #[pyfunction]
     fn set_answer(ob: &Bound<'_, PyAny>) -> PyResult<()> {
         ob.setattr(intern!(ob.py(), "answer"), 42)
     }
    -

    pub fn delattr<N>(&self, attr_name: N) -> Result<(), PyErr>
    where +

    pub fn delattr<N>(&self, attr_name: N) -> Result<(), PyErr>
    where N: IntoPy<Py<PyString>>,

    Deletes an attribute.

    This is equivalent to the Python statement del self.attr_name.

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

    -

    pub fn compare<O>(&self, other: O) -> Result<Ordering, PyErr>
    where - O: ToPyObject,

    Returns an Ordering between self and other.

    +

    pub fn compare<O>(&self, other: O) -> Result<Ordering, PyErr>
    where + O: ToPyObject,

    Returns an Ordering between self and other.

    This is equivalent to the following Python code:

    if self == other:
         return Equal
    @@ -130,7 +130,7 @@ 
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     use pyo3::types::PyFloat;
     use std::cmp::Ordering;
    @@ -156,7 +156,7 @@ 
    Result<&PyAny, PyErr>
    where +) -> Result<&PyAny, PyErr>
    where O: ToPyObject,

    Tests whether two Python objects obey a given [CompareOp].

    lt, le, eq, ne, gt and ge are the specialized versions @@ -171,7 +171,7 @@

    [CompareOp::Gt]self > other [CompareOp::Ge]self >= other -
    Examples
    +
    §Examples
    use pyo3::class::basic::CompareOp;
     use pyo3::prelude::*;
     use pyo3::types::PyInt;
    @@ -182,27 +182,27 @@ 
    assert!(a.rich_compare(b, CompareOp::Le)?.is_truthy()?); Ok(()) })?;
    -

    pub fn lt<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn lt<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is less than another.

    This is equivalent to the Python expression self < other.

    -

    pub fn le<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn le<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is less than or equal to another.

    This is equivalent to the Python expression self <= other.

    -

    pub fn eq<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn eq<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is equal to another.

    This is equivalent to the Python expression self == other.

    -

    pub fn ne<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn ne<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is not equal to another.

    This is equivalent to the Python expression self != other.

    -

    pub fn gt<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn gt<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is greater than another.

    This is equivalent to the Python expression self > other.

    -

    pub fn ge<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn ge<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is greater than or equal to another.

    This is equivalent to the Python expression self >= other.

    -

    pub fn is_callable(&self) -> bool

    Determines whether this object appears callable.

    +

    pub fn is_callable(&self) -> bool

    Determines whether this object appears callable.

    This is equivalent to Python’s callable() function.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     Python::with_gil(|py| -> PyResult<()> {
    @@ -219,10 +219,10 @@ 
    Examples

    pub fn call( &self, args: impl IntoPy<Py<PyTuple>>, - kwargs: Option<&PyDict> -) -> Result<&PyAny, PyErr>

    Calls the object.

    + kwargs: Option<&PyDict> +) -> Result<&PyAny, PyErr>

    Calls the object.

    This is equivalent to the Python expression self(*args, **kwargs).

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     use pyo3::types::PyDict;
     
    @@ -243,9 +243,9 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with args and kwargs"); Ok(()) })
    -

    pub fn call0(&self) -> Result<&PyAny, PyErr>

    Calls the object without arguments.

    +

    pub fn call0(&self) -> Result<&PyAny, PyErr>

    Calls the object without arguments.

    This is equivalent to the Python expression self().

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     Python::with_gil(|py| -> PyResult<()> {
    @@ -255,9 +255,9 @@ 
    Examples
    Ok(()) })?;

    This is equivalent to the Python expression help().

    -

    pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> Result<&PyAny, PyErr>

    Calls the object with only positional arguments.

    +

    pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> Result<&PyAny, PyErr>

    Calls the object with only positional arguments.

    This is equivalent to the Python expression self(*args).

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     const CODE: &str = r#"
    @@ -279,14 +279,14 @@ 
    Examples
    &self, name: N, args: A, - kwargs: Option<&PyDict> -) -> Result<&PyAny, PyErr>
    where + kwargs: Option<&PyDict> +) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>, A: IntoPy<Py<PyTuple>>,

    Calls a method on the object.

    This is equivalent to the Python expression self.name(*args, **kwargs).

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     use pyo3::types::PyDict;
     
    @@ -309,12 +309,12 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with args and kwargs"); Ok(()) })
    -

    pub fn call_method0<N>(&self, name: N) -> Result<&PyAny, PyErr>
    where +

    pub fn call_method0<N>(&self, name: N) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>,

    Calls a method on the object without arguments.

    This is equivalent to the Python expression self.name().

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     const CODE: &str = r#"
    @@ -333,13 +333,13 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with no arguments"); Ok(()) })
    -

    pub fn call_method1<N, A>(&self, name: N, args: A) -> Result<&PyAny, PyErr>
    where +

    pub fn call_method1<N, A>(&self, name: N, args: A) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>, A: IntoPy<Py<PyTuple>>,

    Calls a method on the object with only positional arguments.

    This is equivalent to the Python expression self.name(*args).

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     const CODE: &str = r#"
    @@ -359,38 +359,38 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with args"); Ok(()) })
    -

    pub fn is_true(&self) -> Result<bool, PyErr>

    👎Deprecated since 0.21.0: use .is_truthy() instead

    Returns whether the object is considered to be true.

    +

    pub fn is_true(&self) -> Result<bool, PyErr>

    👎Deprecated since 0.21.0: use .is_truthy() instead

    Returns whether the object is considered to be true.

    This is equivalent to the Python expression bool(self).

    -

    pub fn is_truthy(&self) -> Result<bool, PyErr>

    Returns whether the object is considered to be true.

    +

    pub fn is_truthy(&self) -> Result<bool, PyErr>

    Returns whether the object is considered to be true.

    This applies truth value testing equivalent to the Python expression bool(self).

    -

    pub fn is_none(&self) -> bool

    Returns whether the object is considered to be None.

    +

    pub fn is_none(&self) -> bool

    Returns whether the object is considered to be None.

    This is equivalent to the Python expression self is None.

    -

    pub fn is_ellipsis(&self) -> bool

    👎Deprecated since 0.20.0: use .is(py.Ellipsis()) instead

    Returns whether the object is Ellipsis, e.g. ....

    +

    pub fn is_ellipsis(&self) -> bool

    👎Deprecated since 0.20.0: use .is(py.Ellipsis()) instead

    Returns whether the object is Ellipsis, e.g. ....

    This is equivalent to the Python expression self is ....

    -

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

    Returns true if the sequence or mapping has a length of 0.

    +

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

    Returns true if the sequence or mapping has a length of 0.

    This is equivalent to the Python expression len(self) == 0.

    -

    pub fn get_item<K>(&self, key: K) -> Result<&PyAny, PyErr>
    where +

    pub fn get_item<K>(&self, key: K) -> Result<&PyAny, PyErr>
    where K: ToPyObject,

    Gets an item from the collection.

    This is equivalent to the Python expression self[key].

    -

    pub fn set_item<K, V>(&self, key: K, value: V) -> Result<(), PyErr>
    where +

    pub fn set_item<K, V>(&self, key: K, value: V) -> Result<(), PyErr>
    where K: ToPyObject, V: ToPyObject,

    Sets a collection item value.

    This is equivalent to the Python expression self[key] = value.

    -

    pub fn del_item<K>(&self, key: K) -> Result<(), PyErr>
    where +

    pub fn del_item<K>(&self, key: K) -> Result<(), PyErr>
    where K: ToPyObject,

    Deletes an item from the collection.

    This is equivalent to the Python expression del self[key].

    -

    pub fn iter(&self) -> Result<&PyIterator, PyErr>

    Takes an object and returns an iterator for it.

    +

    pub fn iter(&self) -> Result<&PyIterator, PyErr>

    Takes an object and returns an iterator for it.

    This is typically a new iterator but if the argument is an iterator, this returns itself.

    pub fn get_type(&self) -> &PyType

    Returns the Python type object for this object’s type.

    -

    pub fn get_type_ptr(&self) -> *mut PyTypeObject

    Returns the Python type pointer for this object.

    -

    pub fn downcast<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where +

    pub fn get_type_ptr(&self) -> *mut PyTypeObject

    Returns the Python type pointer for this object.

    +

    pub fn downcast<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where T: PyTypeCheck<AsRefTarget = T>,

    Downcast this PyAny to a concrete Python type or pyclass.

    Note that you can often avoid downcasting yourself by just specifying the desired type in function or method signatures. However, manual downcasting is sometimes necessary.

    For extracting a Rust-only type, see PyAny::extract.

    -
    Example: Downcasting to a specific Python object
    +
    §Example: Downcasting to a specific Python object
    use pyo3::prelude::*;
     use pyo3::types::{PyDict, PyList};
     
    @@ -402,7 +402,7 @@ 
    assert!(any.downcast::<PyDict>().is_ok()); assert!(any.downcast::<PyList>().is_err()); });
    -
    Example: Getting a reference to a pyclass
    +
    §Example: Getting a reference to a pyclass

    This is useful if you want to mutate a PyObject that might actually be a pyclass.

    @@ -425,7 +425,7 @@
    assert_eq!(class_ref.i, 1); Ok(()) })
    -

    pub fn downcast_exact<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where +

    pub fn downcast_exact<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where T: PyTypeInfo<AsRefTarget = T>,

    Downcast this PyAny to a concrete Python type or pyclass (but not a subclass of it).

    It is almost always better to use [PyAny::downcast] because it accounts for Python subtyping. Use this method only when you do not want to allow subtypes.

    @@ -433,7 +433,7 @@
    PyAny::extract.

    -
    Example: Downcasting to a specific Python object but not a subtype
    +
    §Example: Downcasting to a specific Python object but not a subtype
    use pyo3::prelude::*;
     use pyo3::types::{PyBool, PyLong};
     
    @@ -449,89 +449,90 @@ 
    assert!(any.downcast_exact::<PyBool>().is_ok()); });
    -

    pub unsafe fn downcast_unchecked<T>(&self) -> &T
    where +

    pub unsafe fn downcast_unchecked<T>(&self) -> &T
    where T: HasPyGilRef<AsRefTarget = T>,

    Converts this PyAny to a concrete Python type without checking validity.

    -
    Safety
    +
    §Safety

    Callers must ensure that the type is valid or risk type confusion.

    -

    pub fn extract<'py, D>(&'py self) -> Result<D, PyErr>
    where - D: FromPyObject<'py>,

    Extracts some type from the Python object.

    -

    This is a wrapper function around [FromPyObject::extract()].

    -

    pub fn get_refcnt(&self) -> isize

    Returns the reference count for the Python object.

    -

    pub fn repr(&self) -> Result<&PyString, PyErr>

    Computes the “repr” representation of self.

    +

    pub fn extract<'py, D>(&'py self) -> Result<D, PyErr>
    where + D: FromPyObjectBound<'py, 'py>,

    Extracts some type from the Python object.

    +

    This is a wrapper function around +FromPyObject::extract().

    +

    pub fn get_refcnt(&self) -> isize

    Returns the reference count for the Python object.

    +

    pub fn repr(&self) -> Result<&PyString, PyErr>

    Computes the “repr” representation of self.

    This is equivalent to the Python expression repr(self).

    -

    pub fn str(&self) -> Result<&PyString, PyErr>

    Computes the “str” representation of self.

    +

    pub fn str(&self) -> Result<&PyString, PyErr>

    Computes the “str” representation of self.

    This is equivalent to the Python expression str(self).

    -

    pub fn hash(&self) -> Result<isize, PyErr>

    Retrieves the hash code of self.

    +

    pub fn hash(&self) -> Result<isize, PyErr>

    Retrieves the hash code of self.

    This is equivalent to the Python expression hash(self).

    -

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

    Returns the length of the sequence or mapping.

    +

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

    Returns the length of the sequence or mapping.

    This is equivalent to the Python expression len(self).

    pub fn dir(&self) -> &PyList

    Returns the list of attributes of this object.

    This is equivalent to the Python expression dir(self).

    -

    pub fn is_instance(&self, ty: &PyAny) -> Result<bool, PyErr>

    Checks whether this object is an instance of type ty.

    +

    pub fn is_instance(&self, ty: &PyAny) -> Result<bool, PyErr>

    Checks whether this object is an instance of type ty.

    This is equivalent to the Python expression isinstance(self, ty).

    -

    pub fn is_exact_instance(&self, ty: &PyAny) -> bool

    Checks whether this object is an instance of exactly type ty (not a subclass).

    +

    pub fn is_exact_instance(&self, ty: &PyAny) -> bool

    Checks whether this object is an instance of exactly type ty (not a subclass).

    This is equivalent to the Python expression type(self) is ty.

    -

    pub fn is_instance_of<T>(&self) -> bool
    where +

    pub fn is_instance_of<T>(&self) -> bool
    where T: PyTypeInfo,

    Checks whether this object is an instance of type T.

    This is equivalent to the Python expression isinstance(self, T), if the type T is known at compile time.

    -

    pub fn is_exact_instance_of<T>(&self) -> bool
    where +

    pub fn is_exact_instance_of<T>(&self) -> bool
    where T: PyTypeInfo,

    Checks whether this object is an instance of exactly type T.

    This is equivalent to the Python expression type(self) is T, if the type T is known at compile time.

    -

    pub fn contains<V>(&self, value: V) -> Result<bool, PyErr>
    where +

    pub fn contains<V>(&self, value: V) -> Result<bool, PyErr>
    where V: ToPyObject,

    Determines if self contains value.

    This is equivalent to the Python expression value in self.

    pub fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.

    -

    pub fn as_ptr(&self) -> *mut PyObject

    Returns the raw FFI pointer represented by self.

    -
    Safety
    +

    pub fn as_ptr(&self) -> *mut PyObject

    Returns the raw FFI pointer represented by self.

    +
    §Safety

    Callers are responsible for ensuring that the pointer does not outlive self.

    The reference is borrowed; callers should not decrease the reference count when they are finished with the pointer.

    -

    pub fn into_ptr(&self) -> *mut PyObject

    Returns an owned raw FFI pointer represented by self.

    -
    Safety
    +

    pub fn into_ptr(&self) -> *mut PyObject

    Returns an owned raw FFI pointer represented by self.

    +
    §Safety

    The reference is owned; when finished the caller should either transfer ownership of the pointer or decrease the reference count (e.g. with pyo3::ffi::Py_DecRef).

    -

    pub fn py_super(&self) -> Result<&PySuper, PyErr>

    Return a proxy object that delegates method calls to a parent or sibling class of type.

    +

    pub fn py_super(&self) -> Result<&PySuper, PyErr>

    Return a proxy object that delegates method calls to a parent or sibling class of type.

    This is equivalent to the Python expression super()

    -

    Trait Implementations§

    source§

    impl AsPyPointer for PyArrayDescr

    source§

    fn as_ptr(&self) -> *mut PyObject

    Gets the underlying FFI pointer, returns a borrowed pointer.

    -
    source§

    impl AsRef<PyAny> for PyArrayDescr

    source§

    fn as_ref(&self) -> &PyAny

    Converts this type into a shared reference of the (usually inferred) input type.
    source§

    impl Debug for PyArrayDescr

    source§

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

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

    impl Deref for PyArrayDescr

    §

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    source§

    impl Display for PyArrayDescr

    source§

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

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

    impl<'a> From<&'a PyArrayDescr> for &'a PyAny

    source§

    fn from(ob: &'a PyArrayDescr) -> Self

    Converts to this type from the input type.
    source§

    impl From<&PyArrayDescr> for Py<PyArrayDescr>

    source§

    fn from(other: &PyArrayDescr) -> Self

    Converts to this type from the input type.
    source§

    impl<'py> FromPyObject<'py> for &'py PyArrayDescr

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    source§

    impl IntoPy<Py<PyArrayDescr>> for &PyArrayDescr

    source§

    fn into_py(self, py: Python<'_>) -> Py<PyArrayDescr>

    Performs the conversion.
    source§

    impl PyNativeType for PyArrayDescr

    §

    type AsRefSource = PyArrayDescr

    The form of this which is stored inside a Py<T> smart pointer.
    §

    fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

    Cast &self to a Borrowed smart pointer. Read more
    §

    fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.
    §

    unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

    Cast &PyAny to &Self without no type checking. Read more
    source§

    impl PyTypeInfo for PyArrayDescr

    source§

    const NAME: &'static str = "PyArrayDescr"

    Class name.
    source§

    const MODULE: Option<&'static str> = _

    Module name, if any.
    source§

    fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

    Returns the PyTypeObject instance for this type.
    source§

    fn is_type_of(ob: &PyAny) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> &PyType

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_exact_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    source§

    impl ToPyObject for PyArrayDescr

    source§

    fn to_object(&self, py: Python<'_>) -> PyObject

    Converts self into a Python object.
    source§

    impl DerefToPyAny for PyArrayDescr

    Auto Trait Implementations§

    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> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl AsPyPointer for PyArrayDescr

    source§

    fn as_ptr(&self) -> *mut PyObject

    Gets the underlying FFI pointer, returns a borrowed pointer.

    +
    source§

    impl AsRef<PyAny> for PyArrayDescr

    source§

    fn as_ref(&self) -> &PyAny

    Converts this type into a shared reference of the (usually inferred) input type.
    source§

    impl Debug for PyArrayDescr

    source§

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

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

    impl Deref for PyArrayDescr

    §

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    source§

    impl Display for PyArrayDescr

    source§

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

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

    impl<'a> From<&'a PyArrayDescr> for &'a PyAny

    source§

    fn from(ob: &'a PyArrayDescr) -> Self

    Converts to this type from the input type.
    source§

    impl From<&PyArrayDescr> for Py<PyArrayDescr>

    source§

    fn from(other: &PyArrayDescr) -> Self

    Converts to this type from the input type.
    source§

    impl<'py> FromPyObject<'py> for &'py PyArrayDescr

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    source§

    impl IntoPy<Py<PyArrayDescr>> for &PyArrayDescr

    source§

    fn into_py(self, py: Python<'_>) -> Py<PyArrayDescr>

    Performs the conversion.
    source§

    impl PyNativeType for PyArrayDescr

    §

    type AsRefSource = PyArrayDescr

    The form of this which is stored inside a Py<T> smart pointer.
    §

    fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

    Cast &self to a Borrowed smart pointer. Read more
    §

    fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.
    §

    unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

    Cast &PyAny to &Self without no type checking. Read more
    source§

    impl PyTypeInfo for PyArrayDescr

    source§

    const NAME: &'static str = "PyArrayDescr"

    Class name.
    source§

    const MODULE: Option<&'static str> = _

    Module name, if any.
    source§

    fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

    Returns the PyTypeObject instance for this type.
    source§

    fn is_type_of(ob: &PyAny) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> &PyType

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_exact_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    source§

    impl ToPyObject for PyArrayDescr

    source§

    fn to_object(&self, py: Python<'_>) -> PyObject

    Converts self into a Python object.
    source§

    impl DerefToPyAny for PyArrayDescr

    Auto Trait Implementations§

    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> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<'p, T> FromPyPointer<'p> for T
    where T: 'p + PyNativeType,

    §

    unsafe fn from_owned_ptr_or_opt( py: Python<'p>, - ptr: *mut PyObject -) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_opt( + ptr: *mut PyObject +) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_opt( _py: Python<'p>, - ptr: *mut PyObject -) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_owned_ptr_or_panic( + ptr: *mut PyObject +) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_owned_ptr_or_panic( py: Python<'p>, - ptr: *mut PyObject -) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr_or_err( + ptr: *mut PyObject +) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr_or_err( py: Python<'p>, - ptr: *mut PyObject -) -> Result<&'p Self, PyErr>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_panic( + ptr: *mut PyObject +) -> Result<&'p Self, PyErr>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_panic( py: Python<'p>, - ptr: *mut PyObject -) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_err( + ptr: *mut PyObject +) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_err( py: Python<'p>, - ptr: *mut PyObject -) -> Result<&'p Self, PyErr>

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    impl<T> HasPyGilRef for T
    where - T: PyNativeType,

    §

    type AsRefTarget = T

    Utility type to make Py::as_ref work.
    source§

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

    source§

    fn into(self) -> U

    Calls U::from(self).

    + ptr: *mut PyObject +) -> Result<&'p Self, PyErr>
    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    impl<T> HasPyGilRef for T
    where + T: PyNativeType,

    §

    type AsRefTarget = T

    Utility type to make Py::as_ref work.
    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.

    +From<T> for U chooses to do.

    §

    impl<'v, T> PyTryFrom<'v> for T
    where - T: PyTypeInfo<AsRefTarget = T> + PyNativeType,

    §

    fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where - V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast::<T>() instead of T::try_from(value)
    Cast from a concrete Python object type to PyObject.
    §

    fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where - V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_exact::<T>() instead of T::try_from_exact(value)
    Cast from a concrete Python object type to PyObject. With exact type check.
    §

    unsafe fn try_from_unchecked<V>(value: V) -> &'v T
    where - V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_unchecked::<T>() instead of T::try_from_unchecked(value)
    Cast a PyAny to a specific type of PyObject. The caller must + T: PyTypeInfo<AsRefTarget = T> + PyNativeType,
    §

    fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where + V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast::<T>() instead of T::try_from(value)
    Cast from a concrete Python object type to PyObject.
    §

    fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where + V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_exact::<T>() instead of T::try_from_exact(value)
    Cast from a concrete Python object type to PyObject. With exact type check.
    §

    unsafe fn try_from_unchecked<V>(value: V) -> &'v T
    where + V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_unchecked::<T>() instead of T::try_from_unchecked(value)
    Cast a PyAny to a specific type of PyObject. The caller must have already verified the reference is for this type. Read more
    §

    impl<T> PyTypeCheck for T
    where - T: PyTypeInfo,

    §

    const NAME: &'static str = <T as PyTypeInfo>::NAME

    Name of self. This is used in error messages, for example.
    §

    fn type_check(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of Self, which may include a subtype. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    \ No newline at end of file + T: PyTypeInfo,
    §

    const NAME: &'static str = <T as PyTypeInfo>::NAME

    Name of self. This is used in error messages, for example.
    §

    fn type_check(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of Self, which may include a subtype. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where + SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/struct.PyArrayLike.html b/numpy/struct.PyArrayLike.html index eed610e82..286fc5e43 100644 --- a/numpy/struct.PyArrayLike.html +++ b/numpy/struct.PyArrayLike.html @@ -1,4 +1,4 @@ -PyArrayLike in numpy - Rust +PyArrayLike in numpy - Rust

    Struct numpy::PyArrayLike

    source ·
    pub struct PyArrayLike<'py, T, D, C = TypeMustMatch>(/* private fields */)
     where
         T: Element,
    @@ -10,7 +10,7 @@
     or a temporary one created by converting the input type into a NumPy array.

    Depending on whether TypeMustMatch or AllowTypeChange is used for the C type parameter, the element type must either match the specific type T exactly or will be cast to it by NumPy’s asarray.

    -

    Example

    +

    §Example

    PyArrayLike1<'py, T, TypeMustMatch> will enable you to receive both NumPy arrays and sequences

    use pyo3::py_run;
    @@ -62,13 +62,13 @@ 

    Example

    py_run!(py, np sum_up, r"assert sum_up((1.5, 2.5)) == 3"); });
    -

    Methods from Deref<Target = PyReadonlyArray<'py, T, D>>§

    source

    pub fn as_array(&self) -> ArrayView<'_, T, D>

    Provides an immutable array view of the interior of the NumPy array.

    -
    source

    pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

    Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

    -
    source

    pub fn get<I>(&self, index: I) -> Option<&T>
    where +

    Methods from Deref<Target = PyReadonlyArray<'py, T, D>>§

    source

    pub fn as_array(&self) -> ArrayView<'_, T, D>

    Provides an immutable array view of the interior of the NumPy array.

    +
    source

    pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

    Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

    +
    source

    pub fn get<I>(&self, index: I) -> Option<&T>
    where I: NpyIndex<Dim = D>,

    Provide an immutable reference to an element of the NumPy array if the index is within bounds.

    source

    pub fn try_as_matrix<R, C, RStride, CStride>( &self -) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
    where +) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
    where R: Dim, C: Dim, RStride: Dim, @@ -106,16 +106,16 @@

    Example

    py_run!(py, np sum_dynamic_strides, r"assert sum_dynamic_strides(np.ones((2, 2, 2))[:,:,0]) == 4."); });

    source

    pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

    Convert this one-dimensional array into a nalgebra::DMatrixView using dynamic strides.

    -
    Panics
    +
    §Panics

    Panics if the array has negative strides.

    source

    pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

    Convert this two-dimensional array into a nalgebra::DMatrixView using dynamic strides.

    -
    Panics
    +
    §Panics

    Panics if the array has negative strides.

    -

    Methods from Deref<Target = Bound<'py, PyArray<T, D>>>§

    pub fn borrow(&self) -> PyRef<'py, T>

    Immutably borrows the value T.

    +

    Methods from Deref<Target = Bound<'py, PyArray<T, D>>>§

    pub fn borrow(&self) -> PyRef<'py, T>

    Immutably borrows the value T.

    This borrow lasts while the returned [PyRef] exists. Multiple immutable borrows can be taken out at the same time.

    For frozen classes, the simpler [get][Self::get] is available.

    -
    Examples
    +
    §Examples
    #[pyclass]
     struct Foo {
         inner: u8,
    @@ -128,13 +128,13 @@ 
    Examples
    assert_eq!(*inner, 73); Ok(()) })?;
    -
    Panics
    +
    §Panics

    Panics if the value is currently mutably borrowed. For a non-panicking variant, use try_borrow.

    pub fn borrow_mut(&self) -> PyRefMut<'py, T>
    where T: PyClass<Frozen = False>,

    Mutably borrows the value T.

    This borrow lasts while the returned [PyRefMut] exists.

    -
    Examples
    +
    §Examples
    #[pyclass]
     struct Foo {
         inner: u8,
    @@ -147,21 +147,21 @@ 
    Examples
    assert_eq!(foo.borrow().inner, 35); Ok(()) })?;
    -
    Panics
    +
    §Panics

    Panics if the value is currently borrowed. For a non-panicking variant, use try_borrow_mut.

    -

    pub fn try_borrow(&self) -> Result<PyRef<'py, T>, PyBorrowError>

    Attempts to immutably borrow the value T, returning an error if the value is currently mutably borrowed.

    +

    pub fn try_borrow(&self) -> Result<PyRef<'py, T>, PyBorrowError>

    Attempts to immutably borrow the value T, returning an error if the value is currently mutably borrowed.

    The borrow lasts while the returned [PyRef] exists.

    This is the non-panicking variant of borrow.

    For frozen classes, the simpler [get][Self::get] is available.

    -

    pub fn try_borrow_mut(&self) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
    where +

    pub fn try_borrow_mut(&self) -> Result<PyRefMut<'py, T>, PyBorrowMutError>
    where T: PyClass<Frozen = False>,

    Attempts to mutably borrow the value T, returning an error if the value is currently borrowed.

    The borrow lasts while the returned [PyRefMut] exists.

    This is the non-panicking variant of borrow_mut.

    -

    pub fn get(&self) -> &T
    where - T: PyClass<Frozen = True> + Sync,

    Provide an immutable borrow of the value T without acquiring the GIL.

    -

    This is available if the class is [frozen][macro@crate::pyclass] and Sync.

    -
    Examples
    +

    pub fn get(&self) -> &T
    where + T: PyClass<Frozen = True> + Sync,

    Provide an immutable borrow of the value T without acquiring the GIL.

    +

    This is available if the class is [frozen][macro@crate::pyclass] and Sync.

    +
    §Examples
    use std::sync::atomic::{AtomicUsize, Ordering};
     
     #[pyclass(frozen)]
    @@ -177,43 +177,45 @@ 
    Examples
    py_counter.get().value.fetch_add(1, Ordering::Relaxed); });

    pub fn py(&self) -> Python<'py>

    Returns the GIL token associated with this object.

    -

    pub fn as_ptr(&self) -> *mut PyObject

    Returns the raw FFI pointer represented by self.

    -
    Safety
    +

    pub fn as_ptr(&self) -> *mut PyObject

    Returns the raw FFI pointer represented by self.

    +
    §Safety

    Callers are responsible for ensuring that the pointer does not outlive self.

    The reference is borrowed; callers should not decrease the reference count when they are finished with the pointer.

    pub fn as_any(&self) -> &Bound<'py, PyAny>

    Helper to cast to Bound<'py, PyAny>.

    pub fn as_borrowed<'a>(&'a self) -> Borrowed<'a, 'py, T>

    Casts this Bound<T> to a Borrowed<T> smart pointer.

    +

    pub fn as_unbound(&self) -> &Py<T>

    Removes the connection for this Bound<T> from the GIL, allowing +it to cross thread boundaries, without transferring ownership.

    pub fn as_gil_ref(&'py self) -> &'py <T as HasPyGilRef>::AsRefTarget
    where T: HasPyGilRef,

    Casts this Bound<T> as the corresponding “GIL Ref” type.

    This is a helper to be used for migration from the deprecated “GIL Refs” API.

    -

    Trait Implementations§

    source§

    impl<'py, T, D, C> Debug for PyArrayLike<'py, T, D, C>
    where - T: Element + Debug, - D: Dimension + Debug, - C: Coerce + Debug,

    source§

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

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

    impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where +

    Trait Implementations§

    source§

    impl<'py, T, D, C> Debug for PyArrayLike<'py, T, D, C>
    where + T: Element + Debug, + D: Dimension + Debug, + C: Coerce + Debug,

    source§

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

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

    impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where T: Element, D: Dimension, - C: Coerce,

    §

    type Target = PyReadonlyArray<'py, T, D>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    source§

    impl<'py, T, D, C> FromPyObject<'py> for PyArrayLike<'py, T, D, C>
    where + C: Coerce,

    §

    type Target = PyReadonlyArray<'py, T, D>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    source§

    impl<'py, T, D, C> FromPyObject<'py> for PyArrayLike<'py, T, D, C>
    where T: Element + 'py, D: Dimension + 'py, C: Coerce, - Vec<T>: FromPyObject<'py>,

    source§

    fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more

    Auto Trait Implementations§

    §

    impl<'py, T, D, C = TypeMustMatch> !RefUnwindSafe for PyArrayLike<'py, T, D, C>

    §

    impl<'py, T, D, C = TypeMustMatch> !Send for PyArrayLike<'py, T, D, C>

    §

    impl<'py, T, D, C = TypeMustMatch> !Sync for PyArrayLike<'py, T, D, C>

    §

    impl<'py, T, D, C> Unpin for PyArrayLike<'py, T, D, C>
    where - C: Unpin, - D: Unpin, - T: Unpin,

    §

    impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where - C: UnwindSafe, - D: UnwindSafe, - 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> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + Vec<T>: FromPyObject<'py>,
    source§

    fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more

    Auto Trait Implementations§

    §

    impl<'py, T, D, C = TypeMustMatch> !RefUnwindSafe for PyArrayLike<'py, T, D, C>

    §

    impl<'py, T, D, C = TypeMustMatch> !Send for PyArrayLike<'py, T, D, C>

    §

    impl<'py, T, D, C = TypeMustMatch> !Sync for PyArrayLike<'py, T, D, C>

    §

    impl<'py, T, D, C> Unpin for PyArrayLike<'py, T, D, C>
    where + C: Unpin, + D: Unpin, + T: Unpin,

    §

    impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where + C: UnwindSafe, + D: UnwindSafe, + 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> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<'py, T> FromPyObjectBound<'_, 'py> for T
    where - T: FromPyObject<'py>,

    §

    fn from_py_object_bound(ob: &Bound<'py, PyAny>) -> Result<T, PyErr>

    Extracts Self from the bound smart pointer obj. Read more
    source§

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

    source§

    fn into(self) -> U

    Calls U::from(self).

    + T: FromPyObject<'py>,
    §

    fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>

    Extracts Self from the bound smart pointer obj. Read more
    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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/struct.PyFixedString.html b/numpy/struct.PyFixedString.html index ffce4c2f7..eb91a686d 100644 --- a/numpy/struct.PyFixedString.html +++ b/numpy/struct.PyFixedString.html @@ -1,5 +1,5 @@ -PyFixedString in numpy - Rust -

    Struct numpy::PyFixedString

    source ·
    #[repr(transparent)]
    pub struct PyFixedString<const N: usize>(pub [Py_UCS1; N]);
    Expand description

    A newtype wrapper around [[u8; N]][Py_UCS1] to handle byte scalars while satisfying coherence.

    +PyFixedString in numpy - Rust +

    Struct numpy::PyFixedString

    source ·
    #[repr(transparent)]
    pub struct PyFixedString<const N: usize>(pub [Py_UCS1; N]);
    Expand description

    A newtype wrapper around [[u8; N]][Py_UCS1] to handle byte scalars while satisfying coherence.

    Note that when creating arrays of ASCII strings without an explicit dtype, NumPy will automatically determine the smallest possible array length at runtime.

    For example,

    @@ -12,35 +12,35 @@
    numpy.array([b"foo", b"bar", b"foobar"], dtype='S12')
     

    always matching PyArray1<PyFixedString<12>>.

    -

    Example

    -
    use numpy::{PyArray1, PyFixedString};
    +

    §Example

    +
    use numpy::{PyArray1, PyUntypedArrayMethods, PyFixedString};
     
    -let array = PyArray1::<PyFixedString<3>>::from_vec(py, vec![[b'f', b'o', b'o'].into()]);
    +let array = PyArray1::<PyFixedString<3>>::from_vec_bound(py, vec![[b'f', b'o', b'o'].into()]);
     
     assert!(array.dtype().to_string().contains("S3"));
    -

    Tuple Fields§

    §0: [Py_UCS1; N]

    Trait Implementations§

    source§

    impl<const N: usize> Clone for PyFixedString<N>

    source§

    fn clone(&self) -> PyFixedString<N>

    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<const N: usize> Debug for PyFixedString<N>

    source§

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

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

    impl<const N: usize> Display for PyFixedString<N>

    source§

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

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

    impl<const N: usize> Element for PyFixedString<N>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<const N: usize> From<[u8; N]> for PyFixedString<N>

    source§

    fn from(val: [Py_UCS1; N]) -> Self

    Converts to this type from the input type.
    source§

    impl<const N: usize> Hash for PyFixedString<N>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<const N: usize> Ord for PyFixedString<N>

    source§

    fn cmp(&self, other: &PyFixedString<N>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<const N: usize> PartialEq for PyFixedString<N>

    source§

    fn eq(&self, other: &PyFixedString<N>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl<const N: usize> PartialOrd for PyFixedString<N>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl<const N: usize> Copy for PyFixedString<N>

    source§

    impl<const N: usize> Eq for PyFixedString<N>

    source§

    impl<const N: usize> StructuralEq for PyFixedString<N>

    source§

    impl<const N: usize> StructuralPartialEq for PyFixedString<N>

    Auto Trait Implementations§

    §

    impl<const N: usize> RefUnwindSafe for PyFixedString<N>

    §

    impl<const N: usize> Send for PyFixedString<N>

    §

    impl<const N: usize> Sync for PyFixedString<N>

    §

    impl<const N: usize> Unpin for PyFixedString<N>

    §

    impl<const N: usize> UnwindSafe for PyFixedString<N>

    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> 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).

    +

    Tuple Fields§

    §0: [Py_UCS1; N]

    Trait Implementations§

    source§

    impl<const N: usize> Clone for PyFixedString<N>

    source§

    fn clone(&self) -> PyFixedString<N>

    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<const N: usize> Debug for PyFixedString<N>

    source§

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

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

    impl<const N: usize> Display for PyFixedString<N>

    source§

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

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

    impl<const N: usize> Element for PyFixedString<N>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<const N: usize> From<[u8; N]> for PyFixedString<N>

    source§

    fn from(val: [Py_UCS1; N]) -> Self

    Converts to this type from the input type.
    source§

    impl<const N: usize> Hash for PyFixedString<N>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<const N: usize> Ord for PyFixedString<N>

    source§

    fn cmp(&self, other: &PyFixedString<N>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<const N: usize> PartialEq for PyFixedString<N>

    source§

    fn eq(&self, other: &PyFixedString<N>) -> bool

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl<const N: usize> PartialOrd for PyFixedString<N>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl<const N: usize> Copy for PyFixedString<N>

    source§

    impl<const N: usize> Eq for PyFixedString<N>

    source§

    impl<const N: usize> StructuralPartialEq for PyFixedString<N>

    Auto Trait Implementations§

    §

    impl<const N: usize> RefUnwindSafe for PyFixedString<N>

    §

    impl<const N: usize> Send for PyFixedString<N>

    §

    impl<const N: usize> Sync for PyFixedString<N>

    §

    impl<const N: usize> Unpin for PyFixedString<N>

    §

    impl<const N: usize> UnwindSafe for PyFixedString<N>

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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§

    default 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>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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§

    default 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>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/struct.PyFixedUnicode.html b/numpy/struct.PyFixedUnicode.html index 1e93b9d68..71d9f68e3 100644 --- a/numpy/struct.PyFixedUnicode.html +++ b/numpy/struct.PyFixedUnicode.html @@ -1,5 +1,5 @@ -PyFixedUnicode in numpy - Rust -

    Struct numpy::PyFixedUnicode

    source ·
    #[repr(transparent)]
    pub struct PyFixedUnicode<const N: usize>(pub [Py_UCS4; N]);
    Expand description

    A newtype wrapper around [[PyUCS4; N]][Py_UCS4] to handle str_ scalars while satisfying coherence.

    +PyFixedUnicode in numpy - Rust +

    Struct numpy::PyFixedUnicode

    source ·
    #[repr(transparent)]
    pub struct PyFixedUnicode<const N: usize>(pub [Py_UCS4; N]);
    Expand description

    A newtype wrapper around [[PyUCS4; N]][Py_UCS4] to handle str_ scalars while satisfying coherence.

    Note that when creating arrays of Unicode strings without an explicit dtype, NumPy will automatically determine the smallest possible array length at runtime.

    For example,

    @@ -12,35 +12,35 @@
    numpy.array(["foo🐍", "bar🦀", "foobar"], dtype='U12')
     

    always matching PyArray1<PyFixedUnicode<12>>.

    -

    Example

    -
    use numpy::{PyArray1, PyFixedUnicode};
    +

    §Example

    +
    use numpy::{PyArray1, PyUntypedArrayMethods, PyFixedUnicode};
     
    -let array = PyArray1::<PyFixedUnicode<3>>::from_vec(py, vec![[b'b' as _, b'a' as _, b'r' as _].into()]);
    +let array = PyArray1::<PyFixedUnicode<3>>::from_vec_bound(py, vec![[b'b' as _, b'a' as _, b'r' as _].into()]);
     
     assert!(array.dtype().to_string().contains("U3"));
    -

    Tuple Fields§

    §0: [Py_UCS4; N]

    Trait Implementations§

    source§

    impl<const N: usize> Clone for PyFixedUnicode<N>

    source§

    fn clone(&self) -> PyFixedUnicode<N>

    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<const N: usize> Debug for PyFixedUnicode<N>

    source§

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

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

    impl<const N: usize> Display for PyFixedUnicode<N>

    source§

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

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

    impl<const N: usize> Element for PyFixedUnicode<N>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<const N: usize> From<[u32; N]> for PyFixedUnicode<N>

    source§

    fn from(val: [Py_UCS4; N]) -> Self

    Converts to this type from the input type.
    source§

    impl<const N: usize> Hash for PyFixedUnicode<N>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where - H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<const N: usize> Ord for PyFixedUnicode<N>

    source§

    fn cmp(&self, other: &PyFixedUnicode<N>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<const N: usize> PartialEq for PyFixedUnicode<N>

    source§

    fn eq(&self, other: &PyFixedUnicode<N>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl<const N: usize> PartialOrd for PyFixedUnicode<N>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl<const N: usize> Copy for PyFixedUnicode<N>

    source§

    impl<const N: usize> Eq for PyFixedUnicode<N>

    source§

    impl<const N: usize> StructuralEq for PyFixedUnicode<N>

    source§

    impl<const N: usize> StructuralPartialEq for PyFixedUnicode<N>

    Auto Trait Implementations§

    §

    impl<const N: usize> RefUnwindSafe for PyFixedUnicode<N>

    §

    impl<const N: usize> Send for PyFixedUnicode<N>

    §

    impl<const N: usize> Sync for PyFixedUnicode<N>

    §

    impl<const N: usize> Unpin for PyFixedUnicode<N>

    §

    impl<const N: usize> UnwindSafe for PyFixedUnicode<N>

    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> 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).

    +

    Tuple Fields§

    §0: [Py_UCS4; N]

    Trait Implementations§

    source§

    impl<const N: usize> Clone for PyFixedUnicode<N>

    source§

    fn clone(&self) -> PyFixedUnicode<N>

    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<const N: usize> Debug for PyFixedUnicode<N>

    source§

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

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

    impl<const N: usize> Display for PyFixedUnicode<N>

    source§

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

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

    impl<const N: usize> Element for PyFixedUnicode<N>

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    impl<const N: usize> From<[u32; N]> for PyFixedUnicode<N>

    source§

    fn from(val: [Py_UCS4; N]) -> Self

    Converts to this type from the input type.
    source§

    impl<const N: usize> Hash for PyFixedUnicode<N>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher, + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl<const N: usize> Ord for PyFixedUnicode<N>

    source§

    fn cmp(&self, other: &PyFixedUnicode<N>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl<const N: usize> PartialEq for PyFixedUnicode<N>

    source§

    fn eq(&self, other: &PyFixedUnicode<N>) -> bool

    This method tests for self and other values to be equal, and is used +by ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
    source§

    impl<const N: usize> PartialOrd for PyFixedUnicode<N>

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <= +operator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >= +operator. Read more
    source§

    impl<const N: usize> Copy for PyFixedUnicode<N>

    source§

    impl<const N: usize> Eq for PyFixedUnicode<N>

    source§

    impl<const N: usize> StructuralPartialEq for PyFixedUnicode<N>

    Auto Trait Implementations§

    §

    impl<const N: usize> RefUnwindSafe for PyFixedUnicode<N>

    §

    impl<const N: usize> Send for PyFixedUnicode<N>

    §

    impl<const N: usize> Sync for PyFixedUnicode<N>

    §

    impl<const N: usize> Unpin for PyFixedUnicode<N>

    §

    impl<const N: usize> UnwindSafe for PyFixedUnicode<N>

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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§

    default 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>,

    §

    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>,

    §

    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> Scalar for T
    where - T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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§

    default 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>,

    §

    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>,

    §

    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> Scalar for T
    where + T: 'static + Clone + PartialEq + Debug,

    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/struct.PyUntypedArray.html b/numpy/struct.PyUntypedArray.html index 4d71fe011..c4fec5bb1 100644 --- a/numpy/struct.PyUntypedArray.html +++ b/numpy/struct.PyUntypedArray.html @@ -1,10 +1,10 @@ -PyUntypedArray in numpy - Rust +PyUntypedArray in numpy - Rust

    Struct numpy::PyUntypedArray

    source ·
    pub struct PyUntypedArray(/* private fields */);
    Expand description

    A safe, untyped wrapper for NumPy’s ndarray class.

    Unlike PyArray<T,D>, this type does not constrain either element type T nor the dimensionality D. This can be useful to inspect function arguments, but it prevents operating on the elements without further downcasts.

    When both element type T and index type D are known, these values can be downcast to PyArray<T, D>. In addition, PyArray<T, D> can be dereferenced to a PyUntypedArray and can therefore automatically access its methods.

    -

    Example

    +

    §Example

    Taking PyUntypedArray can be helpful to implement polymorphic entry points:

    use pyo3::exceptions::PyTypeError;
    @@ -33,21 +33,22 @@ 

    Example

    Err(PyTypeError::new_err(format!("Unsupported element type: {}", element_type))) } }
    -

    Implementations§

    source§

    impl PyUntypedArray

    source

    pub fn as_array_ptr(&self) -> *mut PyArrayObject

    Returns a raw pointer to the underlying PyArrayObject.

    -
    source

    pub fn dtype(&self) -> &PyArrayDescr

    Returns the dtype of the array.

    +

    Implementations§

    source§

    impl PyUntypedArray

    source

    pub fn as_array_ptr(&self) -> *mut PyArrayObject

    Returns a raw pointer to the underlying PyArrayObject.

    +
    source

    pub fn dtype(&self) -> &PyArrayDescr

    Returns the dtype of the array.

    See also ndarray.dtype and PyArray_DTYPE.

    -
    Example
    -
    use numpy::{dtype_bound, PyArray};
    +
    §Example
    +
    use numpy::prelude::*;
    +use numpy::{dtype_bound, PyArray};
     use pyo3::Python;
     
     Python::with_gil(|py| {
    -   let array = PyArray::from_vec(py, vec![1_i32, 2, 3]);
    +   let array = PyArray::from_vec_bound(py, vec![1_i32, 2, 3]);
     
    -   assert!(array.dtype().is_equiv_to(dtype_bound::<i32>(py).as_gil_ref()));
    +   assert!(array.dtype().is_equiv_to(&dtype_bound::<i32>(py)));
     });
    -
    source

    pub fn is_contiguous(&self) -> bool

    Returns true if the internal data of the array is contiguous, +

    source

    pub fn is_contiguous(&self) -> bool

    Returns true if the internal data of the array is contiguous, indepedently of whether C-style/row-major or Fortran-style/column-major.

    -
    Example
    +
    §Example
    use numpy::{PyArray1, PyUntypedArrayMethods};
     use pyo3::{types::{IntoPyDict, PyAnyMethods}, Python};
     
    @@ -62,11 +63,11 @@ 
    Example
    .unwrap(); assert!(!view.is_contiguous()); });
    -
    source

    pub fn is_fortran_contiguous(&self) -> bool

    Returns true if the internal data of the array is Fortran-style/column-major contiguous.

    -
    source

    pub fn is_c_contiguous(&self) -> bool

    Returns true if the internal data of the array is C-style/row-major contiguous.

    -
    source

    pub fn ndim(&self) -> usize

    Returns the number of dimensions of the array.

    +
    source

    pub fn is_fortran_contiguous(&self) -> bool

    Returns true if the internal data of the array is Fortran-style/column-major contiguous.

    +
    source

    pub fn is_c_contiguous(&self) -> bool

    Returns true if the internal data of the array is C-style/row-major contiguous.

    +
    source

    pub fn ndim(&self) -> usize

    Returns the number of dimensions of the array.

    See also ndarray.ndim and PyArray_NDIM.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -75,9 +76,9 @@ 
    Example
    assert_eq!(arr.ndim(), 3); });
    -
    source

    pub fn strides(&self) -> &[isize]

    Returns a slice indicating how many bytes to advance when iterating along each axis.

    +
    source

    pub fn strides(&self) -> &[isize]

    Returns a slice indicating how many bytes to advance when iterating along each axis.

    See also ndarray.strides and PyArray_STRIDES.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -86,9 +87,9 @@ 
    Example
    assert_eq!(arr.strides(), &[240, 48, 8]); });
    -
    source

    pub fn shape(&self) -> &[usize]

    Returns a slice which contains dimmensions of the array.

    +
    source

    pub fn shape(&self) -> &[usize]

    Returns a slice which contains dimmensions of the array.

    See also [ndarray.shape][ndaray-shape] and PyArray_DIMS.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -97,50 +98,50 @@ 
    Example
    assert_eq!(arr.shape(), &[4, 5, 6]); });
    -
    source

    pub fn len(&self) -> usize

    Calculates the total number of elements in the array.

    -
    source

    pub fn is_empty(&self) -> bool

    Returns true if the there are no elements in the array.

    -

    Methods from Deref<Target = PyAny>§

    pub fn is<T>(&self, other: &T) -> bool
    where +

    source

    pub fn len(&self) -> usize

    Calculates the total number of elements in the array.

    +
    source

    pub fn is_empty(&self) -> bool

    Returns true if the there are no elements in the array.

    +

    Methods from Deref<Target = PyAny>§

    pub fn is<T>(&self, other: &T) -> bool
    where T: AsPyPointer,

    Returns whether self and other point to the same object. To compare the equality of two objects (the == operator), use eq.

    This is equivalent to the Python expression self is other.

    -

    pub fn hasattr<N>(&self, attr_name: N) -> Result<bool, PyErr>
    where +

    pub fn hasattr<N>(&self, attr_name: N) -> Result<bool, PyErr>
    where N: IntoPy<Py<PyString>>,

    Determines whether this object has the given attribute.

    This is equivalent to the Python expression hasattr(self, attr_name).

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

    -
    Example: intern!ing the attribute name
    +
    §Example: intern!ing the attribute name
    #[pyfunction]
     fn has_version(sys: &Bound<'_, PyModule>) -> PyResult<bool> {
         sys.hasattr(intern!(sys.py(), "version"))
     }
    -

    pub fn getattr<N>(&self, attr_name: N) -> Result<&PyAny, PyErr>
    where +

    pub fn getattr<N>(&self, attr_name: N) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>,

    Retrieves an attribute value.

    This is equivalent to the Python expression self.attr_name.

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

    -
    Example: intern!ing the attribute name
    +
    §Example: intern!ing the attribute name
    #[pyfunction]
     fn version<'py>(sys: &Bound<'py, PyModule>) -> PyResult<Bound<'py, PyAny>> {
         sys.getattr(intern!(sys.py(), "version"))
     }
    -

    pub fn setattr<N, V>(&self, attr_name: N, value: V) -> Result<(), PyErr>
    where +

    pub fn setattr<N, V>(&self, attr_name: N, value: V) -> Result<(), PyErr>
    where N: IntoPy<Py<PyString>>, V: ToPyObject,

    Sets an attribute value.

    This is equivalent to the Python expression self.attr_name = value.

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Example: intern!ing the attribute name
    +
    §Example: intern!ing the attribute name
    #[pyfunction]
     fn set_answer(ob: &Bound<'_, PyAny>) -> PyResult<()> {
         ob.setattr(intern!(ob.py(), "answer"), 42)
     }
    -

    pub fn delattr<N>(&self, attr_name: N) -> Result<(), PyErr>
    where +

    pub fn delattr<N>(&self, attr_name: N) -> Result<(), PyErr>
    where N: IntoPy<Py<PyString>>,

    Deletes an attribute.

    This is equivalent to the Python statement del self.attr_name.

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern attr_name.

    -

    pub fn compare<O>(&self, other: O) -> Result<Ordering, PyErr>
    where - O: ToPyObject,

    Returns an Ordering between self and other.

    +

    pub fn compare<O>(&self, other: O) -> Result<Ordering, PyErr>
    where + O: ToPyObject,

    Returns an Ordering between self and other.

    This is equivalent to the following Python code:

    if self == other:
         return Equal
    @@ -150,7 +151,7 @@ 
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     use pyo3::types::PyFloat;
     use std::cmp::Ordering;
    @@ -176,7 +177,7 @@ 
    Result<&PyAny, PyErr>
    where +) -> Result<&PyAny, PyErr>
    where O: ToPyObject,

    Tests whether two Python objects obey a given [CompareOp].

    lt, le, eq, ne, gt and ge are the specialized versions @@ -191,7 +192,7 @@

    [CompareOp::Gt]self > other [CompareOp::Ge]self >= other -
    Examples
    +
    §Examples
    use pyo3::class::basic::CompareOp;
     use pyo3::prelude::*;
     use pyo3::types::PyInt;
    @@ -202,27 +203,27 @@ 
    assert!(a.rich_compare(b, CompareOp::Le)?.is_truthy()?); Ok(()) })?;
    -

    pub fn lt<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn lt<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is less than another.

    This is equivalent to the Python expression self < other.

    -

    pub fn le<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn le<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is less than or equal to another.

    This is equivalent to the Python expression self <= other.

    -

    pub fn eq<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn eq<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is equal to another.

    This is equivalent to the Python expression self == other.

    -

    pub fn ne<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn ne<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is not equal to another.

    This is equivalent to the Python expression self != other.

    -

    pub fn gt<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn gt<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is greater than another.

    This is equivalent to the Python expression self > other.

    -

    pub fn ge<O>(&self, other: O) -> Result<bool, PyErr>
    where +

    pub fn ge<O>(&self, other: O) -> Result<bool, PyErr>
    where O: ToPyObject,

    Tests whether this object is greater than or equal to another.

    This is equivalent to the Python expression self >= other.

    -

    pub fn is_callable(&self) -> bool

    Determines whether this object appears callable.

    +

    pub fn is_callable(&self) -> bool

    Determines whether this object appears callable.

    This is equivalent to Python’s callable() function.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     Python::with_gil(|py| -> PyResult<()> {
    @@ -239,10 +240,10 @@ 
    Examples

    pub fn call( &self, args: impl IntoPy<Py<PyTuple>>, - kwargs: Option<&PyDict> -) -> Result<&PyAny, PyErr>

    Calls the object.

    + kwargs: Option<&PyDict> +) -> Result<&PyAny, PyErr>

    Calls the object.

    This is equivalent to the Python expression self(*args, **kwargs).

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     use pyo3::types::PyDict;
     
    @@ -263,9 +264,9 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with args and kwargs"); Ok(()) })
    -

    pub fn call0(&self) -> Result<&PyAny, PyErr>

    Calls the object without arguments.

    +

    pub fn call0(&self) -> Result<&PyAny, PyErr>

    Calls the object without arguments.

    This is equivalent to the Python expression self().

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     Python::with_gil(|py| -> PyResult<()> {
    @@ -275,9 +276,9 @@ 
    Examples
    Ok(()) })?;

    This is equivalent to the Python expression help().

    -

    pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> Result<&PyAny, PyErr>

    Calls the object with only positional arguments.

    +

    pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> Result<&PyAny, PyErr>

    Calls the object with only positional arguments.

    This is equivalent to the Python expression self(*args).

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     const CODE: &str = r#"
    @@ -299,14 +300,14 @@ 
    Examples
    &self, name: N, args: A, - kwargs: Option<&PyDict> -) -> Result<&PyAny, PyErr>
    where + kwargs: Option<&PyDict> +) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>, A: IntoPy<Py<PyTuple>>,

    Calls a method on the object.

    This is equivalent to the Python expression self.name(*args, **kwargs).

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     use pyo3::types::PyDict;
     
    @@ -329,12 +330,12 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with args and kwargs"); Ok(()) })
    -

    pub fn call_method0<N>(&self, name: N) -> Result<&PyAny, PyErr>
    where +

    pub fn call_method0<N>(&self, name: N) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>,

    Calls a method on the object without arguments.

    This is equivalent to the Python expression self.name().

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     const CODE: &str = r#"
    @@ -353,13 +354,13 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with no arguments"); Ok(()) })
    -

    pub fn call_method1<N, A>(&self, name: N, args: A) -> Result<&PyAny, PyErr>
    where +

    pub fn call_method1<N, A>(&self, name: N, args: A) -> Result<&PyAny, PyErr>
    where N: IntoPy<Py<PyString>>, A: IntoPy<Py<PyTuple>>,

    Calls a method on the object with only positional arguments.

    This is equivalent to the Python expression self.name(*args).

    To avoid repeated temporary allocations of Python strings, the [intern!] macro can be used to intern name.

    -
    Examples
    +
    §Examples
    use pyo3::prelude::*;
     
     const CODE: &str = r#"
    @@ -379,38 +380,38 @@ 
    Examples
    assert_eq!(result.extract::<String>()?, "called with args"); Ok(()) })
    -

    pub fn is_true(&self) -> Result<bool, PyErr>

    👎Deprecated since 0.21.0: use .is_truthy() instead

    Returns whether the object is considered to be true.

    +

    pub fn is_true(&self) -> Result<bool, PyErr>

    👎Deprecated since 0.21.0: use .is_truthy() instead

    Returns whether the object is considered to be true.

    This is equivalent to the Python expression bool(self).

    -

    pub fn is_truthy(&self) -> Result<bool, PyErr>

    Returns whether the object is considered to be true.

    +

    pub fn is_truthy(&self) -> Result<bool, PyErr>

    Returns whether the object is considered to be true.

    This applies truth value testing equivalent to the Python expression bool(self).

    -

    pub fn is_none(&self) -> bool

    Returns whether the object is considered to be None.

    +

    pub fn is_none(&self) -> bool

    Returns whether the object is considered to be None.

    This is equivalent to the Python expression self is None.

    -

    pub fn is_ellipsis(&self) -> bool

    👎Deprecated since 0.20.0: use .is(py.Ellipsis()) instead

    Returns whether the object is Ellipsis, e.g. ....

    +

    pub fn is_ellipsis(&self) -> bool

    👎Deprecated since 0.20.0: use .is(py.Ellipsis()) instead

    Returns whether the object is Ellipsis, e.g. ....

    This is equivalent to the Python expression self is ....

    -

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

    Returns true if the sequence or mapping has a length of 0.

    +

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

    Returns true if the sequence or mapping has a length of 0.

    This is equivalent to the Python expression len(self) == 0.

    -

    pub fn get_item<K>(&self, key: K) -> Result<&PyAny, PyErr>
    where +

    pub fn get_item<K>(&self, key: K) -> Result<&PyAny, PyErr>
    where K: ToPyObject,

    Gets an item from the collection.

    This is equivalent to the Python expression self[key].

    -

    pub fn set_item<K, V>(&self, key: K, value: V) -> Result<(), PyErr>
    where +

    pub fn set_item<K, V>(&self, key: K, value: V) -> Result<(), PyErr>
    where K: ToPyObject, V: ToPyObject,

    Sets a collection item value.

    This is equivalent to the Python expression self[key] = value.

    -

    pub fn del_item<K>(&self, key: K) -> Result<(), PyErr>
    where +

    pub fn del_item<K>(&self, key: K) -> Result<(), PyErr>
    where K: ToPyObject,

    Deletes an item from the collection.

    This is equivalent to the Python expression del self[key].

    -

    pub fn iter(&self) -> Result<&PyIterator, PyErr>

    Takes an object and returns an iterator for it.

    +

    pub fn iter(&self) -> Result<&PyIterator, PyErr>

    Takes an object and returns an iterator for it.

    This is typically a new iterator but if the argument is an iterator, this returns itself.

    pub fn get_type(&self) -> &PyType

    Returns the Python type object for this object’s type.

    -

    pub fn get_type_ptr(&self) -> *mut PyTypeObject

    Returns the Python type pointer for this object.

    -

    pub fn downcast<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where +

    pub fn get_type_ptr(&self) -> *mut PyTypeObject

    Returns the Python type pointer for this object.

    +

    pub fn downcast<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where T: PyTypeCheck<AsRefTarget = T>,

    Downcast this PyAny to a concrete Python type or pyclass.

    Note that you can often avoid downcasting yourself by just specifying the desired type in function or method signatures. However, manual downcasting is sometimes necessary.

    For extracting a Rust-only type, see PyAny::extract.

    -
    Example: Downcasting to a specific Python object
    +
    §Example: Downcasting to a specific Python object
    use pyo3::prelude::*;
     use pyo3::types::{PyDict, PyList};
     
    @@ -422,7 +423,7 @@ 
    assert!(any.downcast::<PyDict>().is_ok()); assert!(any.downcast::<PyList>().is_err()); });
    -
    Example: Getting a reference to a pyclass
    +
    §Example: Getting a reference to a pyclass

    This is useful if you want to mutate a PyObject that might actually be a pyclass.

    @@ -445,7 +446,7 @@
    assert_eq!(class_ref.i, 1); Ok(()) })
    -

    pub fn downcast_exact<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where +

    pub fn downcast_exact<T>(&self) -> Result<&T, PyDowncastError<'_>>
    where T: PyTypeInfo<AsRefTarget = T>,

    Downcast this PyAny to a concrete Python type or pyclass (but not a subclass of it).

    It is almost always better to use [PyAny::downcast] because it accounts for Python subtyping. Use this method only when you do not want to allow subtypes.

    @@ -453,7 +454,7 @@
    PyAny::extract.

    -
    Example: Downcasting to a specific Python object but not a subtype
    +
    §Example: Downcasting to a specific Python object but not a subtype
    use pyo3::prelude::*;
     use pyo3::types::{PyBool, PyLong};
     
    @@ -469,89 +470,90 @@ 
    assert!(any.downcast_exact::<PyBool>().is_ok()); });
    -

    pub unsafe fn downcast_unchecked<T>(&self) -> &T
    where +

    pub unsafe fn downcast_unchecked<T>(&self) -> &T
    where T: HasPyGilRef<AsRefTarget = T>,

    Converts this PyAny to a concrete Python type without checking validity.

    -
    Safety
    +
    §Safety

    Callers must ensure that the type is valid or risk type confusion.

    -

    pub fn extract<'py, D>(&'py self) -> Result<D, PyErr>
    where - D: FromPyObject<'py>,

    Extracts some type from the Python object.

    -

    This is a wrapper function around [FromPyObject::extract()].

    -

    pub fn get_refcnt(&self) -> isize

    Returns the reference count for the Python object.

    -

    pub fn repr(&self) -> Result<&PyString, PyErr>

    Computes the “repr” representation of self.

    +

    pub fn extract<'py, D>(&'py self) -> Result<D, PyErr>
    where + D: FromPyObjectBound<'py, 'py>,

    Extracts some type from the Python object.

    +

    This is a wrapper function around +FromPyObject::extract().

    +

    pub fn get_refcnt(&self) -> isize

    Returns the reference count for the Python object.

    +

    pub fn repr(&self) -> Result<&PyString, PyErr>

    Computes the “repr” representation of self.

    This is equivalent to the Python expression repr(self).

    -

    pub fn str(&self) -> Result<&PyString, PyErr>

    Computes the “str” representation of self.

    +

    pub fn str(&self) -> Result<&PyString, PyErr>

    Computes the “str” representation of self.

    This is equivalent to the Python expression str(self).

    -

    pub fn hash(&self) -> Result<isize, PyErr>

    Retrieves the hash code of self.

    +

    pub fn hash(&self) -> Result<isize, PyErr>

    Retrieves the hash code of self.

    This is equivalent to the Python expression hash(self).

    -

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

    Returns the length of the sequence or mapping.

    +

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

    Returns the length of the sequence or mapping.

    This is equivalent to the Python expression len(self).

    pub fn dir(&self) -> &PyList

    Returns the list of attributes of this object.

    This is equivalent to the Python expression dir(self).

    -

    pub fn is_instance(&self, ty: &PyAny) -> Result<bool, PyErr>

    Checks whether this object is an instance of type ty.

    +

    pub fn is_instance(&self, ty: &PyAny) -> Result<bool, PyErr>

    Checks whether this object is an instance of type ty.

    This is equivalent to the Python expression isinstance(self, ty).

    -

    pub fn is_exact_instance(&self, ty: &PyAny) -> bool

    Checks whether this object is an instance of exactly type ty (not a subclass).

    +

    pub fn is_exact_instance(&self, ty: &PyAny) -> bool

    Checks whether this object is an instance of exactly type ty (not a subclass).

    This is equivalent to the Python expression type(self) is ty.

    -

    pub fn is_instance_of<T>(&self) -> bool
    where +

    pub fn is_instance_of<T>(&self) -> bool
    where T: PyTypeInfo,

    Checks whether this object is an instance of type T.

    This is equivalent to the Python expression isinstance(self, T), if the type T is known at compile time.

    -

    pub fn is_exact_instance_of<T>(&self) -> bool
    where +

    pub fn is_exact_instance_of<T>(&self) -> bool
    where T: PyTypeInfo,

    Checks whether this object is an instance of exactly type T.

    This is equivalent to the Python expression type(self) is T, if the type T is known at compile time.

    -

    pub fn contains<V>(&self, value: V) -> Result<bool, PyErr>
    where +

    pub fn contains<V>(&self, value: V) -> Result<bool, PyErr>
    where V: ToPyObject,

    Determines if self contains value.

    This is equivalent to the Python expression value in self.

    pub fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.

    -

    pub fn as_ptr(&self) -> *mut PyObject

    Returns the raw FFI pointer represented by self.

    -
    Safety
    +

    pub fn as_ptr(&self) -> *mut PyObject

    Returns the raw FFI pointer represented by self.

    +
    §Safety

    Callers are responsible for ensuring that the pointer does not outlive self.

    The reference is borrowed; callers should not decrease the reference count when they are finished with the pointer.

    -

    pub fn into_ptr(&self) -> *mut PyObject

    Returns an owned raw FFI pointer represented by self.

    -
    Safety
    +

    pub fn into_ptr(&self) -> *mut PyObject

    Returns an owned raw FFI pointer represented by self.

    +
    §Safety

    The reference is owned; when finished the caller should either transfer ownership of the pointer or decrease the reference count (e.g. with pyo3::ffi::Py_DecRef).

    -

    pub fn py_super(&self) -> Result<&PySuper, PyErr>

    Return a proxy object that delegates method calls to a parent or sibling class of type.

    +

    pub fn py_super(&self) -> Result<&PySuper, PyErr>

    Return a proxy object that delegates method calls to a parent or sibling class of type.

    This is equivalent to the Python expression super()

    -

    Trait Implementations§

    source§

    impl AsPyPointer for PyUntypedArray

    source§

    fn as_ptr(&self) -> *mut PyObject

    Gets the underlying FFI pointer, returns a borrowed pointer.

    -
    source§

    impl AsRef<PyAny> for PyUntypedArray

    source§

    fn as_ref(&self) -> &PyAny

    Converts this type into a shared reference of the (usually inferred) input type.
    source§

    impl Debug for PyUntypedArray

    source§

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

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

    impl Deref for PyUntypedArray

    §

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    source§

    impl Display for PyUntypedArray

    source§

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

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

    impl<'a> From<&'a PyUntypedArray> for &'a PyAny

    source§

    fn from(ob: &'a PyUntypedArray) -> Self

    Converts to this type from the input type.
    source§

    impl From<&PyUntypedArray> for Py<PyUntypedArray>

    source§

    fn from(other: &PyUntypedArray) -> Self

    Converts to this type from the input type.
    source§

    impl<'py> FromPyObject<'py> for &'py PyUntypedArray

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    source§

    impl IntoPy<Py<PyAny>> for PyUntypedArray

    source§

    fn into_py<'py>(self, py: Python<'py>) -> PyObject

    Performs the conversion.
    source§

    impl IntoPy<Py<PyUntypedArray>> for &PyUntypedArray

    source§

    fn into_py(self, py: Python<'_>) -> Py<PyUntypedArray>

    Performs the conversion.
    source§

    impl PyNativeType for PyUntypedArray

    §

    type AsRefSource = PyUntypedArray

    The form of this which is stored inside a Py<T> smart pointer.
    §

    fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

    Cast &self to a Borrowed smart pointer. Read more
    §

    fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.
    §

    unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

    Cast &PyAny to &Self without no type checking. Read more
    source§

    impl PyTypeInfo for PyUntypedArray

    source§

    const NAME: &'static str = "PyUntypedArray"

    Class name.
    source§

    const MODULE: Option<&'static str> = _

    Module name, if any.
    source§

    fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

    Returns the PyTypeObject instance for this type.
    source§

    fn is_type_of_bound(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> &PyType

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn is_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_exact_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    source§

    impl ToPyObject for PyUntypedArray

    source§

    fn to_object(&self, py: Python<'_>) -> PyObject

    Converts self into a Python object.
    source§

    impl DerefToPyAny for PyUntypedArray

    Auto Trait Implementations§

    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> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl AsPyPointer for PyUntypedArray

    source§

    fn as_ptr(&self) -> *mut PyObject

    Gets the underlying FFI pointer, returns a borrowed pointer.

    +
    source§

    impl AsRef<PyAny> for PyUntypedArray

    source§

    fn as_ref(&self) -> &PyAny

    Converts this type into a shared reference of the (usually inferred) input type.
    source§

    impl Debug for PyUntypedArray

    source§

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

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

    impl Deref for PyUntypedArray

    §

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    source§

    impl Display for PyUntypedArray

    source§

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

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

    impl<'a> From<&'a PyUntypedArray> for &'a PyAny

    source§

    fn from(ob: &'a PyUntypedArray) -> Self

    Converts to this type from the input type.
    source§

    impl From<&PyUntypedArray> for Py<PyUntypedArray>

    source§

    fn from(other: &PyUntypedArray) -> Self

    Converts to this type from the input type.
    source§

    impl<'py> FromPyObject<'py> for &'py PyUntypedArray

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    source§

    impl IntoPy<Py<PyAny>> for PyUntypedArray

    source§

    fn into_py<'py>(self, py: Python<'py>) -> PyObject

    Performs the conversion.
    source§

    impl IntoPy<Py<PyUntypedArray>> for &PyUntypedArray

    source§

    fn into_py(self, py: Python<'_>) -> Py<PyUntypedArray>

    Performs the conversion.
    source§

    impl PyNativeType for PyUntypedArray

    §

    type AsRefSource = PyUntypedArray

    The form of this which is stored inside a Py<T> smart pointer.
    §

    fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

    Cast &self to a Borrowed smart pointer. Read more
    §

    fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.
    §

    unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

    Cast &PyAny to &Self without no type checking. Read more
    source§

    impl PyTypeInfo for PyUntypedArray

    source§

    const NAME: &'static str = "PyUntypedArray"

    Class name.
    source§

    const MODULE: Option<&'static str> = _

    Module name, if any.
    source§

    fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

    Returns the PyTypeObject instance for this type.
    source§

    fn is_type_of_bound(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> &PyType

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn is_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_exact_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    source§

    impl ToPyObject for PyUntypedArray

    source§

    fn to_object(&self, py: Python<'_>) -> PyObject

    Converts self into a Python object.
    source§

    impl DerefToPyAny for PyUntypedArray

    Auto Trait Implementations§

    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> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<'p, T> FromPyPointer<'p> for T
    where T: 'p + PyNativeType,

    §

    unsafe fn from_owned_ptr_or_opt( py: Python<'p>, - ptr: *mut PyObject -) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_opt( + ptr: *mut PyObject +) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_opt( _py: Python<'p>, - ptr: *mut PyObject -) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_owned_ptr_or_panic( + ptr: *mut PyObject +) -> Option<&'p T>

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_owned_ptr_or_panic( py: Python<'p>, - ptr: *mut PyObject -) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr_or_err( + ptr: *mut PyObject +) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject or panic. Read more
    §

    unsafe fn from_owned_ptr_or_err( py: Python<'p>, - ptr: *mut PyObject -) -> Result<&'p Self, PyErr>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_panic( + ptr: *mut PyObject +) -> Result<&'p Self, PyErr>

    👎Deprecated since 0.21.0
    Convert from an arbitrary PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_panic( py: Python<'p>, - ptr: *mut PyObject -) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_err( + ptr: *mut PyObject +) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr(py: Python<'p>, ptr: *mut PyObject) -> &'p Self

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    unsafe fn from_borrowed_ptr_or_err( py: Python<'p>, - ptr: *mut PyObject -) -> Result<&'p Self, PyErr>

    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    impl<T> HasPyGilRef for T
    where - T: PyNativeType,

    §

    type AsRefTarget = T

    Utility type to make Py::as_ref work.
    source§

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

    source§

    fn into(self) -> U

    Calls U::from(self).

    + ptr: *mut PyObject +) -> Result<&'p Self, PyErr>
    👎Deprecated since 0.21.0
    Convert from an arbitrary borrowed PyObject. Read more
    §

    impl<T> HasPyGilRef for T
    where + T: PyNativeType,

    §

    type AsRefTarget = T

    Utility type to make Py::as_ref work.
    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.

    +From<T> for U chooses to do.

    §

    impl<'v, T> PyTryFrom<'v> for T
    where - T: PyTypeInfo<AsRefTarget = T> + PyNativeType,

    §

    fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where - V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast::<T>() instead of T::try_from(value)
    Cast from a concrete Python object type to PyObject.
    §

    fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where - V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_exact::<T>() instead of T::try_from_exact(value)
    Cast from a concrete Python object type to PyObject. With exact type check.
    §

    unsafe fn try_from_unchecked<V>(value: V) -> &'v T
    where - V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_unchecked::<T>() instead of T::try_from_unchecked(value)
    Cast a PyAny to a specific type of PyObject. The caller must + T: PyTypeInfo<AsRefTarget = T> + PyNativeType,
    §

    fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where + V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast::<T>() instead of T::try_from(value)
    Cast from a concrete Python object type to PyObject.
    §

    fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError<'v>>
    where + V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_exact::<T>() instead of T::try_from_exact(value)
    Cast from a concrete Python object type to PyObject. With exact type check.
    §

    unsafe fn try_from_unchecked<V>(value: V) -> &'v T
    where + V: Into<&'v PyAny>,

    👎Deprecated since 0.21.0: use value.downcast_unchecked::<T>() instead of T::try_from_unchecked(value)
    Cast a PyAny to a specific type of PyObject. The caller must have already verified the reference is for this type. Read more
    §

    impl<T> PyTypeCheck for T
    where - T: PyTypeInfo,

    §

    const NAME: &'static str = <T as PyTypeInfo>::NAME

    Name of self. This is used in error messages, for example.
    §

    fn type_check(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of Self, which may include a subtype. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    \ No newline at end of file + T: PyTypeInfo,
    §

    const NAME: &'static str = <T as PyTypeInfo>::NAME

    Name of self. This is used in error messages, for example.
    §

    fn type_check(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of Self, which may include a subtype. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where + SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    source§

    default 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>,

    §

    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>,

    §

    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.
    \ No newline at end of file diff --git a/numpy/struct.TypeMustMatch.html b/numpy/struct.TypeMustMatch.html index 0115fc88d..56192cc0b 100644 --- a/numpy/struct.TypeMustMatch.html +++ b/numpy/struct.TypeMustMatch.html @@ -1,16 +1,16 @@ -TypeMustMatch in numpy - Rust +TypeMustMatch in numpy - Rust

    Struct numpy::TypeMustMatch

    source ·
    pub struct TypeMustMatch;
    Expand description

    Marker type to indicate that the element type received via PyArrayLike must match the specified type exactly.

    -

    Trait Implementations§

    source§

    impl Debug for TypeMustMatch

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> 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).

    +

    Trait Implementations§

    source§

    impl Debug for TypeMustMatch

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> 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.

    +From<T> for U chooses to do.

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<SS, SP> SupersetOf<SS> for SP
    where - SS: SubsetOf<SP>,

    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its -superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where - T: Send,

    \ No newline at end of file + SS: SubsetOf<SP>,
    §

    fn to_subset(&self) -> Option<SS>

    The inverse inclusion map: attempts to construct self from the equivalent element of its +superset. Read more
    §

    fn is_in_subset(&self) -> bool

    Checks if self is actually part of its subset T (and can be converted to it).
    §

    fn to_subset_unchecked(&self) -> SS

    Use with care! Same as self.to_subset but without any property checks. Always succeeds.
    §

    fn from_subset(element: &SS) -> SP

    The inclusion map: converts self to the equivalent element of its superset.
    source§

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

    §

    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>,

    §

    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.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/trait.Element.html b/numpy/trait.Element.html index b651e93e2..849e918a2 100644 --- a/numpy/trait.Element.html +++ b/numpy/trait.Element.html @@ -1,6 +1,6 @@ -Element in numpy - Rust -

    Trait numpy::Element

    source ·
    pub unsafe trait Element: Clone + Send {
    -    const IS_COPY: bool;
    +Element in numpy - Rust
    +    

    Trait numpy::Element

    source ·
    pub unsafe trait Element: Clone + Send {
    +    const IS_COPY: bool;
     
         // Required method
         fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>;
    @@ -14,10 +14,10 @@
     which implies that their widths change depending on the platform’s data model.
     For example, numpy.int_ matches C’s long which is 32 bits wide on Windows (using the LLP64 data model)
     but 64 bits wide on Linux (using the LP64 data model).

    -

    In contrast, Rust’s isize and usize types are defined to have the same width as a pointer +

    In contrast, Rust’s isize and usize types are defined to have the same width as a pointer and are therefore always 64 bits wide on 64-bit platforms. If you want to match NumPy’s behaviour, -consider using the c_long and c_ulong type aliases.

    -

    Safety

    +consider using the c_long and c_ulong type aliases.

    +

    §Safety

    A type T that implements this trait should be safe when managed by a NumPy array, thus implementing this trait is marked unsafe. Data types that don’t contain Python objects (i.e., either the object type itself or record types @@ -26,20 +26,20 @@

    Safety

    the object type the elements are pointers into the Python heap and that the corresponding Clone implemenation will never panic as it only increases the reference count.

    -

    Custom element types

    +

    §Custom element types

    Note that we cannot safely store Py<T> where T: PyClass, because the type information would be eliminated in the resulting NumPy array. In other words, objects are always treated as Py<PyAny> (a.k.a. PyObject) by Python code, and only Py<PyAny> can be stored in a type safe manner.

    You can however create Array<Py<T>, D> and turn that into a NumPy array safely and efficiently using from_owned_object_array.

    -

    Required Associated Constants§

    source

    const IS_COPY: bool

    Flag that indicates whether this type is trivially copyable.

    +

    Required Associated Constants§

    source

    const IS_COPY: bool

    Flag that indicates whether this type is trivially copyable.

    It should be set to true for all trivially copyable types (like scalar types and record/array types only containing trivially copyable fields and elements).

    This flag should always be set to false for object types or record types that contain object-type fields.

    Required Methods§

    source

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.

    Provided Methods§

    source

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.

    Returns the associated type descriptor (“dtype”) for the given element type.

    -

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Element for bool

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for f32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for f64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for isize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for usize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for bf16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for f16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for PyObject

    source§

    const IS_COPY: bool = false

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Implementors§

    source§

    impl Element for Complex32

    Complex type with f32 components which maps to numpy.csingle (numpy.complex64).

    -
    source§

    const IS_COPY: bool = true

    source§

    impl Element for Complex64

    Complex type with f64 components which maps to numpy.cdouble (numpy.complex128).

    -
    source§

    const IS_COPY: bool = true

    source§

    impl<U: Unit> Element for Datetime<U>

    source§

    const IS_COPY: bool = true

    source§

    impl<U: Unit> Element for Timedelta<U>

    source§

    const IS_COPY: bool = true

    source§

    impl<const N: usize> Element for PyFixedString<N>

    source§

    const IS_COPY: bool = true

    source§

    impl<const N: usize> Element for PyFixedUnicode<N>

    source§

    const IS_COPY: bool = true

    \ No newline at end of file +

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Element for bool

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for f32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for f64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for i64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for isize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for u64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for usize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for bf16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for f16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    impl Element for PyObject

    source§

    const IS_COPY: bool = false

    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Implementors§

    source§

    impl Element for Complex32

    Complex type with f32 components which maps to numpy.csingle (numpy.complex64).

    +
    source§

    const IS_COPY: bool = true

    source§

    impl Element for Complex64

    Complex type with f64 components which maps to numpy.cdouble (numpy.complex128).

    +
    source§

    const IS_COPY: bool = true

    source§

    impl<U: Unit> Element for Datetime<U>

    source§

    const IS_COPY: bool = true

    source§

    impl<U: Unit> Element for Timedelta<U>

    source§

    const IS_COPY: bool = true

    source§

    impl<const N: usize> Element for PyFixedString<N>

    source§

    const IS_COPY: bool = true

    source§

    impl<const N: usize> Element for PyFixedUnicode<N>

    source§

    const IS_COPY: bool = true

    \ No newline at end of file diff --git a/numpy/trait.PyArrayDescrMethods.html b/numpy/trait.PyArrayDescrMethods.html index 54d6e8dfb..84e93bd01 100644 --- a/numpy/trait.PyArrayDescrMethods.html +++ b/numpy/trait.PyArrayDescrMethods.html @@ -1,81 +1,81 @@ -PyArrayDescrMethods in numpy - Rust +PyArrayDescrMethods in numpy - Rust
    pub trait PyArrayDescrMethods<'py>: Sealed {
     
    Show 21 methods // Required methods - fn as_dtype_ptr(&self) -> *mut PyArray_Descr; - fn into_dtype_ptr(self) -> *mut PyArray_Descr; - fn is_equiv_to(&self, other: &Self) -> bool; + fn as_dtype_ptr(&self) -> *mut PyArray_Descr; + fn into_dtype_ptr(self) -> *mut PyArray_Descr; + fn is_equiv_to(&self, other: &Self) -> bool; fn typeobj(&self) -> Bound<'py, PyType>; fn base(&self) -> Bound<'py, PyArrayDescr>; - fn shape(&self) -> Vec<usize>; - fn names(&self) -> Option<Vec<&str>>; + fn shape(&self) -> Vec<usize>; + fn names(&self) -> Option<Vec<&str>>; fn get_field( &self, - name: &str - ) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>; + name: &str + ) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>; // Provided methods - fn num(&self) -> c_int { ... } - fn itemsize(&self) -> usize { ... } - fn alignment(&self) -> usize { ... } - fn byteorder(&self) -> u8 { ... } - fn char(&self) -> u8 { ... } - fn kind(&self) -> u8 { ... } - fn flags(&self) -> c_char { ... } - fn ndim(&self) -> usize { ... } - fn has_object(&self) -> bool { ... } - fn is_aligned_struct(&self) -> bool { ... } - fn has_subarray(&self) -> bool { ... } - fn has_fields(&self) -> bool { ... } - fn is_native_byteorder(&self) -> Option<bool> { ... } + fn num(&self) -> c_int { ... } + fn itemsize(&self) -> usize { ... } + fn alignment(&self) -> usize { ... } + fn byteorder(&self) -> u8 { ... } + fn char(&self) -> u8 { ... } + fn kind(&self) -> u8 { ... } + fn flags(&self) -> c_char { ... } + fn ndim(&self) -> usize { ... } + fn has_object(&self) -> bool { ... } + fn is_aligned_struct(&self) -> bool { ... } + fn has_subarray(&self) -> bool { ... } + fn has_fields(&self) -> bool { ... } + fn is_native_byteorder(&self) -> Option<bool> { ... }
    }
    Expand description

    Implementation of functionality for PyArrayDescr.

    -

    Required Methods§

    source

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr.

    -
    source

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr while increasing the reference count.

    +

    Required Methods§

    source

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr.

    +
    source

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    Returns self as *mut PyArray_Descr while increasing the reference count.

    Useful in cases where the descriptor is stolen by the API.

    -
    source

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

    Returns true if two type descriptors are equivalent.

    +
    source

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

    Returns true if two type descriptors are equivalent.

    source

    fn typeobj(&self) -> Bound<'py, PyType>

    Returns the array scalar corresponding to this type descriptor.

    Equivalent to numpy.dtype.type.

    source

    fn base(&self) -> Bound<'py, PyArrayDescr>

    Returns the type descriptor for the base element of subarrays, regardless of their dimension or shape.

    If the dtype is not a subarray, returns self.

    Equivalent to numpy.dtype.base.

    -
    source

    fn shape(&self) -> Vec<usize>

    Returns the shape of the sub-array.

    +
    source

    fn shape(&self) -> Vec<usize>

    Returns the shape of the sub-array.

    If the dtype is not a sub-array, an empty vector is returned.

    Equivalent to numpy.dtype.shape.

    -
    source

    fn names(&self) -> Option<Vec<&str>>

    Returns an ordered list of field names, or None if there are no fields.

    +
    source

    fn names(&self) -> Option<Vec<&str>>

    Returns an ordered list of field names, or None if there are no fields.

    The names are ordered according to increasing byte offset.

    Equivalent to numpy.dtype.names.

    -
    source

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Returns the type descriptor and offset of the field with the given name.

    +
    source

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Returns the type descriptor and offset of the field with the given name.

    This method will return an error if this type descriptor is not structured, or if it does not contain a field with a given name.

    The list of all names can be found via PyArrayDescr::names.

    Equivalent to retrieving a single item from numpy.dtype.fields.

    -

    Provided Methods§

    source

    fn num(&self) -> c_int

    Returns a unique number for each of the 21 different built-in +

    Provided Methods§

    source

    fn num(&self) -> c_int

    Returns a unique number for each of the 21 different built-in enumerated types.

    These are roughly ordered from least-to-most precision.

    Equivalent to numpy.dtype.num.

    -
    source

    fn itemsize(&self) -> usize

    Returns the element size of this type descriptor.

    +
    source

    fn itemsize(&self) -> usize

    Returns the element size of this type descriptor.

    Equivalent to [numpy.dtype.itemsize][dtype-itemsize].

    -
    source

    fn alignment(&self) -> usize

    Returns the required alignment (bytes) of this type descriptor according to the compiler.

    +
    source

    fn alignment(&self) -> usize

    Returns the required alignment (bytes) of this type descriptor according to the compiler.

    Equivalent to numpy.dtype.alignment.

    -
    source

    fn byteorder(&self) -> u8

    Returns an ASCII character indicating the byte-order of this type descriptor object.

    +
    source

    fn byteorder(&self) -> u8

    Returns an ASCII character indicating the byte-order of this type descriptor object.

    All built-in data-type objects have byteorder either = or |.

    Equivalent to numpy.dtype.byteorder.

    -
    source

    fn char(&self) -> u8

    Returns a unique ASCII character for each of the 21 different built-in types.

    +
    source

    fn char(&self) -> u8

    Returns a unique ASCII character for each of the 21 different built-in types.

    Note that structured data types are categorized as V (void).

    Equivalent to numpy.dtype.char.

    -
    source

    fn kind(&self) -> u8

    Returns an ASCII character (one of biufcmMOSUV) identifying the general kind of data.

    +
    source

    fn kind(&self) -> u8

    Returns an ASCII character (one of biufcmMOSUV) identifying the general kind of data.

    Note that structured data types are categorized as V (void).

    Equivalent to numpy.dtype.kind.

    -
    source

    fn flags(&self) -> c_char

    Returns bit-flags describing how this type descriptor is to be interpreted.

    +
    source

    fn flags(&self) -> c_char

    Returns bit-flags describing how this type descriptor is to be interpreted.

    Equivalent to numpy.dtype.flags.

    -
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions if this type descriptor represents a sub-array, and zero otherwise.

    +
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions if this type descriptor represents a sub-array, and zero otherwise.

    Equivalent to numpy.dtype.ndim.

    -
    source

    fn has_object(&self) -> bool

    Returns true if the type descriptor contains any reference-counted objects in any fields or sub-dtypes.

    +
    source

    fn has_object(&self) -> bool

    Returns true if the type descriptor contains any reference-counted objects in any fields or sub-dtypes.

    Equivalent to numpy.dtype.hasobject.

    -
    source

    fn is_aligned_struct(&self) -> bool

    Returns true if the type descriptor is a struct which maintains field alignment.

    +
    source

    fn is_aligned_struct(&self) -> bool

    Returns true if the type descriptor is a struct which maintains field alignment.

    This flag is sticky, so when combining multiple structs together, it is preserved and produces new dtypes which are also aligned.

    Equivalent to numpy.dtype.isalignedstruct.

    -
    source

    fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    -
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    -
    source

    fn is_native_byteorder(&self) -> Option<bool>

    Returns true if type descriptor byteorder is native, or None if not applicable.

    -

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<'py> PyArrayDescrMethods<'py> for Bound<'py, PyArrayDescr>

    source§

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    source§

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    source§

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

    source§

    fn typeobj(&self) -> Bound<'py, PyType>

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn names(&self) -> Option<Vec<&str>>

    source§

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Implementors§

    \ No newline at end of file +
    source

    fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    +
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    +
    source

    fn is_native_byteorder(&self) -> Option<bool>

    Returns true if type descriptor byteorder is native, or None if not applicable.

    +

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<'py> PyArrayDescrMethods<'py> for Bound<'py, PyArrayDescr>

    source§

    fn as_dtype_ptr(&self) -> *mut PyArray_Descr

    source§

    fn into_dtype_ptr(self) -> *mut PyArray_Descr

    source§

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

    source§

    fn typeobj(&self) -> Bound<'py, PyType>

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn names(&self) -> Option<Vec<&str>>

    source§

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Implementors§

    \ No newline at end of file diff --git a/numpy/trait.PyUntypedArrayMethods.html b/numpy/trait.PyUntypedArrayMethods.html index 8211d0fd2..dbb3e95c0 100644 --- a/numpy/trait.PyUntypedArrayMethods.html +++ b/numpy/trait.PyUntypedArrayMethods.html @@ -1,34 +1,35 @@ -PyUntypedArrayMethods in numpy - Rust -
    pub trait PyUntypedArrayMethods<'py>: Sealed {
    +PyUntypedArrayMethods in numpy - Rust
    +    
    pub trait PyUntypedArrayMethods<'py>: Sealed {
         // Required methods
    -    fn as_array_ptr(&self) -> *mut PyArrayObject;
    +    fn as_array_ptr(&self) -> *mut PyArrayObject;
         fn dtype(&self) -> Bound<'py, PyArrayDescr>;
     
         // Provided methods
    -    fn is_contiguous(&self) -> bool { ... }
    -    fn is_fortran_contiguous(&self) -> bool { ... }
    -    fn is_c_contiguous(&self) -> bool { ... }
    -    fn ndim(&self) -> usize { ... }
    -    fn strides(&self) -> &[isize] { ... }
    -    fn shape(&self) -> &[usize] { ... }
    -    fn len(&self) -> usize { ... }
    -    fn is_empty(&self) -> bool { ... }
    +    fn is_contiguous(&self) -> bool { ... }
    +    fn is_fortran_contiguous(&self) -> bool { ... }
    +    fn is_c_contiguous(&self) -> bool { ... }
    +    fn ndim(&self) -> usize { ... }
    +    fn strides(&self) -> &[isize] { ... }
    +    fn shape(&self) -> &[usize] { ... }
    +    fn len(&self) -> usize { ... }
    +    fn is_empty(&self) -> bool { ... }
     }
    Expand description

    Implementation of functionality for PyUntypedArray.

    -

    Required Methods§

    source

    fn as_array_ptr(&self) -> *mut PyArrayObject

    Returns a raw pointer to the underlying PyArrayObject.

    -
    source

    fn dtype(&self) -> Bound<'py, PyArrayDescr>

    Returns the dtype of the array.

    +

    Required Methods§

    source

    fn as_array_ptr(&self) -> *mut PyArrayObject

    Returns a raw pointer to the underlying PyArrayObject.

    +
    source

    fn dtype(&self) -> Bound<'py, PyArrayDescr>

    Returns the dtype of the array.

    See also ndarray.dtype and PyArray_DTYPE.

    -
    Example
    -
    use numpy::{dtype_bound, PyArray};
    +
    §Example
    +
    use numpy::prelude::*;
    +use numpy::{dtype_bound, PyArray};
     use pyo3::Python;
     
     Python::with_gil(|py| {
    -   let array = PyArray::from_vec(py, vec![1_i32, 2, 3]);
    +   let array = PyArray::from_vec_bound(py, vec![1_i32, 2, 3]);
     
    -   assert!(array.dtype().is_equiv_to(dtype_bound::<i32>(py).as_gil_ref()));
    +   assert!(array.dtype().is_equiv_to(&dtype_bound::<i32>(py)));
     });
    -

    Provided Methods§

    source

    fn is_contiguous(&self) -> bool

    Returns true if the internal data of the array is contiguous, +

    Provided Methods§

    source

    fn is_contiguous(&self) -> bool

    Returns true if the internal data of the array is contiguous, indepedently of whether C-style/row-major or Fortran-style/column-major.

    -
    Example
    +
    §Example
    use numpy::{PyArray1, PyUntypedArrayMethods};
     use pyo3::{types::{IntoPyDict, PyAnyMethods}, Python};
     
    @@ -43,11 +44,11 @@ 
    Example
    .unwrap(); assert!(!view.is_contiguous()); });
    -
    source

    fn is_fortran_contiguous(&self) -> bool

    Returns true if the internal data of the array is Fortran-style/column-major contiguous.

    -
    source

    fn is_c_contiguous(&self) -> bool

    Returns true if the internal data of the array is C-style/row-major contiguous.

    -
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions of the array.

    +
    source

    fn is_fortran_contiguous(&self) -> bool

    Returns true if the internal data of the array is Fortran-style/column-major contiguous.

    +
    source

    fn is_c_contiguous(&self) -> bool

    Returns true if the internal data of the array is C-style/row-major contiguous.

    +
    source

    fn ndim(&self) -> usize

    Returns the number of dimensions of the array.

    See also ndarray.ndim and PyArray_NDIM.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -56,9 +57,9 @@ 
    Example
    assert_eq!(arr.ndim(), 3); });
    -
    source

    fn strides(&self) -> &[isize]

    Returns a slice indicating how many bytes to advance when iterating along each axis.

    +
    source

    fn strides(&self) -> &[isize]

    Returns a slice indicating how many bytes to advance when iterating along each axis.

    See also ndarray.strides and PyArray_STRIDES.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -67,9 +68,9 @@ 
    Example
    assert_eq!(arr.strides(), &[240, 48, 8]); });
    -
    source

    fn shape(&self) -> &[usize]

    Returns a slice which contains dimmensions of the array.

    +
    source

    fn shape(&self) -> &[usize]

    Returns a slice which contains dimmensions of the array.

    See also [ndarray.shape][ndaray-shape] and PyArray_DIMS.

    -
    Example
    +
    §Example
    use numpy::{PyArray3, PyUntypedArrayMethods};
     use pyo3::Python;
     
    @@ -78,6 +79,6 @@ 
    Example
    assert_eq!(arr.shape(), &[4, 5, 6]); });
    -
    source

    fn len(&self) -> usize

    Calculates the total number of elements in the array.

    -
    source

    fn is_empty(&self) -> bool

    Returns true if the there are no elements in the array.

    -

    Implementations on Foreign Types§

    source§

    impl<'py> PyUntypedArrayMethods<'py> for Bound<'py, PyUntypedArray>

    source§

    impl<'py, T, D> PyUntypedArrayMethods<'py> for Bound<'py, PyArray<T, D>>

    Implementors§

    \ No newline at end of file +
    source

    fn len(&self) -> usize

    Calculates the total number of elements in the array.

    +
    source

    fn is_empty(&self) -> bool

    Returns true if the there are no elements in the array.

    +

    Implementations on Foreign Types§

    source§

    impl<'py> PyUntypedArrayMethods<'py> for Bound<'py, PyUntypedArray>

    source§

    impl<'py, T, D> PyUntypedArrayMethods<'py> for Bound<'py, PyArray<T, D>>

    Implementors§

    \ No newline at end of file diff --git a/numpy/type.Complex32.html b/numpy/type.Complex32.html index 703c9d19f..e69eaa360 100644 --- a/numpy/type.Complex32.html +++ b/numpy/type.Complex32.html @@ -1,8 +1,8 @@ -Complex32 in numpy - Rust -

    Type Alias numpy::Complex32

    source ·
    pub type Complex32 = Complex<f32>;

    Aliased Type§

    struct Complex32 {
    -    pub re: f32,
    -    pub im: f32,
    -}

    Fields§

    §re: f32

    Real portion of the complex number

    -
    §im: f32

    Imaginary portion of the complex number

    +Complex32 in numpy - Rust +

    Type Alias numpy::Complex32

    source ·
    pub type Complex32 = Complex<f32>;

    Aliased Type§

    struct Complex32 {
    +    pub re: f32,
    +    pub im: f32,
    +}

    Fields§

    §re: f32

    Real portion of the complex number

    +
    §im: f32

    Imaginary portion of the complex number

    Trait Implementations§

    source§

    impl Element for Complex32

    Complex type with f32 components which maps to numpy.csingle (numpy.complex64).

    -
    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    \ No newline at end of file +
    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    \ No newline at end of file diff --git a/numpy/type.Complex64.html b/numpy/type.Complex64.html index 6ef11c869..bddc84f2f 100644 --- a/numpy/type.Complex64.html +++ b/numpy/type.Complex64.html @@ -1,8 +1,8 @@ -Complex64 in numpy - Rust -

    Type Alias numpy::Complex64

    source ·
    pub type Complex64 = Complex<f64>;

    Aliased Type§

    struct Complex64 {
    -    pub re: f64,
    -    pub im: f64,
    -}

    Fields§

    §re: f64

    Real portion of the complex number

    -
    §im: f64

    Imaginary portion of the complex number

    +Complex64 in numpy - Rust +

    Type Alias numpy::Complex64

    source ·
    pub type Complex64 = Complex<f64>;

    Aliased Type§

    struct Complex64 {
    +    pub re: f64,
    +    pub im: f64,
    +}

    Fields§

    §re: f64

    Real portion of the complex number

    +
    §im: f64

    Imaginary portion of the complex number

    Trait Implementations§

    source§

    impl Element for Complex64

    Complex type with f64 components which maps to numpy.cdouble (numpy.complex128).

    -
    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    \ No newline at end of file +
    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    \ No newline at end of file diff --git a/numpy/type.Ix1.html b/numpy/type.Ix1.html index b288ee72d..a8eadeac0 100644 --- a/numpy/type.Ix1.html +++ b/numpy/type.Ix1.html @@ -1,3 +1,3 @@ -Ix1 in numpy - Rust -

    Type Alias numpy::Ix1

    source ·
    pub type Ix1 = Dim<[usize; 1]>;
    Expand description

    one-dimensional

    +Ix1 in numpy - Rust +

    Type Alias numpy::Ix1

    source ·
    pub type Ix1 = Dim<[usize; 1]>;
    Expand description

    one-dimensional

    Aliased Type§

    struct Ix1 { /* private fields */ }
    \ No newline at end of file diff --git a/numpy/type.Ix2.html b/numpy/type.Ix2.html index de1228228..c7d76def8 100644 --- a/numpy/type.Ix2.html +++ b/numpy/type.Ix2.html @@ -1,3 +1,3 @@ -Ix2 in numpy - Rust -

    Type Alias numpy::Ix2

    source ·
    pub type Ix2 = Dim<[usize; 2]>;
    Expand description

    two-dimensional

    +Ix2 in numpy - Rust +

    Type Alias numpy::Ix2

    source ·
    pub type Ix2 = Dim<[usize; 2]>;
    Expand description

    two-dimensional

    Aliased Type§

    struct Ix2 { /* private fields */ }
    \ No newline at end of file diff --git a/numpy/type.Ix3.html b/numpy/type.Ix3.html index e1a710f55..e421f414b 100644 --- a/numpy/type.Ix3.html +++ b/numpy/type.Ix3.html @@ -1,3 +1,3 @@ -Ix3 in numpy - Rust -

    Type Alias numpy::Ix3

    source ·
    pub type Ix3 = Dim<[usize; 3]>;
    Expand description

    three-dimensional

    +Ix3 in numpy - Rust +

    Type Alias numpy::Ix3

    source ·
    pub type Ix3 = Dim<[usize; 3]>;
    Expand description

    three-dimensional

    Aliased Type§

    struct Ix3 { /* private fields */ }
    \ No newline at end of file diff --git a/numpy/type.Ix4.html b/numpy/type.Ix4.html index 2306a3d55..203328def 100644 --- a/numpy/type.Ix4.html +++ b/numpy/type.Ix4.html @@ -1,3 +1,3 @@ -Ix4 in numpy - Rust -

    Type Alias numpy::Ix4

    source ·
    pub type Ix4 = Dim<[usize; 4]>;
    Expand description

    four-dimensional

    +Ix4 in numpy - Rust +

    Type Alias numpy::Ix4

    source ·
    pub type Ix4 = Dim<[usize; 4]>;
    Expand description

    four-dimensional

    Aliased Type§

    struct Ix4 { /* private fields */ }
    \ No newline at end of file diff --git a/numpy/type.Ix5.html b/numpy/type.Ix5.html index dd77cfec6..3e20d5133 100644 --- a/numpy/type.Ix5.html +++ b/numpy/type.Ix5.html @@ -1,3 +1,3 @@ -Ix5 in numpy - Rust -

    Type Alias numpy::Ix5

    source ·
    pub type Ix5 = Dim<[usize; 5]>;
    Expand description

    five-dimensional

    +Ix5 in numpy - Rust +

    Type Alias numpy::Ix5

    source ·
    pub type Ix5 = Dim<[usize; 5]>;
    Expand description

    five-dimensional

    Aliased Type§

    struct Ix5 { /* private fields */ }
    \ No newline at end of file diff --git a/numpy/type.Ix6.html b/numpy/type.Ix6.html index 2ad3c25ff..7003630f8 100644 --- a/numpy/type.Ix6.html +++ b/numpy/type.Ix6.html @@ -1,3 +1,3 @@ -Ix6 in numpy - Rust -

    Type Alias numpy::Ix6

    source ·
    pub type Ix6 = Dim<[usize; 6]>;
    Expand description

    six-dimensional

    +Ix6 in numpy - Rust +

    Type Alias numpy::Ix6

    source ·
    pub type Ix6 = Dim<[usize; 6]>;
    Expand description

    six-dimensional

    Aliased Type§

    struct Ix6 { /* private fields */ }
    \ No newline at end of file diff --git a/numpy/type.IxDyn.html b/numpy/type.IxDyn.html index e9f1db5a1..ed5723478 100644 --- a/numpy/type.IxDyn.html +++ b/numpy/type.IxDyn.html @@ -1,4 +1,4 @@ -IxDyn in numpy - Rust +IxDyn in numpy - Rust

    Type Alias numpy::IxDyn

    source ·
    pub type IxDyn = Dim<IxDynImpl>;
    Expand description

    dynamic-dimensional

    You can use the IxDyn function to create a dimension for an array with dynamic number of dimensions. (Vec<usize> and &[usize] also implement diff --git a/numpy/type.PyArrayLike0.html b/numpy/type.PyArrayLike0.html index 4c4096bcf..57f1bd09a 100644 --- a/numpy/type.PyArrayLike0.html +++ b/numpy/type.PyArrayLike0.html @@ -1,3 +1,3 @@ -PyArrayLike0 in numpy - Rust

    +PyArrayLike0 in numpy - Rust

    Type Alias numpy::PyArrayLike0

    source ·
    pub type PyArrayLike0<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, Ix0, C>;
    Expand description

    Receiver for zero-dimensional arrays or array-like types.

    Aliased Type§

    struct PyArrayLike0<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/numpy/type.PyArrayLike1.html b/numpy/type.PyArrayLike1.html index 2e61eefdc..d33d78664 100644 --- a/numpy/type.PyArrayLike1.html +++ b/numpy/type.PyArrayLike1.html @@ -1,3 +1,3 @@ -PyArrayLike1 in numpy - Rust +PyArrayLike1 in numpy - Rust

    Type Alias numpy::PyArrayLike1

    source ·
    pub type PyArrayLike1<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, Ix1, C>;
    Expand description

    Receiver for one-dimensional arrays or array-like types.

    Aliased Type§

    struct PyArrayLike1<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/numpy/type.PyArrayLike2.html b/numpy/type.PyArrayLike2.html index 2c9ac9e72..52c7f2ccc 100644 --- a/numpy/type.PyArrayLike2.html +++ b/numpy/type.PyArrayLike2.html @@ -1,3 +1,3 @@ -PyArrayLike2 in numpy - Rust +PyArrayLike2 in numpy - Rust

    Type Alias numpy::PyArrayLike2

    source ·
    pub type PyArrayLike2<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, Ix2, C>;
    Expand description

    Receiver for two-dimensional arrays or array-like types.

    Aliased Type§

    struct PyArrayLike2<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/numpy/type.PyArrayLike3.html b/numpy/type.PyArrayLike3.html index 888effa00..ca6082e60 100644 --- a/numpy/type.PyArrayLike3.html +++ b/numpy/type.PyArrayLike3.html @@ -1,3 +1,3 @@ -PyArrayLike3 in numpy - Rust +PyArrayLike3 in numpy - Rust

    Type Alias numpy::PyArrayLike3

    source ·
    pub type PyArrayLike3<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, Ix3, C>;
    Expand description

    Receiver for three-dimensional arrays or array-like types.

    Aliased Type§

    struct PyArrayLike3<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/numpy/type.PyArrayLike4.html b/numpy/type.PyArrayLike4.html index 2ea673e90..f6d955dd6 100644 --- a/numpy/type.PyArrayLike4.html +++ b/numpy/type.PyArrayLike4.html @@ -1,3 +1,3 @@ -PyArrayLike4 in numpy - Rust +PyArrayLike4 in numpy - Rust

    Type Alias numpy::PyArrayLike4

    source ·
    pub type PyArrayLike4<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, Ix4, C>;
    Expand description

    Receiver for four-dimensional arrays or array-like types.

    Aliased Type§

    struct PyArrayLike4<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/numpy/type.PyArrayLike5.html b/numpy/type.PyArrayLike5.html index dbc3ebbed..0b1becc69 100644 --- a/numpy/type.PyArrayLike5.html +++ b/numpy/type.PyArrayLike5.html @@ -1,3 +1,3 @@ -PyArrayLike5 in numpy - Rust +PyArrayLike5 in numpy - Rust

    Type Alias numpy::PyArrayLike5

    source ·
    pub type PyArrayLike5<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, Ix5, C>;
    Expand description

    Receiver for five-dimensional arrays or array-like types.

    Aliased Type§

    struct PyArrayLike5<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/numpy/type.PyArrayLike6.html b/numpy/type.PyArrayLike6.html index f2da024d5..ef541d6bb 100644 --- a/numpy/type.PyArrayLike6.html +++ b/numpy/type.PyArrayLike6.html @@ -1,3 +1,3 @@ -PyArrayLike6 in numpy - Rust +PyArrayLike6 in numpy - Rust

    Type Alias numpy::PyArrayLike6

    source ·
    pub type PyArrayLike6<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, Ix6, C>;
    Expand description

    Receiver for six-dimensional arrays or array-like types.

    Aliased Type§

    struct PyArrayLike6<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/numpy/type.PyArrayLikeDyn.html b/numpy/type.PyArrayLikeDyn.html index 24ed6e622..92d78042b 100644 --- a/numpy/type.PyArrayLikeDyn.html +++ b/numpy/type.PyArrayLikeDyn.html @@ -1,3 +1,3 @@ -PyArrayLikeDyn in numpy - Rust +PyArrayLikeDyn in numpy - Rust

    Type Alias numpy::PyArrayLikeDyn

    source ·
    pub type PyArrayLikeDyn<'py, T, C = TypeMustMatch> = PyArrayLike<'py, T, IxDyn, C>;
    Expand description

    Receiver for arrays or array-like types whose dimensionality is determined at runtime.

    Aliased Type§

    struct PyArrayLikeDyn<'py, T, C = TypeMustMatch>(/* private fields */);
    \ No newline at end of file diff --git a/search-index.js b/search-index.js index 296f38123..c09ecb181 100644 --- a/search-index.js +++ b/search-index.js @@ -1,5 +1,5 @@ var searchIndex = new Map(JSON.parse('[\ -["numpy",{"doc":"This crate provides Rust interfaces for NumPy C APIs, …","t":"FPGIIKFTEHIHIHIHIHIHIHIFPEEEEEEEEEEEEFKEFIIIIIIIIEFFEEEEEEEEEEEEEEEEEEFKEEFNNNNCQMNMNNNNNMNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNCCNNNHHMNHHQNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNENNMNNNNMNNNNNNOOHNNNNNNNNNNMNNNNNNNNMNNNNNNNNNNNNNNNNNNEMNENNNNCNNNNNNNCQEOOMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNFIKIIIIIIIKNNMNMNNMNMNNNNNNMNNNNNMNMNMNNNNNNNNNNNNNNNNNNNNNNNNMNHMNNNNNNNNNNNNNNNNNNMNMNMNNNNNNNNNNMNMNNNNNNMNMNNNNNNNNNNNNFIIIIIIIIFIIIIIIIINNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNRRKRRKKKMMTFFTKNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCFFFFFFFFFFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCCCCCPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNGJFPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPNNNNNNNNNPPPPPPPPNNNNNPPPPPPPPPPPPPPPPPPPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPFIIFIIFFFFFFFIIIFFFIIIFFFFIIIIIIIIIIIIIIIIIFIIIIPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOONNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNOOOOOOOOPPPPPPPGGPPPPPPPGPPPPPPPGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPTPPPPPPPPTGPPPPGPPGGPPPGPPPPPPGGGPPPPPPPPPPPPPPPPPPPOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOIIFFIFIIIIFIIIIIIIIIIIIIIIIIIFIFIIIIIIIIIIINOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOJFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNEKEKNNNMMMNNNNNNMNNNMNNNNNNNNNMNNNNNNNNNNNNMNNNNNNNNNNNNNNNMNNNNNNNNNMNNNNNNM","n":["AllowTypeChange","AlreadyBorrowed","BorrowError","Complex32","Complex64","Element","FromVecError","IS_COPY","IntoPyArray","Ix1","Ix1","Ix2","Ix2","Ix3","Ix3","Ix4","Ix4","Ix5","Ix5","Ix6","Ix6","IxDyn","IxDyn","NotContiguousError","NotWriteable","NpyIndex","PY_ARRAY_API","PY_UFUNC_API","PyArray","PyArray0","PyArray0Methods","PyArray1","PyArray2","PyArray3","PyArray4","PyArray5","PyArray6","PyArrayDescr","PyArrayDescrMethods","PyArrayDyn","PyArrayLike","PyArrayLike0","PyArrayLike1","PyArrayLike2","PyArrayLike3","PyArrayLike4","PyArrayLike5","PyArrayLike6","PyArrayLikeDyn","PyArrayMethods","PyFixedString","PyFixedUnicode","PyReadonlyArray","PyReadonlyArray0","PyReadonlyArray1","PyReadonlyArray2","PyReadonlyArray3","PyReadonlyArray4","PyReadonlyArray5","PyReadonlyArray6","PyReadonlyArrayDyn","PyReadwriteArray","PyReadwriteArray0","PyReadwriteArray1","PyReadwriteArray2","PyReadwriteArray3","PyReadwriteArray4","PyReadwriteArray5","PyReadwriteArray6","PyReadwriteArrayDyn","PyUntypedArray","PyUntypedArrayMethods","ToNpyDims","ToPyArray","TypeMustMatch","alignment","arguments","arguments","arguments","array","array","as_array_ptr","as_array_ptr","as_dtype_ptr","as_dtype_ptr","as_ptr","as_ptr","as_ref","as_ref","base","base","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","byteorder","char","clone","clone","clone_into","clone_into","cmp","cmp","convert","datetime","deref","deref","deref","dot","dtype","dtype","dtype","dtype_bound","einsum","einsum","eq","eq","extract_bound","extract_bound","extract_bound","flags","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from_borrowed_ptr_or_opt","from_borrowed_ptr_or_opt","from_owned_ptr_or_opt","from_owned_ptr_or_opt","from_py_object_bound","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","get_array_module","get_dtype","get_dtype","get_dtype_bound","get_dtype_bound","get_dtype_bound","get_dtype_bound","get_dtype_bound","get_field","get_field","has_fields","has_object","has_subarray","hash","hash","im","im","inner","into","into","into","into","into","into","into","into","into","into","into_dtype_ptr","into_dtype_ptr","into_py","into_py","into_py","is_aligned_struct","is_c_contiguous","is_contiguous","is_empty","is_equiv_to","is_equiv_to","is_fortran_contiguous","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_native_byteorder","is_type_of","is_type_of_bound","itemsize","kind","len","nalgebra","names","names","ndarray","ndim","ndim","new","new_bound","npyffi","num","object","object_bound","of","of_bound","partial_cmp","partial_cmp","prelude","pyarray","pyo3","re","re","shape","shape","shape","strides","to_object","to_object","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_string","to_string","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from_exact","try_from_exact","try_from_unchecked","try_from_unchecked","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_check","type_check","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_object_raw","type_object_raw","typeobj","typeobj","PyArray","PyArray0","PyArray0Methods","PyArray1","PyArray2","PyArray3","PyArray4","PyArray5","PyArray6","PyArrayDyn","PyArrayMethods","arange","arange_bound","as_array","as_array","as_array_mut","as_array_mut","as_ptr","as_raw_array","as_raw_array","as_raw_array_mut","as_raw_array_mut","as_ref","as_slice","as_slice","as_slice_mut","as_slice_mut","as_untyped","as_untyped","borrow","borrow_from_array","borrow_from_array_bound","borrow_mut","cast","cast","copy_to","copy_to","data","data","deref","dims","dims","extract_bound","fmt","fmt","from","from_array","from_borrowed_ptr","from_borrowed_ptr_or_opt","from_iter","from_owned_array","from_owned_array_bound","from_owned_object_array","from_owned_object_array_bound","from_owned_ptr","from_owned_ptr_or_opt","from_slice","from_slice_bound","from_subset","from_vec","from_vec2","from_vec3","get","get","get_array_module","get_mut","get_mut","get_owned","get_owned","into","into_py","into_py","is_in_subset","is_type_of_bound","item","item","new","new_bound","readonly","readonly","readwrite","readwrite","reshape","reshape","reshape_with_order","reshape_with_order","resize","resize","to_dyn","to_dyn","to_object","to_owned","to_owned_array","to_owned_array","to_string","to_subset","to_subset_unchecked","to_vec","to_vec","try_as_matrix","try_as_matrix","try_as_matrix_mut","try_as_matrix_mut","try_from","try_from","try_from_exact","try_from_unchecked","try_into","try_readonly","try_readonly","try_readwrite","try_readwrite","type_check","type_id","type_object_raw","uget","uget","uget_mut","uget_mut","uget_raw","uget_raw","zeros","zeros_bound","PyReadonlyArray","PyReadonlyArray0","PyReadonlyArray1","PyReadonlyArray2","PyReadonlyArray3","PyReadonlyArray4","PyReadonlyArray5","PyReadonlyArray6","PyReadonlyArrayDyn","PyReadwriteArray","PyReadwriteArray0","PyReadwriteArray1","PyReadwriteArray2","PyReadwriteArray3","PyReadwriteArray4","PyReadwriteArray5","PyReadwriteArray6","PyReadwriteArrayDyn","as_array","as_array_mut","as_matrix","as_matrix","as_matrix_mut","as_matrix_mut","as_slice","as_slice_mut","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deref","deref","drop","drop","extract_bound","extract_bound","fmt","fmt","from","from","from_py_object_bound","from_py_object_bound","from_subset","from_subset","get","get_mut","into","into","is_in_subset","is_in_subset","resize","to_owned","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_as_matrix","try_as_matrix_mut","try_from","try_from","try_into","try_into","type_id","type_id","Dim","Dim","IntoPyArray","Item","Item","NpyIndex","ToNpyDims","ToPyArray","into_pyarray","to_pyarray","ABBREV","Datetime","Timedelta","UNIT","Unit","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","cmp","cmp","eq","eq","fmt","fmt","from","from","from","from","from_subset","from_subset","get_dtype_bound","get_dtype_bound","hash","hash","into","into","is_in_subset","is_in_subset","partial_cmp","partial_cmp","to_owned","to_owned","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_into","try_into","type_id","type_id","units","Attoseconds","Days","Femtoseconds","Hours","Microseconds","Milliseconds","Minutes","Months","Nanoseconds","Picoseconds","Seconds","Weeks","Years","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","into","into","into","into","into","into","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","array","flags","objects","types","ufunc","NPY_NUMUSERTYPES","NpyIter_AdvancedNew","NpyIter_Copy","NpyIter_CreateCompatibleStrides","NpyIter_Deallocate","NpyIter_DebugPrint","NpyIter_EnableExternalLoop","NpyIter_GetAxisStrideArray","NpyIter_GetBufferSize","NpyIter_GetDataPtrArray","NpyIter_GetDescrArray","NpyIter_GetGetMultiIndex","NpyIter_GetIndexPtr","NpyIter_GetInitialDataPtrArray","NpyIter_GetInnerFixedStrideArray","NpyIter_GetInnerLoopSizePtr","NpyIter_GetInnerStrideArray","NpyIter_GetIterIndex","NpyIter_GetIterIndexRange","NpyIter_GetIterNext","NpyIter_GetIterSize","NpyIter_GetIterView","NpyIter_GetNDim","NpyIter_GetNOp","NpyIter_GetOperandArray","NpyIter_GetReadFlags","NpyIter_GetShape","NpyIter_GetWriteFlags","NpyIter_GotoIndex","NpyIter_GotoIterIndex","NpyIter_GotoMultiIndex","NpyIter_HasDelayedBufAlloc","NpyIter_HasExternalLoop","NpyIter_HasIndex","NpyIter_HasMultiIndex","NpyIter_IsBuffered","NpyIter_IsFirstVisit","NpyIter_IsGrowInner","NpyIter_IterationNeedsAPI","NpyIter_MultiNew","NpyIter_New","NpyIter_RemoveAxis","NpyIter_RemoveMultiIndex","NpyIter_RequiresBuffering","NpyIter_Reset","NpyIter_ResetBasePointers","NpyIter_ResetToIterIndexRange","NpyTypes","PY_ARRAY_API","PyArrayAPI","PyArrayDescr_Type","PyArrayFlags_Type","PyArrayIter_Type","PyArrayMultiIter_Type","PyArray_All","PyArray_Any","PyArray_Arange","PyArray_ArangeObj","PyArray_ArgMax","PyArray_ArgMin","PyArray_ArgPartition","PyArray_ArgSort","PyArray_As1D","PyArray_As2D","PyArray_AsCArray","PyArray_AxisConverter","PyArray_BoolConverter","PyArray_Broadcast","PyArray_BroadcastToShape","PyArray_BufferConverter","PyArray_ByteorderConverter","PyArray_Byteswap","PyArray_CanCastArrayTo","PyArray_CanCastSafely","PyArray_CanCastScalar","PyArray_CanCastTo","PyArray_CanCastTypeTo","PyArray_CanCoerceScalar","PyArray_CastAnyTo","PyArray_CastScalarDirect","PyArray_CastScalarToCtype","PyArray_CastTo","PyArray_CastToType","PyArray_CastingConverter","PyArray_Check","PyArray_CheckAnyScalarExact","PyArray_CheckAxis","PyArray_CheckExact","PyArray_CheckFromAny","PyArray_CheckStrides","PyArray_Choose","PyArray_Clip","PyArray_ClipmodeConverter","PyArray_CompareLists","PyArray_CompareString","PyArray_CompareUCS4","PyArray_Compress","PyArray_Concatenate","PyArray_Conjugate","PyArray_ConvertClipmodeSequence","PyArray_ConvertToCommonType","PyArray_Converter","PyArray_CopyAndTranspose","PyArray_CopyAnyInto","PyArray_CopyInto","PyArray_CopyObject","PyArray_Correlate","PyArray_Correlate2","PyArray_CountNonzero","PyArray_CreateSortedStridePerm","PyArray_CumProd","PyArray_CumSum","PyArray_DatetimeStructToDatetime","PyArray_DatetimeToDatetimeStruct","PyArray_DebugPrint","PyArray_DescrAlignConverter","PyArray_DescrAlignConverter2","PyArray_DescrConverter","PyArray_DescrConverter2","PyArray_DescrFromObject","PyArray_DescrFromScalar","PyArray_DescrFromType","PyArray_DescrFromTypeObject","PyArray_DescrNew","PyArray_DescrNewByteorder","PyArray_DescrNewFromType","PyArray_Diagonal","PyArray_Dump","PyArray_Dumps","PyArray_EinsteinSum","PyArray_ElementFromName","PyArray_ElementStrides","PyArray_Empty","PyArray_EnsureAnyArray","PyArray_EnsureArray","PyArray_EquivTypenums","PyArray_EquivTypes","PyArray_FailUnlessWriteable","PyArray_FieldNames","PyArray_FillObjectArray","PyArray_FillWithScalar","PyArray_Flatten","PyArray_Free","PyArray_FromAny","PyArray_FromArray","PyArray_FromArrayAttr","PyArray_FromBuffer","PyArray_FromDims","PyArray_FromDimsAndDataAndDescr","PyArray_FromFile","PyArray_FromInterface","PyArray_FromIter","PyArray_FromScalar","PyArray_FromString","PyArray_FromStructInterface","PyArray_GetArrayParamsFromObject","PyArray_GetCastFunc","PyArray_GetEndianness","PyArray_GetField","PyArray_GetNDArrayCFeatureVersion","PyArray_GetNDArrayCVersion","PyArray_GetNumericOps","PyArray_GetPriority","PyArray_GetPtr","PyArray_INCREF","PyArray_InitArrFuncs","PyArray_InnerProduct","PyArray_IntTupleFromIntp","PyArray_IntpConverter","PyArray_IntpFromSequence","PyArray_Item_INCREF","PyArray_Item_XDECREF","PyArray_IterAllButAxis","PyArray_IterNew","PyArray_LexSort","PyArray_MapIterArray","PyArray_MapIterArrayCopyIfOverlap","PyArray_MapIterNext","PyArray_MapIterSwapAxes","PyArray_MatrixProduct","PyArray_MatrixProduct2","PyArray_Max","PyArray_Mean","PyArray_Min","PyArray_MinScalarType","PyArray_MoveInto","PyArray_MultiplyIntList","PyArray_MultiplyList","PyArray_NeighborhoodIterNew","PyArray_New","PyArray_NewCopy","PyArray_NewFlagsObject","PyArray_NewFromDescr","PyArray_NewLikeArray","PyArray_Newshape","PyArray_Nonzero","PyArray_ObjectType","PyArray_One","PyArray_OrderConverter","PyArray_OutputConverter","PyArray_OverflowMultiplyList","PyArray_Partition","PyArray_Prod","PyArray_PromoteTypes","PyArray_Ptp","PyArray_PutMask","PyArray_PutTo","PyArray_PyIntAsInt","PyArray_PyIntAsIntp","PyArray_Ravel","PyArray_RegisterCanCast","PyArray_RegisterCastFunc","PyArray_RegisterDataType","PyArray_RemoveAxesInPlace","PyArray_RemoveSmallest","PyArray_Repeat","PyArray_Reshape","PyArray_Resize","PyArray_ResolveWritebackIfCopy","PyArray_ResultType","PyArray_Return","PyArray_Round","PyArray_Scalar","PyArray_ScalarAsCtype","PyArray_ScalarFromObject","PyArray_ScalarKind","PyArray_SearchSorted","PyArray_SearchsideConverter","PyArray_SelectkindConverter","PyArray_SetBaseObject","PyArray_SetDatetimeParseFunction","PyArray_SetField","PyArray_SetNumericOps","PyArray_SetStringFunction","PyArray_SetUpdateIfCopyBase","PyArray_SetWritebackIfCopyBase","PyArray_Size","PyArray_Sort","PyArray_SortkindConverter","PyArray_Squeeze","PyArray_Std","PyArray_Sum","PyArray_SwapAxes","PyArray_TakeFrom","PyArray_TimedeltaStructToTimedelta","PyArray_TimedeltaToTimedeltaStruct","PyArray_ToFile","PyArray_ToList","PyArray_ToString","PyArray_Trace","PyArray_Transpose","PyArray_Type","PyArray_TypeObjectFromType","PyArray_TypestrConvert","PyArray_UpdateFlags","PyArray_ValidType","PyArray_View","PyArray_Where","PyArray_XDECREF","PyArray_Zero","PyArray_Zeros","PyBigArray_Type","PyBoolArrType_Type","PyByteArrType_Type","PyCDoubleArrType_Type","PyCFloatArrType_Type","PyCLongDoubleArrType_Type","PyCharacterArrType_Type","PyComplexFloatingArrType_Type","PyDataMem_FREE","PyDataMem_NEW","PyDataMem_NEW_ZEROED","PyDataMem_RENEW","PyDataMem_SetEventHook","PyDoubleArrType_Type","PyFlexibleArrType_Type","PyFloatArrType_Type","PyFloatingArrType_Type","PyGenericArrType_Type","PyInexactArrType_Type","PyIntArrType_Type","PyIntegerArrType_Type","PyLongArrType_Type","PyLongDoubleArrType_Type","PyLongLongArrType_Type","PyNumberArrType_Type","PyObjectArrType_Type","PyShortArrType_Type","PySignedIntegerArrType_Type","PyStringArrType_Type","PyUByteArrType_Type","PyUIntArrType_Type","PyULongArrType_Type","PyULongLongArrType_Type","PyUShortArrType_Type","PyUnicodeArrType_Type","PyUnsignedIntegerArrType_Type","PyVoidArrType_Type","_PyArrayScalar_BoolValues","_PyArray_GetSigintBuf","_PyArray_SigintHandler","borrow","borrow","borrow_mut","borrow_mut","from","from","from_subset","from_subset","get_type_object","into","into","is_in_subset","is_in_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_into","try_into","type_id","type_id","NPY_ALIGNED_STRUCT","NPY_ARRAY_ALIGNED","NPY_ARRAY_BEHAVED","NPY_ARRAY_BEHAVED_NS","NPY_ARRAY_CARRAY","NPY_ARRAY_CARRAY_RO","NPY_ARRAY_C_CONTIGUOUS","NPY_ARRAY_DEFAULT","NPY_ARRAY_ELEMENTSTRIDES","NPY_ARRAY_ENSUREARRAY","NPY_ARRAY_ENSURECOPY","NPY_ARRAY_FARRAY","NPY_ARRAY_FARRAY_RO","NPY_ARRAY_FORCECAST","NPY_ARRAY_F_CONTIGUOUS","NPY_ARRAY_INOUT_ARRAY","NPY_ARRAY_INOUT_ARRAY2","NPY_ARRAY_INOUT_FARRAY","NPY_ARRAY_INOUT_FARRAY2","NPY_ARRAY_IN_ARRAY","NPY_ARRAY_IN_FARRAY","NPY_ARRAY_NOTSWAPPED","NPY_ARRAY_OUT_ARRAY","NPY_ARRAY_OUT_FARRAY","NPY_ARRAY_OWNDATA","NPY_ARRAY_UPDATEIFCOPY","NPY_ARRAY_UPDATE_ALL","NPY_ARRAY_WRITEABLE","NPY_ARRAY_WRITEBACKIFCOPY","NPY_FROM_FIELDS","NPY_ITEM_HASOBJECT","NPY_ITEM_IS_POINTER","NPY_ITEM_REFCOUNT","NPY_ITER_ALIGNED","NPY_ITER_ALLOCATE","NPY_ITER_ARRAYMASK","NPY_ITER_BUFFERED","NPY_ITER_COMMON_DTYPE","NPY_ITER_CONTIG","NPY_ITER_COPY","NPY_ITER_COPY_IF_OVERLAP","NPY_ITER_C_INDEX","NPY_ITER_DELAY_BUFALLOC","NPY_ITER_DONT_NEGATE_STRIDES","NPY_ITER_EXTERNAL_LOOP","NPY_ITER_F_INDEX","NPY_ITER_GLOBAL_FLAGS","NPY_ITER_GROWINNER","NPY_ITER_MULTI_INDEX","NPY_ITER_NBO","NPY_ITER_NO_BROADCAST","NPY_ITER_NO_SUBTYPE","NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE","NPY_ITER_PER_OP_FLAGS","NPY_ITER_RANGED","NPY_ITER_READONLY","NPY_ITER_READWRITE","NPY_ITER_REDUCE_OK","NPY_ITER_REFS_OK","NPY_ITER_UPDATEIFCOPY","NPY_ITER_VIRTUAL","NPY_ITER_WRITEMASKED","NPY_ITER_WRITEONLY","NPY_ITER_ZEROSIZE_OK","NPY_LIST_PICKLE","NPY_NEEDS_INIT","NPY_NEEDS_PYAPI","NPY_OBJECT_DTYPE_FLAGS","NPY_USE_GETITEM","NPY_USE_SETITEM","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","NpyAuxData","NpyAuxData_CloneFunc","NpyAuxData_FreeFunc","NpyIter","NpyIter_GetMultiIndexFunc","NpyIter_IterNextFunc","PyArrayFlagsObject","PyArrayInterface","PyArrayIterObject","PyArrayMapIterObject","PyArrayMultiIterObject","PyArrayNeighborhoodIterObject","PyArrayObject","PyArray_ArgFunc","PyArray_ArgPartitionFunc","PyArray_ArgSortFunc","PyArray_ArrFuncs","PyArray_ArrayDescr","PyArray_Chunk","PyArray_CompareFunc","PyArray_CopySwapFunc","PyArray_CopySwapNFunc","PyArray_DatetimeDTypeMetaData","PyArray_DatetimeMetaData","PyArray_Descr","PyArray_Dims","PyArray_DotFunc","PyArray_FastClipFunc","PyArray_FastPutmaskFunc","PyArray_FastTakeFunc","PyArray_FillFunc","PyArray_FillWithScalarFunc","PyArray_FromStrFunc","PyArray_GetItemFunc","PyArray_NonzeroFunc","PyArray_PartitionFunc","PyArray_ScalarKindFunc","PyArray_ScanFunc","PyArray_SetItemFunc","PyArray_SortFunc","PyArray_VectorUnaryFunc","PyDataMem_EventHookFunc","PyUFuncGenericFunction","PyUFuncObject","PyUFunc_LegacyInnerLoopSelectionFunc","PyUFunc_MaskedInnerLoopSelectionFunc","PyUFunc_MaskedStridedInnerLoopFunc","PyUFunc_TypeResolutionFunc","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","_internal_iter","ait","alignment","ao","ao","argmax","argmin","argsort","arr","array","backstrides","backstrides","base","base","base","base","base","baseoffset","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bounds","bounds","byteorder","c_metadata","cancastscalarkindto","cancastto","cast","castdict","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","compare","consec","constant","contiguous","contiguous","coordinates","coordinates","copyswap","copyswapn","core_dim_ixs","core_enabled","core_num_dim_ix","core_num_dims","core_offsets","core_signature","data","data","data","dataptr","dataptr","dataptr","descr","descr","dimensions","dimensions","dimensions","dimensions","dims_m1","dims_m1","doc","dotfunc","elsize","extra_op","extra_op_dtype","extra_op_flags","extra_op_iter","extra_op_next","extra_op_ptrs","f","factors","factors","fancy_dims","fancy_strides","fastclip","fastputmask","fasttake","fields","fill","fillwithscalar","flags","flags","flags","flags","flags","fmt","free","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","fromstr","functions","getitem","hash","identity","index","index","index","index","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","itemsize","iter_count","iter_flags","iteraxes","iters","kind","legacy_inner_loop_selector","len","len","limits","limits","limits_sizes","limits_sizes","masked_inner_loop_selector","meta","metadata","mode","name","names","nargs","nd","nd","nd","nd","nd","nd_fancy","nd_m1","nd_m1","needs_api","nin","nonzero","nout","npy_iter_get_dataptr_t","ntypes","num","numiter","numiter","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","obj","op_flags","outer","outer_next","outer_ptrs","outer_strides","ptr","ptr","ptr","reserved","reserved1","reserved2","scalarkind","scanfunc","setitem","shape","shape","size","size","size","size","sort","strides","strides","strides","strides","subarray","subspace","subspace_iter","subspace_next","subspace_ptrs","subspace_strides","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","translate","translate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","two","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_num","type_resolver","typekind","typeobj","types","unused","userloops","weakreflist","NPY_ANYORDER","NPY_BIG","NPY_BOOL","NPY_BOOLLTR","NPY_BOOL_SCALAR","NPY_BYTE","NPY_BYTELTR","NPY_BYTEORDER_CHAR","NPY_CASTING","NPY_CDOUBLE","NPY_CDOUBLELTR","NPY_CFLOAT","NPY_CFLOATLTR","NPY_CHAR","NPY_CHARLTR","NPY_CLIP","NPY_CLIPMODE","NPY_CLONGDOUBLE","NPY_CLONGDOUBLELTR","NPY_COMPLEXLTR","NPY_COMPLEX_SCALAR","NPY_CORDER","NPY_DATETIME","NPY_DATETIMELTR","NPY_DATETIMEUNIT","NPY_DOUBLE","NPY_DOUBLELTR","NPY_EQUIV_CASTING","NPY_FLOAT","NPY_FLOATINGLTR","NPY_FLOATLTR","NPY_FLOAT_SCALAR","NPY_FORTRANORDER","NPY_FR_D","NPY_FR_GENERIC","NPY_FR_M","NPY_FR_W","NPY_FR_Y","NPY_FR_as","NPY_FR_fs","NPY_FR_h","NPY_FR_m","NPY_FR_ms","NPY_FR_ns","NPY_FR_ps","NPY_FR_s","NPY_FR_us","NPY_GENBOOLLTR","NPY_HALF","NPY_HALFLTR","NPY_HEAPSORT","NPY_IGNORE","NPY_INT","NPY_INTLTR","NPY_INTNEG_SCALAR","NPY_INTPLTR","NPY_INTPOS_SCALAR","NPY_INTROSELECT","NPY_KEEPORDER","NPY_LITTLE","NPY_LONG","NPY_LONGDOUBLE","NPY_LONGDOUBLELTR","NPY_LONGLONG","NPY_LONGLONGLTR","NPY_LONGLTR","NPY_MERGESORT","NPY_NATBYTE","NPY_NATIVE","NPY_NOSCALAR","NPY_NOTYPE","NPY_NO_CASTING","NPY_NTYPES","NPY_OBJECT","NPY_OBJECTLTR","NPY_OBJECT_SCALAR","NPY_OPPBYTE","NPY_ORDER","NPY_QUICKSORT","NPY_RAISE","NPY_SAFE_CASTING","NPY_SAME_KIND_CASTING","NPY_SCALARKIND","NPY_SEARCHLEFT","NPY_SEARCHRIGHT","NPY_SEARCHSIDE","NPY_SELECTKIND","NPY_SHORT","NPY_SHORTLTR","NPY_SIGNEDLTR","NPY_SORTKIND","NPY_STRING","NPY_STRINGLTR","NPY_STRINGLTR2","NPY_SWAP","NPY_TIMEDELTA","NPY_TIMEDELTALTR","NPY_TYPECHAR","NPY_TYPEKINDCHAR","NPY_TYPES","NPY_UBYTE","NPY_UBYTELTR","NPY_UINT","NPY_UINTLTR","NPY_UINTPLTR","NPY_ULONG","NPY_ULONGLONG","NPY_ULONGLONGLTR","NPY_ULONGLTR","NPY_UNICODE","NPY_UNICODELTR","NPY_UNSAFE_CASTING","NPY_UNSIGNEDLTR","NPY_USERDEF","NPY_USHORT","NPY_USHORTLTR","NPY_VOID","NPY_VOIDLTR","NPY_WRAP","as_","as_","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","day","day","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hour","imag","imag","imag","imag","imag","imag","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","min","month","npy_bool","npy_byte","npy_cdouble","npy_cfloat","npy_char","npy_clongdouble","npy_complex128","npy_complex256","npy_complex64","npy_datetime","npy_datetimestruct","npy_double","npy_float","npy_float128","npy_float16","npy_float32","npy_float64","npy_half","npy_hash_t","npy_int","npy_int16","npy_int32","npy_int64","npy_int8","npy_intp","npy_long","npy_longdouble","npy_longlong","npy_short","npy_stride_sort_item","npy_timedelta","npy_timedeltastruct","npy_ubyte","npy_ucs4","npy_uint","npy_uint16","npy_uint32","npy_uint64","npy_uint8","npy_uintp","npy_ulong","npy_ulonglong","npy_ushort","partial_cmp","perm","ps","ps","real","real","real","real","real","real","sec","sec","stride","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","us","us","year","PY_UFUNC_API","PyUFuncAPI","PyUFunc_DD_D","PyUFunc_D_D","PyUFunc_DefaultTypeResolver","PyUFunc_FF_F","PyUFunc_FF_F_As_DD_D","PyUFunc_F_F","PyUFunc_F_F_As_D_D","PyUFunc_FromFuncAndData","PyUFunc_FromFuncAndDataAndSignature","PyUFunc_FromFuncAndDataAndSignatureAndIdentity","PyUFunc_GG_G","PyUFunc_G_G","PyUFunc_GenericFunction","PyUFunc_GetPyValues","PyUFunc_OO_O","PyUFunc_OO_O_method","PyUFunc_O_O","PyUFunc_O_O_method","PyUFunc_On_Om","PyUFunc_RegisterLoopForDescr","PyUFunc_RegisterLoopForType","PyUFunc_ReplaceLoopBySignature","PyUFunc_SetUsesArraysAsData","PyUFunc_ValidateCasting","PyUFunc_checkfperr","PyUFunc_clearfperr","PyUFunc_d_d","PyUFunc_dd_d","PyUFunc_e_e","PyUFunc_e_e_As_d_d","PyUFunc_e_e_As_f_f","PyUFunc_ee_e","PyUFunc_ee_e_As_dd_d","PyUFunc_ee_e_As_ff_f","PyUFunc_f_f","PyUFunc_f_f_As_d_d","PyUFunc_ff_f","PyUFunc_ff_f_As_dd_d","PyUFunc_g_g","PyUFunc_getfperr","PyUFunc_gg_g","PyUFunc_handlefperr","borrow","borrow_mut","from","from_subset","into","is_in_subset","to_subset","to_subset_unchecked","try_from","try_into","type_id","PyArray0Methods","PyArrayDescrMethods","PyArrayMethods","PyUntypedArrayMethods","alignment","alignment","alignment","as_array_ptr","as_dtype_ptr","base","byteorder","byteorder","byteorder","char","char","char","dtype","flags","flags","flags","get_field","has_fields","has_fields","has_fields","has_object","has_object","has_object","has_subarray","has_subarray","has_subarray","into_dtype_ptr","is_aligned_struct","is_aligned_struct","is_aligned_struct","is_c_contiguous","is_c_contiguous","is_c_contiguous","is_contiguous","is_contiguous","is_contiguous","is_empty","is_empty","is_empty","is_equiv_to","is_fortran_contiguous","is_fortran_contiguous","is_fortran_contiguous","is_native_byteorder","is_native_byteorder","is_native_byteorder","itemsize","itemsize","itemsize","kind","kind","kind","len","len","len","names","ndim","ndim","ndim","ndim","ndim","ndim","num","num","num","shape","shape","shape","shape","strides","strides","strides","typeobj"],"q":[[0,"numpy"],[336,"numpy::array"],[459,"numpy::borrow"],[525,"numpy::convert"],[535,"numpy::datetime"],[583,"numpy::datetime::units"],[843,"numpy::npyffi"],[848,"numpy::npyffi::array"],[1172,"numpy::npyffi::flags"],[1242,"numpy::npyffi::objects"],[1774,"numpy::npyffi::types"],[2255,"numpy::npyffi::ufunc"],[2310,"numpy::prelude"],[2387,"ndarray::dimension::dim"],[2388,"ndarray::dimension::dynindeximpl"],[2389,"pyo3::marker"],[2390,"pyo3::instance"],[2391,"pyo3_ffi::object"],[2392,"pyo3::types::any"],[2393,"pyo3::instance"],[2394,"ndarray::dimension::dimension_trait"],[2395,"pyo3::err"],[2396,"std::os::raw"],[2397,"core::fmt"],[2398,"core::fmt"],[2399,"core::fmt"],[2400,"pyo3_ffi::unicodeobject"],[2401,"pyo3::err"],[2402,"pyo3::instance"],[2403,"pyo3::conversion"],[2404,"core::marker"],[2405,"std::os::raw"],[2406,"pyo3::err"],[2407,"core::any"],[2408,"pyo3_ffi::cpython::object"],[2409,"pyo3::types::typeobject"],[2410,"num_traits::cast"],[2411,"ndarray"],[2412,"ndarray"],[2413,"core::iter::traits::collect"],[2414,"ndarray"],[2415,"ndarray::aliases"],[2416,"core::marker"],[2417,"nalgebra::base::matrix_view"],[2418,"nalgebra::base::scalar"],[2419,"nalgebra::base::dimension"],[2420,"nalgebra::base::matrix_view"],[2421,"nalgebra::base::alias_view"],[2422,"core::cmp"],[2423,"std::os::raw"]],"d":["Marker type to indicate that the element type received via …","The given array is already borrowed","Inidcates why borrowing an array failed.","","","Represents that a type can be an element of PyArray.","Represents that given Vec cannot be treated as an array.","Flag that indicates whether this type is trivially …","","Create a one-dimensional index","one-dimensional","Create a two-dimensional index","two-dimensional","Create a three-dimensional index","three-dimensional","Create a four-dimensional index","four-dimensional","Create a five-dimensional index","five-dimensional","Create a six-dimensional index","six-dimensional","Create a dynamic-dimensional index","dynamic-dimensional","Represents that the given array is not contiguous.","The given array is not writeable","","","","","","","","","","","","","Binding of numpy.dtype.","Implementation of functionality for PyArrayDescr.","","Receiver for arrays or array-like types.","Receiver for zero-dimensional arrays or array-like types.","Receiver for one-dimensional arrays or array-like types.","Receiver for two-dimensional arrays or array-like types.","Receiver for three-dimensional arrays or array-like types.","Receiver for four-dimensional arrays or array-like types.","Receiver for five-dimensional arrays or array-like types.","Receiver for six-dimensional arrays or array-like types.","Receiver for arrays or array-like types whose …","","A newtype wrapper around [u8; N] to handle byte scalars …","A newtype wrapper around [PyUCS4; N] to handle str_ scalars…","","","","","","","","","","","","","","","","","","","A safe, untyped wrapper for NumPy’s ndarray class.","Implementation of functionality for PyUntypedArray.","","","Marker type to indicate that the element type received via …","Returns the required alignment (bytes) of this type …","","","","Safe interface for NumPy’s N-dimensional arrays","Create an Array with one, two or three dimensions.","Returns a raw pointer to the underlying PyArrayObject.","Returns a raw pointer to the underlying PyArrayObject.","Returns self as *mut PyArray_Descr.","Returns self as *mut PyArray_Descr.","Gets the underlying FFI pointer, returns a borrowed …","Gets the underlying FFI pointer, returns a borrowed …","","","Returns the type descriptor for the base element of …","Returns the type descriptor for the base element of …","Types to safely create references into NumPy arrays","","","","","","","","","","","","","","","","","","","","","Returns an ASCII character indicating the byte-order of …","Returns a unique ASCII character for each of the 21 …","","","","","","","Defines conversion traits between Rust types and NumPy …","Support datetimes and timedeltas","","","","Return the dot product of two arrays.","Returns the type descriptor (“dtype”) for a registered …","Returns the dtype of the array.","Returns the dtype of the array.","Returns the type descriptor (“dtype”) for a registered …","Return the Einstein summation convention of given tensors.","Return the Einstein summation convention of given tensors.","","","","","","Returns bit-flags describing how this type descriptor is …","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","","","","","","","","","","","","","","Returns the associated type descriptor (“dtype”) for …","Returns the associated type descriptor (“dtype”) for …","Returns the associated type descriptor (“dtype”) for …","","","","","Returns the type descriptor and offset of the field with …","Returns the type descriptor and offset of the field with …","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor contains any …","Returns true if the type descriptor is a sub-array.","","","Imaginary portion of the complex number","Imaginary portion of the complex number","Return the inner product of two arrays.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Returns self as *mut PyArray_Descr while increasing the …","Returns self as *mut PyArray_Descr while increasing the …","","","","Returns true if the type descriptor is a struct which …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the there are no elements in the array.","Returns true if two type descriptors are equivalent.","Returns true if two type descriptors are equivalent.","Returns true if the internal data of the array is …","","","","","","","","","","","Returns true if type descriptor byteorder is native, or …","","","Returns the element size of this type descriptor.","Returns an ASCII character (one of biufcmMOSUV) …","Calculates the total number of elements in the array.","","Returns an ordered list of field names, or None if there …","Returns an ordered list of field names, or None if there …","","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions of the array.","Creates a new type descriptor (“dtype”) object from an …","Creates a new type descriptor (“dtype”) object from an …","Low-Level bindings for NumPy C API.","Returns a unique number for each of the 21 different …","Shortcut for creating a type descriptor of object type.","Shortcut for creating a type descriptor of object type.","Returns the type descriptor for a registered type.","Returns the type descriptor for a registered type.","","","A prelude","Create a PyArray with one, two or three dimensions.","","Real portion of the complex number","Real portion of the complex number","Returns the shape of the sub-array.","Returns the shape of the sub-array.","Returns a slice which contains dimmensions of the array.","Returns a slice indicating how many bytes to advance when …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the array scalar corresponding to this type …","Returns the array scalar corresponding to this type …","A safe, statically-typed wrapper for NumPy’s ndarray …","Zero-dimensional array.","Implementation of functionality for PyArray0<T>.","One-dimensional array.","Two-dimensional array.","Three-dimensional array.","Four-dimensional array.","Five-dimensional array.","Six-dimensional array.","Dynamic-dimensional array.","Implementation of functionality for PyArray<T, D>.","Deprecated form of PyArray<T, Ix1>::arange_bound","Return evenly spaced values within a given interval.","Returns an ArrayView of the internal array.","Returns an ArrayView of the internal array.","Returns an ArrayViewMut of the internal array.","Returns an ArrayViewMut of the internal array.","","Returns the internal array as RawArrayView enabling …","Returns the internal array as RawArrayView enabling …","Returns the internal array as RawArrayViewMut enabling …","Returns the internal array as RawArrayViewMut enabling …","","Returns an immutable view of the internal data as a slice.","Returns an immutable view of the internal data as a slice.","Returns a mutable view of the internal data as a slice.","Returns a mutable view of the internal data as a slice.","Access an untyped representation of this array.","Access an untyped representation of this array.","","Deprecated form of PyArray<T, D>::borrow_from_array_bound","Creates a NumPy array backed by array and ties its …","","Cast the PyArray<T> to PyArray<U>, by allocating a new …","Cast the PyArray<T> to PyArray<U>, by allocating a new …","Copies self into other, performing a data type conversion …","Copies self into other, performing a data type conversion …","Returns a pointer to the first element of the array.","Returns a pointer to the first element of the array.","","Same as shape, but returns D instead of &[usize].","Same as shape, but returns D instead of &[usize].","","","","Returns the argument unchanged.","Construct a NumPy array from a ndarray::ArrayBase.","Constructs a reference to a PyArray from a raw point to a …","","Construct a one-dimensional array from an Iterator.","Deprecated form of PyArray<T, D>::from_owned_array_bound","Constructs a NumPy from an ndarray::Array","Deprecated form of …","Construct a NumPy array containing objects stored in a …","Constructs a reference to a PyArray from a raw pointer to …","","Deprecated form of PyArray<T, Ix1>::from_slice_bound","Construct a one-dimensional array from a slice.","","Construct a one-dimensional array from a Vec<T>.","Construct a two-dimension array from a Vec<Vec<T>>.","Construct a three-dimensional array from a Vec<Vec<Vec<T>>>…","Get a reference of the specified element if the given …","Get a reference of the specified element if the given …","Returns a handle to NumPy’s multiarray module.","Same as get, but returns Option<&mut T>.","Same as get, but returns Option<&mut T>.","Get a copy of the specified element in the array.","Get a copy of the specified element in the array.","Calls U::from(self).","","","","","Get the single element of a zero-dimensional array.","Get the single element of a zero-dimensional array.","Deprecated form of PyArray<T, D>::new_bound","Creates a new uninitialized NumPy array.","Get an immutable borrow of the NumPy array","Get an immutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","Special case of reshape_with_order which keeps the memory …","Special case of reshape_with_order which keeps the memory …","Construct a new array which has same values as self, but …","Construct a new array which has same values as self, but …","Extends or truncates the dimensions of an array.","Extends or truncates the dimensions of an array.","Turn an array with fixed dimensionality into one with …","Turn an array with fixed dimensionality into one with …","","Turn &PyArray<T,D> into Py<PyArray<T,D>>, i.e. a pointer …","Get a copy of the array as an ndarray::Array.","Get a copy of the array as an ndarray::Array.","","","","Returns a copy of the internal data of the array as a Vec.","Returns a copy of the internal data of the array as a Vec.","Try to convert this array into a nalgebra::MatrixView …","Try to convert this array into a nalgebra::MatrixView …","Try to convert this array into a nalgebra::MatrixViewMut …","Try to convert this array into a nalgebra::MatrixViewMut …","","","","","","Get an immutable borrow of the NumPy array","Get an immutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","","","","Get an immutable reference of the specified element, …","Get an immutable reference of the specified element, …","Same as uget, but returns &mut T.","Same as uget, but returns &mut T.","Same as uget, but returns *mut T.","Same as uget, but returns *mut T.","Deprecated form of PyArray<T, D>::zeros_bound","Construct a new NumPy array filled with zeros.","Read-only borrow of an array.","Read-only borrow of a zero-dimensional array.","Read-only borrow of a one-dimensional array.","Read-only borrow of a two-dimensional array.","Read-only borrow of a three-dimensional array.","Read-only borrow of a four-dimensional array.","Read-only borrow of a five-dimensional array.","Read-only borrow of a six-dimensional array.","Read-only borrow of an array whose dimensionality is …","Read-write borrow of an array.","Read-write borrow of a zero-dimensional array.","Read-write borrow of a one-dimensional array.","Read-write borrow of a two-dimensional array.","Read-write borrow of a three-dimensional array.","Read-write borrow of a four-dimensional array.","Read-write borrow of a five-dimensional array.","Read-write borrow of a six-dimensional array.","Read-write borrow of an array whose dimensionality is …","Provides an immutable array view of the interior of the …","Provides a mutable array view of the interior of the NumPy …","Convert this two-dimensional array into a …","Convert this one-dimensional array into a …","Convert this one-dimensional array into a …","Convert this two-dimensional array into a …","Provide an immutable slice view of the interior of the …","Provide a mutable slice view of the interior of the NumPy …","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","","Provide an immutable reference to an element of the NumPy …","Provide a mutable reference to an element of the NumPy …","Calls U::from(self).","Calls U::from(self).","","","Extends or truncates the dimensions of an array.","","","","","","Try to convert this array into a nalgebra::MatrixView …","Try to convert this array into a nalgebra::MatrixViewMut …","","","","","","","The dimension type of the resulting array.","The dimension type of the resulting array.","Conversion trait from owning Rust types into PyArray.","The element type of resulting array.","The element type of resulting array.","Trait implemented by types that can be used to index an …","Utility trait to specify the dimensions of an array.","Conversion trait from borrowing Rust types to PyArray.","Consumes self and moves its data into a NumPy array.","Copies the content pointed to by &self into a newly …","The abbrevation used for debug formatting","Corresponds to the datetime64 scalar type","Corresponds to the [timedelta64][scalars-datetime64] …","The matching NumPy datetime unit code","Represents the datetime units supported by NumPy","","","","","","","","","","","","","","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","Predefined implementors of the Unit trait","Attoseconds, i.e. 10^-18 seconds","Days, i.e. 24 hours","Femtoseconds, i.e. 10^-15 seconds","Hours, i.e. 60 minutes","Microseconds, i.e. 10^-6 seconds","Milliseconds, i.e. 10^-3 seconds","Minutes, i.e. 60 seconds","Months, i.e. 30 days","Nanoseconds, i.e. 10^-9 seconds","Picoseconds, i.e. 10^-12 seconds","Seconds","Weeks, i.e. 7 days","Years, i.e. 12 months","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Low-Level binding for Array API","","Low-Lebel binding for NumPy C API C-objects","","Low-Level binding for UFunc API","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","All type objects exported by the NumPy API.","A global variable which stores a ‘capsule’ pointer to …","See PY_ARRAY_API for more.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Checks that op is an instance of PyArray or not.","","","Checks that op is an exact instance of PyArray or not.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Get a pointer of the type object assocaited with ty.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A global variable which stores a ‘capsule’ pointer to …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","Implementation of functionality for PyArrayDescr.","","Implementation of functionality for PyUntypedArray.","Returns the required alignment (bytes) of this type …","Returns the required alignment (bytes) of this type …","Returns the required alignment (bytes) of this type …","Returns a raw pointer to the underlying PyArrayObject.","Returns self as *mut PyArray_Descr.","Returns the type descriptor for the base element of …","Returns an ASCII character indicating the byte-order of …","Returns an ASCII character indicating the byte-order of …","Returns an ASCII character indicating the byte-order of …","Returns a unique ASCII character for each of the 21 …","Returns a unique ASCII character for each of the 21 …","Returns a unique ASCII character for each of the 21 …","Returns the dtype of the array.","Returns bit-flags describing how this type descriptor is …","Returns bit-flags describing how this type descriptor is …","Returns bit-flags describing how this type descriptor is …","Returns the type descriptor and offset of the field with …","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor contains any …","Returns true if the type descriptor contains any …","Returns true if the type descriptor contains any …","Returns true if the type descriptor is a sub-array.","Returns true if the type descriptor is a sub-array.","Returns true if the type descriptor is a sub-array.","Returns self as *mut PyArray_Descr while increasing the …","Returns true if the type descriptor is a struct which …","Returns true if the type descriptor is a struct which …","Returns true if the type descriptor is a struct which …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the there are no elements in the array.","Returns true if the there are no elements in the array.","Returns true if the there are no elements in the array.","Returns true if two type descriptors are equivalent.","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if type descriptor byteorder is native, or …","Returns true if type descriptor byteorder is native, or …","Returns true if type descriptor byteorder is native, or …","Returns the element size of this type descriptor.","Returns the element size of this type descriptor.","Returns the element size of this type descriptor.","Returns an ASCII character (one of biufcmMOSUV) …","Returns an ASCII character (one of biufcmMOSUV) …","Returns an ASCII character (one of biufcmMOSUV) …","Calculates the total number of elements in the array.","Calculates the total number of elements in the array.","Calculates the total number of elements in the array.","Returns an ordered list of field names, or None if there …","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions of the array.","Returns the number of dimensions of the array.","Returns the number of dimensions of the array.","Returns a unique number for each of the 21 different …","Returns a unique number for each of the 21 different …","Returns a unique number for each of the 21 different …","Returns the shape of the sub-array.","Returns a slice which contains dimmensions of the array.","Returns a slice which contains dimmensions of the array.","Returns a slice which contains dimmensions of the array.","Returns a slice indicating how many bytes to advance when …","Returns a slice indicating how many bytes to advance when …","Returns a slice indicating how many bytes to advance when …","Returns the array scalar corresponding to this type …"],"i":[0,11,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,10,11,0,0,12,14,15,6,6,14,6,14,15,6,0,6,14,37,39,25,7,10,11,21,22,6,14,37,39,25,7,10,11,21,22,6,6,21,22,21,22,21,22,0,0,6,14,25,0,0,12,14,0,0,0,21,22,6,14,25,6,6,6,14,14,37,39,25,7,7,10,10,11,11,21,21,22,22,6,14,37,39,25,7,10,11,21,21,22,22,6,14,6,14,25,6,14,37,39,25,7,10,11,21,22,0,26,26,26,165,166,21,22,15,6,6,6,6,21,22,165,166,0,6,14,37,39,25,7,10,11,21,22,15,6,6,14,14,6,14,14,14,15,6,14,6,14,37,39,25,7,10,11,21,22,6,6,14,6,6,14,0,15,6,0,6,14,6,6,0,6,6,6,6,6,21,22,0,0,0,165,166,15,6,14,14,6,14,21,22,6,14,7,10,11,21,22,6,14,37,39,25,7,10,11,21,22,6,14,37,39,25,7,10,11,21,22,6,6,14,14,37,39,25,7,10,11,21,22,6,14,6,14,6,14,37,39,25,7,10,11,21,22,6,14,6,14,37,39,25,7,10,11,21,22,6,14,15,6,0,0,0,0,0,0,0,0,0,0,0,28,28,61,28,61,28,28,61,28,61,28,28,28,61,28,61,61,28,28,28,28,28,61,28,61,28,61,28,28,28,61,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,61,28,0,61,28,28,61,28,28,28,28,28,28,79,28,28,28,61,28,61,28,61,61,28,61,28,61,28,28,28,28,61,28,28,28,28,61,61,28,61,28,28,28,28,28,28,61,28,61,28,28,28,28,28,61,28,61,28,61,28,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,81,82,81,81,82,82,81,82,81,82,81,82,81,81,81,82,81,82,81,82,81,82,81,82,81,82,81,82,81,82,81,82,81,82,82,81,81,82,81,82,81,82,81,82,81,82,81,82,91,92,0,91,92,0,0,0,91,92,95,0,0,95,0,93,96,93,96,93,96,93,96,93,96,93,96,93,96,93,93,96,96,93,96,93,96,93,96,93,96,93,96,93,96,93,96,93,96,93,96,93,96,93,96,93,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,102,103,104,105,106,107,108,109,110,111,112,113,114,0,0,0,0,0,147,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,0,0,0,147,147,147,147,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,0,115,115,0,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,147,115,115,115,115,115,115,115,115,115,147,147,147,147,147,147,147,147,115,115,115,115,115,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,115,115,115,147,115,147,115,147,115,147,115,115,147,115,147,115,147,115,147,115,147,115,147,115,147,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,167,168,169,170,171,172,173,174,137,175,176,177,178,179,180,181,182,183,184,185,186,164,187,188,189,190,121,120,146,191,192,193,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,167,168,169,170,171,172,173,174,137,175,176,177,178,179,180,181,182,183,184,185,186,164,187,188,189,190,121,120,146,191,192,193,152,141,16,142,152,139,139,139,149,141,142,152,13,148,127,154,155,141,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,142,152,16,16,139,139,139,139,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,153,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,139,141,152,142,152,142,152,139,139,151,151,151,151,151,151,13,150,151,142,152,141,13,150,13,126,152,141,142,152,151,139,16,141,141,141,141,141,141,16,142,152,141,141,139,139,139,16,139,139,13,16,149,127,150,119,153,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,139,151,139,16,151,142,126,152,141,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,150,141,151,141,126,16,151,140,127,142,152,142,152,151,155,16,152,151,16,151,13,150,126,152,141,141,142,152,141,151,139,151,0,151,154,126,141,13,16,149,127,151,142,126,152,141,151,151,141,141,141,141,140,127,151,153,151,151,139,139,139,148,150,142,126,152,141,139,13,150,142,152,16,141,141,141,141,141,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,142,152,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,150,16,13,16,148,139,149,140,127,150,151,119,142,126,152,141,153,154,155,16,151,150,16,151,141,151,13,83,162,159,160,128,159,160,0,0,159,160,159,160,159,160,129,0,159,160,161,128,83,159,160,0,159,160,117,159,161,160,128,83,132,132,132,132,132,132,132,132,132,132,132,132,132,132,161,159,160,124,162,159,160,128,160,128,123,83,162,159,159,160,159,160,160,124,162,162,128,159,117,159,159,160,128,162,0,124,129,117,117,0,143,143,0,0,159,160,161,0,159,160,160,162,159,160,0,0,0,159,160,159,160,160,159,159,160,160,159,160,117,161,159,159,160,159,160,129,133,144,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,159,133,144,83,128,124,143,132,159,123,117,129,162,156,157,158,83,128,124,143,132,159,123,117,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,83,128,124,143,132,159,123,117,129,162,133,194,195,196,156,157,158,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,133,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,159,131,133,144,194,195,196,156,157,158,133,144,131,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,156,157,158,83,128,124,143,132,159,123,117,129,133,144,131,160,161,162,133,144,133,0,0,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,0,0,0,0,15,15,15,12,15,15,15,15,15,15,15,15,12,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,12,12,12,12,12,12,12,12,12,15,12,12,12,15,15,15,15,15,15,15,15,15,12,12,12,15,15,15,15,12,12,12,15,15,15,15,12,12,12,12,12,12,15],"f":[0,0,0,0,0,0,0,0,0,[1,[[3,[[2,[1]]]]]],0,[[1,1],[[3,[[2,[1]]]]]],0,[[1,1,1],[[3,[[2,[1]]]]]],0,[[1,1,1,1],[[3,[[2,[1]]]]]],0,[[1,1,1,1,1],[[3,[[2,[1]]]]]],0,[[1,1,1,1,1,1],[[3,[[2,[1]]]]]],0,[[[4,[1]]],[[3,[5]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[6,1],[[7,8],9],[[10,8],9],[[11,8],9],0,0,[12,13],[14,13],[15,16],[6,16],[6,17],[14,17],[6,18],[14,18],[15,[[19,[6]]]],[6,6],0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[6,20],[6,20],[21,21],[22,22],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[21,21],24],[[22,22],24],0,0,[6,18],[14,18],[[[25,[-1,-2,-3]]],-4,26,27,0,[]],[[[28,[-1,-2]],[28,[-1,-3]]],[[29,[-4]]],26,27,27,[[0,[-1]]]],[8,6],[12,[[19,[6]]]],[14,6],[8,[[19,[6]]]],[[30,[4,[[28,[-1,31]]]]],[[29,[-2]]],26,[[0,[-1]]]],0,[[21,21],32],[[22,22],32],[[[19,[18]]],[[29,[6]]]],[[[19,[18]]],[[29,[14]]]],[[[19,[18]]],[[29,[[25,[-1,-2,-3]]]]],26,27,0],[6,33],[[6,34],[[36,[23,35]]]],[[6,34],[[36,[23,35]]]],[[14,34],[[36,[23,35]]]],[[14,34],[[36,[23,35]]]],[[37,34],38],[[39,34],38],[[[25,[-1,-2,-3]],34],38,[26,40],[27,40],[0,40]],[[7,34],38],[[7,34],38],[[10,34],38],[[10,34],38],[[11,34],38],[[11,34],38],[[21,34],38],[[21,34],38],[[22,34],38],[[22,34],38],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[[[2,[41]]],21],[-1,-1,[]],[[[2,[42]]],22],[-1,-1,[]],[[8,17],[[43,[-1]]],[]],[[8,17],[[43,[-1]]],[]],[[8,17],[[43,[-1]]],[]],[[8,17],[[43,[-1]]],[]],[[[19,[18]]],[[36,[-1,44]]],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],0,[8,6],[8,6],[8,[[19,[6]]]],[8,[[19,[6]]]],[8,[[19,[6]]]],[8,[[19,[6]]]],[8,[[19,[6]]]],[[15,30],[[29,[[23,[[19,[6]],1]]]]]],[[6,30],[[29,[[23,[6,1]]]]]],[6,32],[6,32],[6,32],[[21,-1],23,45],[[22,-1],23,45],0,0,[[[28,[-1,-2]],[28,[-1,-3]]],[[29,[-4]]],26,27,27,[[0,[-1]]]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[15,16],[6,16],[[6,8],[[46,[6]]]],[[14,8],[[46,[14]]]],[[14,8],9],[6,32],[14,32],[14,32],[14,32],[[15,15],32],[[6,6],32],[14,32],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[6,[[43,[32]]]],[18,32],[[[19,[18]]],32],[6,1],[6,20],[14,1],0,[15,[[43,[[47,[30]]]]]],[6,[[43,[[47,[30]]]]]],0,[6,1],[14,1],[[8,-1],[[29,[6]]],[48,49]],[[8,-1],[[29,[[19,[6]]]]],[48,49]],0,[6,50],[8,6],[8,[[19,[6]]]],[8,6],[8,[[19,[6]]]],[[21,21],[[43,[24]]]],[[22,22],[[43,[24]]]],0,0,0,0,0,[15,[[47,[1]]]],[6,[[47,[1]]]],[14,[[4,[1]]]],[14,[[4,[51]]]],[[6,8],9],[[14,8],9],[-1,-2,[],[]],[-1,-2,[],[]],[-1,52,[]],[-1,52,[]],[-1,52,[]],[-1,52,[]],[-1,52,[]],[-1,52,[]],[-1,52,[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2,53]]],[[54,[18]]],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2,53]]],[[54,[18]]],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2,53]]],[[54,[18]]],[]],[-1,[[36,[-2,53]]],[[54,[18]]],[]],[-1,-2,[[54,[18]]],[]],[-1,-2,[[54,[18]]],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[[[19,[18]]],32],[[[19,[18]]],32],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[8,56],[8,56],[15,[[19,[57]]]],[6,57],0,0,0,0,0,0,0,0,0,0,0,[[8,-1,-1,-1],[[28,[-1,58]]],[26,[60,[59]]]],[[8,-1,-1,-1],[[19,[[28,[-1,58]]]]],[26,[60,[59]]]],[61,[[62,[-1,-2]]],26,27],[[[28,[-1,-2]]],[[62,[-1,-2]]],26,27],[61,[[63,[-1,-2]]],26,27],[[[28,[-1,-2]]],[[63,[-1,-2]]],26,27],[[[28,[-1,-2]]],17,[],[]],[61,[[64,[-1,-2]]],26,27],[[[28,[-1,-2]]],[[64,[-1,-2]]],26,27],[61,[[65,[-1,-2]]],26,27],[[[28,[-1,-2]]],[[65,[-1,-2]]],26,27],[[[28,[-1,-2]]],18,[],[]],[[[28,[-1,-2]]],[[36,[[4,[-1]],10]]],26,27],[61,[[36,[[4,[-1]],10]]],26],[[[28,[-1,-2]]],[[36,[[4,[-1]],10]]],26,27],[61,[[36,[[4,[-1]],10]]],26],[61,[[19,[14]]]],[[[28,[-1,-2]]],14,[],[]],[-1,-2,[],[]],[[[66,[-2,-3]],18],[[28,[-1,-3]]],26,[[68,[],[[67,[-1]]]]],27],[[[66,[-2,-3]],[19,[18]]],[[19,[[28,[-1,-3]]]]],26,[[68,[],[[67,[-1]]]]],27],[-1,-2,[],[]],[[61,32],[[29,[[19,[[28,[-1,-2]]]]]]],26,[]],[[[28,[-1,-2]],32],[[29,[[28,[-3,-2]]]]],26,[],26],[[61,[19,[[28,[-1,-2]]]]],[[29,[23]]],26,[]],[[[28,[-1,-2]],[28,[-3,-2]]],[[29,[23]]],26,[],26],[61],[[[28,[-1,-2]]],[],[],[]],[[[28,[-1,-2]]],-3,[],[],[]],[[[28,[-1,-2]]],-2,26,27],[61,-1,27],[[[19,[18]]],[[29,[[28,[-1,-2]]]]],26,27],[[[28,[-1,-2]],34],[[36,[23,35]]],[],[]],[[[28,[-1,-2]],34],[[36,[23,35]]],[],[]],[-1,-1,[]],[[8,[66,[-2,-3]]],[[28,[-1,-3]]],26,[[68,[],[[67,[-1]]]]],27],[[8,17],[[28,[-1,-2]]],[],[]],[[8,17],[[43,[-1]]],[]],[[8,-2],[[28,[-1,58]]],26,[[70,[],[[69,[-1]]]]]],[[8,[71,[-1,-2]]],[[28,[-1,-2]]],26,27],[[8,[71,[-1,-2]]],[[19,[[28,[-1,-2]]]]],26,27],[[8,[71,[[46,[-1]],-2]]],[[28,[9,-2]]],[],27],[[8,[71,[[46,[-1]],-2]]],[[19,[[28,[9,-2]]]]],[],27],[[8,17],[[28,[-1,-2]]],[],[]],[[8,17],[[43,[-1]]],[]],[[8,[4,[-1]]],[[28,[-1,58]]],26],[[8,[4,[-1]]],[[19,[[28,[-1,58]]]]],26],[-1,-2,[],[]],[[8,[47,[-1]]],[[28,[-1,58]]],26],[[8,[4,[[47,[-1]]]]],[[36,[[28,[-1,72]],7]]],26],[[8,[4,[[47,[[47,[-1]]]]]]],[[36,[[28,[-1,73]],7]]],26],[[61,-2],[[43,[-3]]],27,[[75,[],[[74,[-1]]]]],26],[[[28,[-1,-2]],-3],[[43,[-1]]],26,27,[[75,[],[[74,[-2]]]]]],[8,[[29,[[19,[76]]]]]],[[61,-2],[[43,[-3]]],27,[[75,[],[[74,[-1]]]]],26],[[[28,[-1,-2]],-3],[[43,[-1]]],26,27,[[75,[],[[74,[-2]]]]]],[[[28,[-1,-2]],-3],[[43,[-1]]],26,27,[[75,[],[[74,[-2]]]]]],[[61,-2],[[43,[-3]]],27,[[75,[],[[74,[-1]]]]],26],[-1,-2,[],[]],[[[28,[-1,-2]],8],9,[],[]],[[[28,[-1,-2]],8],[[46,[[28,[-1,-2]]]]],[],[]],[-1,32,[]],[[[19,[18]]],32],[[[28,[-1,77]]],-1,[78,26]],[79,-1,[26,78]],[[8,-2,32],[[28,[-3,-1]]],27,[[80,[],[[74,[-1]]]]],26],[[8,-2,32],[[19,[[28,[-3,-1]]]]],27,[[80,[],[[74,[-1]]]]],26],[[[28,[-1,-2]]],[[81,[-1,-2]]],26,27],[61,[[81,[-1,-2]]],26,27],[[[28,[-1,-2]]],[[82,[-1,-2]]],26,27],[61,[[82,[-1,-2]]],26,27],[[[28,[-1,-2]],-3],[[29,[[28,[-1]]]]],26,[],80],[[61,-1],[[29,[[19,[[28,[-2]]]]]]],80,26],[[61,-1,83],[[29,[[19,[[28,[-2]]]]]]],80,26],[[[28,[-1,-2]],-3,83],[[29,[[28,[-1]]]]],26,[],80],[[61,-1],[[29,[23]]],80],[[[28,[-1,-2]],-3],[[29,[23]]],26,[],80],[61,[[19,[[28,[-1,31]]]]],26],[[[28,[-1,-2]]],[[28,[-1,31]]],26,27],[[[28,[-1,-2]],8],9,[],[]],[[[28,[-1,-2]]],[[46,[[28,[-1,-2]]]]],[],[]],[[[28,[-1,-2]]],[[71,[-1,-2]]],26,27],[61,[[71,[-1,-2]]],26,27],[-1,52,[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[[[28,[-1,-2]]],[[36,[[47,[-1]],10]]],26,27],[61,[[36,[[47,[-1]],10]]],26],[61,[[43,[[84,[-1,-2,-3,-4,-5]]]]],[85,26],86,86,86,86],[[[28,[-1,-2]]],[[43,[[84,[-1,-3,-4,-5,-6]]]]],[85,26],27,86,86,86,86],[61,[[43,[[87,[-1,-2,-3,-4,-5]]]]],[85,26],86,86,86,86],[[[28,[-1,-2]]],[[43,[[87,[-1,-3,-4,-5,-6]]]]],[85,26],27,86,86,86,86],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2,53]]],[[54,[18]]],[]],[-1,[[36,[-2,53]]],[[54,[18]]],[]],[-1,-2,[[54,[18]]],[]],[-1,[[36,[-2]]],[],[]],[61,[[36,[[81,[-1,-2]],11]]],26,27],[[[28,[-1,-2]]],[[36,[[81,[-1,-2]],11]]],26,27],[61,[[36,[[82,[-1,-2]],11]]],26,27],[[[28,[-1,-2]]],[[36,[[82,[-1,-2]],11]]],26,27],[[[19,[18]]],32],[-1,55,[]],[8,56],[[[28,[-1,-2]],-3],-1,26,27,[[75,[],[[74,[-2]]]]]],[[61,-2],-3,27,[[75,[],[[74,[-1]]]]],26],[[[28,[-1,-2]],-3],-1,26,27,[[75,[],[[74,[-2]]]]]],[[61,-2],-3,27,[[75,[],[[74,[-1]]]]],26],[[[28,[-1,-2]],-3],[],26,27,[[75,[],[[74,[-2]]]]]],[[61,-2],[],27,[[75,[],[[74,[-1]]]]]],[[8,-2,32],[[28,[-3,-1]]],27,[[80,[],[[74,[-1]]]]],26],[[8,-2,32],[[19,[[28,[-3,-1]]]]],27,[[80,[],[[74,[-1]]]]],26],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[[81,[-1,-2]]],[[62,[-1,-2]]],26,27],[[[82,[-1,-2]]],[[63,[-1,-2]]],26,27],[[[81,[-1,72]]],[[89,[-1,88,88]]],[85,26]],[[[81,[-1,58]]],[[89,[-1,88,88]]],[85,26]],[[[82,[-1,58]]],[[90,[-1,88,88]]],[85,26]],[[[82,[-1,72]]],[[90,[-1,88,88]]],[85,26]],[[[81,[-1,-2]]],[[36,[[4,[-1]],10]]],26,27],[[[82,[-1,-2]]],[[36,[[4,[-1]],10]]],26,27],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[[[81,[-1,-2]]],[[81,[-1,-2]]],26,27],[[-1,-2],23,[],[]],[[[81,[-1,-2]]],-3,26,27,[]],[[[82,[-1,-2]]],-3,26,27,[]],[[[81,[-1,-2]]],23,26,27],[[[82,[-1,-2]]],23,26,27],[[[19,[18]]],[[29,[[81,[-1,-2]]]]],26,27],[[[19,[18]]],[[29,[[82,[-1,-2]]]]],26,27],[[[81,[-1,-2]],34],38,26,27],[[[82,[-1,-2]],34],38,26,27],[-1,-1,[]],[-1,-1,[]],[[[19,[18]]],[[36,[-1,44]]],[]],[[[19,[18]]],[[36,[-1,44]]],[]],[-1,-2,[],[]],[-1,-2,[],[]],[[[81,[-1,-2]],-3],[[43,[-1]]],26,27,[[75,[],[[74,[-2]]]]]],[[[82,[-1,-2]],-3],[[43,[-1]]],26,27,[[75,[],[[74,[-2]]]]]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,32,[]],[-1,32,[]],[[[82,[-1,58]],-2],[[29,[[82,[-1,58]]]]],26,80],[-1,-2,[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[[[81,[-1,-2]]],[[43,[[84,[-1,-3,-4,-5,-6]]]]],[85,26],27,86,86,86,86],[[[82,[-1,-2]]],[[43,[[87,[-1,-3,-4,-5,-6]]]]],[85,26],27,86,86,86,86],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,55,[]],[-1,55,[]],0,0,0,0,0,0,0,0,[[[91,[],[[69,[-1]],[74,[-2]]]],8],[[28,[-1,-2]]],26,27],[[[92,[],[[69,[-1]],[74,[-2]]]],8],[[28,[-1,-2]]],26,27],0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[[[93,[-1]]],[[93,[-1]]],[94,95]],[[[96,[-1]]],[[96,[-1]]],[94,95]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[[93,[-1]],[93,[-1]]],24,[97,95]],[[[96,[-1]],[96,[-1]]],24,[97,95]],[[[93,[-1]],[93,[-1]]],32,[98,95]],[[[96,[-1]],[96,[-1]]],32,[98,95]],[[[93,[-1]],34],38,95],[[[96,[-1]],34],38,95],[-1,-1,[]],[99,[[93,[-1]]],95],[-1,-1,[]],[99,[[96,[-1]]],95],[-1,-2,[],[]],[-1,-2,[],[]],[8,[[19,[6]]]],[8,[[19,[6]]]],[[[93,[-1]],-2],23,[100,95],45],[[[96,[-1]],-2],23,[100,95],45],[-1,-2,[],[]],[-1,-2,[],[]],[-1,32,[]],[-1,32,[]],[[[93,[-1]],[93,[-1]]],[[43,[24]]],[101,95]],[[[96,[-1]],[96,[-1]]],[[43,[24]]],[101,95]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,55,[]],[-1,55,[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[102,102],[103,103],[104,104],[105,105],[106,106],[107,107],[108,108],[109,109],[110,110],[111,111],[112,112],[113,113],[114,114],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[102,102],24],[[103,103],24],[[104,104],24],[[105,105],24],[[106,106],24],[[107,107],24],[[108,108],24],[[109,109],24],[[110,110],24],[[111,111],24],[[112,112],24],[[113,113],24],[[114,114],24],[[102,102],32],[[103,103],32],[[104,104],32],[[105,105],32],[[106,106],32],[[107,107],32],[[108,108],32],[[109,109],32],[[110,110],32],[[111,111],32],[[112,112],32],[[113,113],32],[[114,114],32],[[102,34],38],[[103,34],38],[[104,34],38],[[105,34],38],[[106,34],38],[[107,34],38],[[108,34],38],[[109,34],38],[[110,34],38],[[111,34],38],[[112,34],38],[[113,34],38],[[114,34],38],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[[102,-1],23,45],[[103,-1],23,45],[[104,-1],23,45],[[105,-1],23,45],[[106,-1],23,45],[[107,-1],23,45],[[108,-1],23,45],[[109,-1],23,45],[[110,-1],23,45],[[111,-1],23,45],[[112,-1],23,45],[[113,-1],23,45],[[114,-1],23,45],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[[102,102],[[43,[24]]]],[[103,103],[[43,[24]]]],[[104,104],[[43,[24]]]],[[105,105],[[43,[24]]]],[[106,106],[[43,[24]]]],[[107,107],[[43,[24]]]],[[108,108],[[43,[24]]]],[[109,109],[[43,[24]]]],[[110,110],[[43,[24]]]],[[111,111],[[43,[24]]]],[[112,112],[[43,[24]]]],[[113,113],[[43,[24]]]],[[114,114],[[43,[24]]]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],0,0,0,0,0,0,[[115,8,50,13,116,83,117,116,16,50,50,118,118],119],[[115,8,119],119],[[115,8,119,118,118],50],[[115,8,119],50],[[115,8,119],23],[[115,8,119],50],[[115,8,119,50],118],[[115,8,119],118],[[115,8,119],33],[[115,8,119],16],[[115,8,119,33],120],[[115,8,119],118],[[115,8,119],33],[[115,8,119,118],23],[[115,8,119],118],[[115,8,119],118],[[115,8,119],118],[[115,8,119,118,118],23],[[115,8,119,33],121],[[115,8,119],118],[[115,8,119,118],13],[[115,8,119],50],[[115,8,119],50],[[115,8,119],13],[[115,8,119,33],23],[[115,8,119,118],50],[[115,8,119,33],23],[[115,8,119,118],50],[[115,8,119,118],50],[[115,8,119,118],50],[[115,8,119],122],[[115,8,119],122],[[115,8,119],122],[[115,8,119],122],[[115,8,119],122],[[115,8,119,50],122],[[115,8,119],122],[[115,8,119],122],[[115,8,50,13,116,83,117,116,16],119],[[115,8,13,116,83,117,16],119],[[115,8,119,50],50],[[115,8,119],50],[[115,8,119],122],[[115,8,119,33],50],[[115,8,119,33,33],50],[[115,8,119,118,118,33],50],0,0,0,0,0,0,0,[[115,8,13,50,13],17],[[115,8,13,50,13],17],[[115,8,59,59,59,50],17],[[115,8,17,17,17,16],17],[[115,8,13,50,13],17],[[115,8,13,50,13],17],[[115,8,13,13,50,123],17],[[115,8,13,50,124],17],[[115,8,17,33,50,50],50],[[115,8,17,33,50,50,50],50],[[115,8,17,125,118,50,16],50],[[115,8,17,50],50],[[115,8,17,122],50],[[115,8,126],50],[[115,8,17,118,50],17],[[115,8,17,127],50],[[115,8,17,33],50],[[115,8,13,122],17],[[115,8,13,16,117],122],[[115,8,50,50],50],[[115,8,56,56],122],[[115,8,16,16],122],[[115,8,16,16,117],122],[[115,8,50,50,128],50],[[115,8,13,13],50],[[115,8,17,16,125,50],50],[[115,8,17,125,16],50],[[115,8,13,13],50],[[115,8,13,16,50],17],[[115,8,17,117],50],[[8,17],50],[[115,8,17],50],[[115,8,13,50,50],17],[[8,17],50],[[115,8,17,16,50,50,50,17],17],[[115,8,50,50,118,118,118,118],122],[[115,8,13,17,13,129],17],[[115,8,13,17,17,13],17],[[115,8,17,129],50],[[115,8,118,118,50],50],[[115,8,33,33,1],50],[[115,8,130,130,1],50],[[115,8,13,17,50,13],17],[[115,8,17,50],17],[[115,8,13,13],17],[[115,8,17,129,50],50],[[115,8,17,50],13],[[115,8,17,17],50],[[115,8,17],17],[[115,8,13,13],50],[[115,8,13,13],50],[[115,8,13,17],50],[[115,8,17,17,50],17],[[115,8,17,17,50],17],[[115,8,13],118],[[115,8,50,118,131],23],[[115,8,13,50,50,13],17],[[115,8,13,50,50,13],17],[[115,8,132,133],134],[[115,8,134,132,133],23],[[115,8,13],23],[[115,8,17,16],50],[[115,8,17,16],50],[[115,8,17,16],50],[[115,8,17,16],50],[[115,8,17,16],16],[[115,8,17],16],[[115,8,50],16],[[115,8,17],16],[[115,8,16],16],[[115,8,16,33],16],[[115,8,50],16],[[115,8,13,50,50,50],17],[[115,8,17,17,50],50],[[115,8,17,50],17],[[115,8,33,118,13,16,83,117,13],17],[[115,8,33],50],[[115,8,17],50],[[115,8,50,118,16,50],17],[[115,8,17],17],[[115,8,17],17],[[115,8,50,50],135],[[115,8,16,16],135],[[115,8,13,33],50],[[115,8,17],17],[[115,8,13,17],23],[[115,8,13,17],50],[[115,8,13,83],17],[[115,8,17,125],50],[[115,8,17,16,50,50,50,17],17],[[115,8,13,16,50],17],[[115,8,17,16,17],17],[[115,8,17,16,118,118],17],[[115,8,50,50,50],17],[[115,8,50,50,16,33],17],[[115,8,136,16,118,33],17],[[115,8,17],17],[[115,8,17,16,118],17],[[115,8,17,16],17],[[115,8,33,118,16,118,33],17],[[115,8,17],17],[[115,8,17,16,122,16,50,118,13,17],50],[[115,8,16,50],137],[[115,8],50],[[115,8,13,16,50],17],[[115,8],138],[[115,8],138],[[115,8],17],[[115,8,17,59],59],[[115,8,13,118],125],[[115,8,13],50],[[115,8,139],23],[[115,8,17,17],17],[[115,8,50,118],17],[[115,8,17,140],50],[[115,8,17,118,50],50],[[115,8,33,16],23],[[115,8,33,16],23],[[115,8,17,50],17],[[115,8,17],17],[[115,8,17,50],17],[[115,8,13,17],17],[[115,8,13,17,50,13],17],[[115,8,141],23],[[115,8,141,13,50],23],[[115,8,17,17],17],[[115,8,17,17,13],17],[[115,8,13,50,13],17],[[115,8,13,50,50,13],17],[[115,8,13,50,13],17],[[115,8,13],16],[[115,8,13,13],50],[[115,8,50,50],50],[[115,8,118,50],118],[[115,8,142,118,50,13],17],[[115,8,56,50,118,50,118,125,50,50,17],17],[[115,8,13,83],17],[[115,8,17],17],[[115,8,56,16,50,118,118,125,50,17],17],[[115,8,13,83,16,50],17],[[115,8,13,140,83],17],[[115,8,13],17],[[115,8,17,50],50],[[115,8,13],33],[[115,8,17,83],50],[[115,8,17,13],50],[[115,8,118,50],118],[[115,8,13,13,50,123],50],[[115,8,13,50,50,13],17],[[115,8,16,16],16],[[115,8,13,50,13],17],[[115,8,13,17,17],17],[[115,8,13,17,17,129],17],[[115,8,17],50],[[115,8,17],118],[[115,8,13,83],17],[[115,8,16,50,128],50],[[115,8,16,50,137],50],[[115,8,16],50],[[115,8,13,122],23],[[115,8,126],50],[[115,8,13,17,50],17],[[115,8,13,17],17],[[115,8,13,140,50,83],17],[[115,8,13],50],[[115,8,118,13,118,16],16],[[115,8,13],17],[[115,8,13,50,13],17],[[115,8,125,16,17],17],[[115,8,17,125],23],[[115,8,17],17],[[115,8,50,13],128],[[115,8,13,17,143,17],17],[[115,8,17,125],50],[[115,8,17,123],50],[[115,8,13,17],50],[[115,8,17],23],[[115,8,13,16,50,17],50],[[115,8,17],50],[[115,8,17,50],23],[[115,8,13,13],50],[[115,8,13,13],50],[[115,8,17],118],[[115,8,13,50,124],50],[[115,8,17,124],50],[[115,8,13],17],[[115,8,13,50,50,13,50],17],[[115,8,13,50,50,13],17],[[115,8,13,50,50],17],[[115,8,13,17,50,13,129],17],[[115,8,132,144],134],[[115,8,145,132,144],23],[[115,8,13,136,33,33],50],[[115,8,13],17],[[115,8,13,83],17],[[115,8,13,50,50,50,50,13],17],[[115,8,13,140],17],0,[[115,8,50],17],[[115,8,50,50],50],[[115,8,13,50],23],[[115,8,50],50],[[115,8,13,16,56],17],[[115,8,17,17,17],17],[[115,8,13],50],[[115,8,13],33],[[115,8,50,118,16,50],17],0,0,0,0,0,0,0,0,[[115,8,125],23],[[115,8,1],125],[[115,8,1,1],125],[[115,8,125,1],125],[[115,8,146,125,125],146],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[115,8],125],[[115,8,50],23],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-1,[]],[-1,-1,[]],[-1,-2,[],[]],[-1,-2,[],[]],[[115,8,147],56],[-1,-2,[],[]],[-1,-2,[],[]],[-1,32,[]],[-1,32,[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,55,[]],[-1,55,[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],0,0,0,0,0,0,0,0,[13,13],[16,16],[148,148],[139,139],[149,149],[140,140],[127,127],[150,150],[151,151],[119,119],[142,142],[126,126],[152,152],[141,141],[153,153],[154,154],[155,155],0,[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[119,34],38],0,[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],0,0,0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],0,0,[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],0,0,[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[156,156],[157,157],[158,158],[83,83],[128,128],[124,124],[143,143],[132,132],[159,159],[123,123],[117,117],[129,129],[133,133],[144,144],[131,131],[160,160],[161,161],[162,162],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[-1,-2],23,[],[]],[[159,159],24],0,0,[[83,83],32],[[128,128],32],[[124,124],32],[[143,143],32],[[132,132],32],[[159,159],32],[[123,123],32],[[117,117],32],[[129,129],32],[[162,162],32],[[156,34],38],[[157,34],38],[[158,34],38],[[83,34],38],[[128,34],38],[[124,34],38],[[143,34],38],[[132,34],38],[[159,34],38],[[123,34],38],[[117,34],38],[[133,34],38],[[144,34],38],[[131,34],38],[[160,34],38],[[161,34],38],[[162,34],38],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-1,[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[[83,-1],23,45],[[128,-1],23,45],[[124,-1],23,45],[[143,-1],23,45],[[132,-1],23,45],[[159,-1],23,45],[[123,-1],23,45],[[117,-1],23,45],[[129,-1],23,45],[[162,-1],23,45],0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],[-1,32,[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[159,159],[[43,[24]]]],0,0,0,0,0,0,0,0,0,0,0,0,[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],[-1,55,[]],0,0,0,0,0,[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,151,117,13,17,16],50],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,164,125,33,50,50,50,50,33,33,50],17],[[163,8,164,125,33,50,50,50,50,33,33,50,33],17],[[163,8,151,125,33,50,50,50,50,33,33,50,33,33],50],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,151,17,17,13],50],[[163,8,33,50,50,17],50],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,151,16,164,16,125],50],[[163,8,151,50,164,50,125],50],[[163,8,151,164,50,164],50],[[163,8,125,1],50],[[163,8,151,117,13,16],50],[[163,8,50,17,50],50],[[163,8],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8,33,118,118,125],23],[[163,8],50],[[163,8,33,118,118,125],23],[[163,8,50,17,50,50],50],[-1,-2,[],[]],[-1,-2,[],[]],[-1,-1,[]],[-1,-2,[],[]],[-1,-2,[],[]],[-1,32,[]],[-1,[[43,[-2]]],[],[]],[-1,-2,[],[]],[-1,[[36,[-2]]],[],[]],[-1,[[36,[-2]]],[],[]],[-1,55,[]],0,0,0,0,[15,1],[15,1],[15,1],[12,13],[15,16],[15,[[19,[6]]]],[15,20],[15,20],[15,20],[15,20],[15,20],[15,20],[12,[[19,[6]]]],[15,33],[15,33],[15,33],[[15,30],[[29,[[23,[[19,[6]],1]]]]]],[15,32],[15,32],[15,32],[15,32],[15,32],[15,32],[15,32],[15,32],[15,32],[15,16],[15,32],[15,32],[15,32],[12,32],[12,32],[12,32],[12,32],[12,32],[12,32],[12,32],[12,32],[12,32],[[15,15],32],[12,32],[12,32],[12,32],[15,[[43,[32]]]],[15,[[43,[32]]]],[15,[[43,[32]]]],[15,1],[15,1],[15,1],[15,20],[15,20],[15,20],[12,1],[12,1],[12,1],[15,[[43,[[47,[30]]]]]],[15,1],[15,1],[15,1],[12,1],[12,1],[12,1],[15,50],[15,50],[15,50],[15,[[47,[1]]]],[12,[[4,[1]]]],[12,[[4,[1]]]],[12,[[4,[1]]]],[12,[[4,[51]]]],[12,[[4,[51]]]],[12,[[4,[51]]]],[15,[[19,[57]]]]],"c":[126,183,184,244,248,250,347,366,386,388,392,412,427,457],"p":[[1,"usize"],[1,"array"],[5,"Dim",2387],[1,"slice"],[5,"IxDynImpl",2388],[5,"PyArrayDescr",0],[5,"FromVecError",0],[5,"Python",2389],[8,"PyObject",2390],[5,"NotContiguousError",0],[6,"BorrowError",0],[10,"PyUntypedArrayMethods",2310],[5,"PyArrayObject",1242],[5,"PyUntypedArray",0],[10,"PyArrayDescrMethods",2310],[5,"PyArray_Descr",1242],[5,"PyObject",2391],[5,"PyAny",2392],[5,"Bound",2390],[1,"u8"],[5,"PyFixedString",0],[5,"PyFixedUnicode",0],[1,"tuple"],[6,"Ordering",2393],[5,"PyArrayLike",0],[10,"Element",0],[10,"Dimension",2394],[5,"PyArray",336],[8,"PyResult",2395],[1,"str"],[8,"IxDyn",0],[1,"bool"],[8,"c_char",2396],[5,"Formatter",2397],[5,"Error",2397],[6,"Result",2398],[5,"TypeMustMatch",0],[8,"Result",2397],[5,"AllowTypeChange",0],[10,"Debug",2397],[8,"Py_UCS1",2399],[8,"Py_UCS4",2399],[6,"Option",2400],[5,"PyErr",2395],[10,"Hasher",2401],[5,"Py",2390],[5,"Vec",2402],[10,"ToPyObject",2403],[10,"Sized",2404],[8,"c_int",2396],[1,"isize"],[5,"String",2405],[5,"PyDowncastError",2395],[10,"Into",2406],[5,"TypeId",2407],[5,"PyTypeObject",2408],[5,"PyType",2409],[8,"Ix1",0],[1,"f64"],[10,"AsPrimitive",2410],[10,"PyArrayMethods",336],[8,"ArrayView",2411],[8,"ArrayViewMut",2411],[8,"RawArrayView",2411],[8,"RawArrayViewMut",2411],[5,"ArrayBase",2411],[17,"Elem"],[10,"Data",2412],[17,"Item"],[10,"IntoIterator",2413],[8,"Array",2411],[8,"Ix2",0],[8,"Ix3",0],[17,"Dim"],[10,"NpyIndex",525],[5,"PyModule",2414],[8,"Ix0",2415],[10,"Copy",2404],[10,"PyArray0Methods",336],[10,"IntoDimension",2416],[5,"PyReadonlyArray",459],[5,"PyReadwriteArray",459],[6,"NPY_ORDER",1774],[8,"MatrixView",2417],[10,"Scalar",2418],[10,"Dim",2419],[8,"MatrixViewMut",2417],[5,"Dyn",2419],[8,"DMatrixView",2420],[8,"DMatrixViewMut",2420],[10,"IntoPyArray",525],[10,"ToPyArray",525],[5,"Datetime",535],[10,"Clone",2421],[10,"Unit",535],[5,"Timedelta",535],[10,"Ord",2393],[10,"PartialEq",2393],[1,"i64"],[10,"Hash",2401],[10,"PartialOrd",2393],[5,"Years",583],[5,"Months",583],[5,"Weeks",583],[5,"Days",583],[5,"Hours",583],[5,"Minutes",583],[5,"Seconds",583],[5,"Milliseconds",583],[5,"Microseconds",583],[5,"Nanoseconds",583],[5,"Picoseconds",583],[5,"Femtoseconds",583],[5,"Attoseconds",583],[5,"PyArrayAPI",848],[8,"npy_uint32",1774],[6,"NPY_CASTING",1774],[8,"npy_intp",1774],[5,"NpyIter",1242],[8,"NpyIter_GetMultiIndexFunc",1242],[8,"NpyIter_IterNextFunc",1242],[8,"npy_bool",1774],[6,"NPY_SELECTKIND",1774],[6,"NPY_SORTKIND",1774],[8,"c_void",2396],[5,"PyArrayMultiIterObject",1242],[5,"PyArray_Chunk",1242],[6,"NPY_SCALARKIND",1774],[6,"NPY_CLIPMODE",1774],[8,"npy_ucs4",1774],[5,"npy_stride_sort_item",1774],[6,"NPY_DATETIMEUNIT",1774],[5,"npy_datetimestruct",1774],[8,"npy_datetime",1774],[8,"c_uchar",2396],[6,"FILE",2422],[8,"PyArray_VectorUnaryFunc",1242],[8,"c_uint",2396],[5,"PyArray_ArrFuncs",1242],[5,"PyArray_Dims",1242],[5,"PyArrayMapIterObject",1242],[5,"PyArrayIterObject",1242],[6,"NPY_SEARCHSIDE",1774],[5,"npy_timedeltastruct",1774],[8,"npy_timedelta",1774],[8,"PyDataMem_EventHookFunc",1242],[6,"NpyTypes",848],[5,"PyArray_ArrayDescr",1242],[5,"PyArrayFlagsObject",1242],[5,"PyArrayInterface",1242],[5,"PyUFuncObject",1242],[5,"PyArrayNeighborhoodIterObject",1242],[5,"NpyAuxData",1242],[5,"PyArray_DatetimeMetaData",1242],[5,"PyArray_DatetimeDTypeMetaData",1242],[5,"npy_cdouble",1774],[5,"npy_cfloat",1774],[5,"npy_clongdouble",1774],[6,"NPY_TYPES",1774],[6,"NPY_TYPECHAR",1774],[6,"NPY_TYPEKINDCHAR",1774],[6,"NPY_BYTEORDER_CHAR",1774],[5,"PyUFuncAPI",2255],[8,"PyUFuncGenericFunction",1242],[8,"Complex32",0],[8,"Complex64",0],[8,"PyArray_GetItemFunc",1242],[8,"PyArray_SetItemFunc",1242],[8,"PyArray_CopySwapNFunc",1242],[8,"PyArray_CopySwapFunc",1242],[8,"PyArray_NonzeroFunc",1242],[8,"PyArray_CompareFunc",1242],[8,"PyArray_ArgFunc",1242],[8,"PyArray_DotFunc",1242],[8,"PyArray_ScanFunc",1242],[8,"PyArray_FromStrFunc",1242],[8,"PyArray_FillFunc",1242],[8,"PyArray_SortFunc",1242],[8,"PyArray_ArgSortFunc",1242],[8,"PyArray_PartitionFunc",1242],[8,"PyArray_ArgPartitionFunc",1242],[8,"PyArray_FillWithScalarFunc",1242],[8,"PyArray_ScalarKindFunc",1242],[8,"PyArray_FastClipFunc",1242],[8,"PyArray_FastPutmaskFunc",1242],[8,"PyArray_FastTakeFunc",1242],[8,"PyUFunc_MaskedStridedInnerLoopFunc",1242],[8,"PyUFunc_TypeResolutionFunc",1242],[8,"PyUFunc_LegacyInnerLoopSelectionFunc",1242],[8,"PyUFunc_MaskedInnerLoopSelectionFunc",1242],[8,"npy_iter_get_dataptr_t",1242],[8,"NpyAuxData_FreeFunc",1242],[8,"NpyAuxData_CloneFunc",1242],[8,"npy_complex128",1774],[8,"npy_complex64",1774],[8,"npy_complex256",1774]],"b":[[138,"impl-Debug-for-PyArrayDescr"],[139,"impl-Display-for-PyArrayDescr"],[140,"impl-Display-for-PyUntypedArray"],[141,"impl-Debug-for-PyUntypedArray"],[145,"impl-Debug-for-FromVecError"],[146,"impl-Display-for-FromVecError"],[147,"impl-Display-for-NotContiguousError"],[148,"impl-Debug-for-NotContiguousError"],[149,"impl-Debug-for-BorrowError"],[150,"impl-Display-for-BorrowError"],[151,"impl-Debug-for-PyFixedString%3CN%3E"],[152,"impl-Display-for-PyFixedString%3CN%3E"],[153,"impl-Display-for-PyFixedUnicode%3CN%3E"],[154,"impl-Debug-for-PyFixedUnicode%3CN%3E"],[213,"impl-IntoPy%3CPy%3CPyUntypedArray%3E%3E-for-%26PyUntypedArray"],[214,"impl-IntoPy%3CPy%3CPyAny%3E%3E-for-PyUntypedArray"],[379,"impl-Debug-for-PyArray%3CT,+D%3E"],[380,"impl-Display-for-PyArray%3CT,+D%3E"],[406,"impl-IntoPy%3CPy%3CPyAny%3E%3E-for-PyArray%3CT,+D%3E"],[407,"impl-IntoPy%3CPy%3CPyArray%3CT,+D%3E%3E%3E-for-%26PyArray%3CT,+D%3E"],[479,"impl-PyReadonlyArray%3C\'py,+N,+Dim%3C%5Busize;+2%5D%3E%3E"],[480,"impl-PyReadonlyArray%3C\'py,+N,+Dim%3C%5Busize;+1%5D%3E%3E"],[481,"impl-PyReadwriteArray%3C\'py,+N,+Dim%3C%5Busize;+1%5D%3E%3E"],[482,"impl-PyReadwriteArray%3C\'py,+N,+Dim%3C%5Busize;+2%5D%3E%3E"]],"a":{"nalgebra":[435,436,437,438,479,480,481,482,517,518],"pyarray":[338,346],"pyarray0":[338],"pyarraydescr":[38,2311],"pyuntypedarray":[71,2313]}}]\ +["numpy",{"doc":"This crate provides Rust interfaces for NumPy C APIs, …","t":"FPGIIKFTEHIHIHIHIHIHIHIFPEEEEEEEEEEEEFKEFIIIIIIIIEFFEEEEEEEEEEEEEEEEEEFKEEFNNNNCQMNMNNNNNMNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNCCNNNHHMNHHQNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNENNMNNNNMNNNNNNOOHNNNNNNNNNNMNNNNNNNNMNNNNNNNNNNNNNNNNNNEMNENNNNCNNNNNNNCQEOOMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNFIKIIIIIIIKNNMNMNNMNMNNNNNNMNNNNNMNMNMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNHMNNNNNNNNNNNNNNNNNNMNMNMNNNNNNNNNNMNMNNNNNNMNMNNNNNNNNNNNNFIIIIIIIIFIIIIIIIINNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNRRKRRKKKNMNMTFFTKNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCFFFFFFFFFFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCCCCCPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNGJFPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPNNNNNNNNNPPPPPPPPNNNNNPPPPPPPPPPPPPPPPPPPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPFIIFIIFFFFFFFIIIFFFIIIFFFFIIIIIIIIIIIIIIIIIFIIIIPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOONNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNOOOOOOOOPPPPPPPGGPPPPPPPGPPPPPPPGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPTPPPPPPPPTGPPPPGPPGGPPPGPPPPPPGGGPPPPPPPPPPPPPPPPPPPOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOIIFFIFIIIIFIIIIIIIIIIIIIIIIIIFIFIIIIIIIIIIINOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOJFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNEEKEKENNNMMMNNNNNNMNNNMNNNNNNNNNMNNNNNNNNNNNNMNNNNNNNNNNNNNNNMNNNNNNNNNMNNNNNNM","n":["AllowTypeChange","AlreadyBorrowed","BorrowError","Complex32","Complex64","Element","FromVecError","IS_COPY","IntoPyArray","Ix1","Ix1","Ix2","Ix2","Ix3","Ix3","Ix4","Ix4","Ix5","Ix5","Ix6","Ix6","IxDyn","IxDyn","NotContiguousError","NotWriteable","NpyIndex","PY_ARRAY_API","PY_UFUNC_API","PyArray","PyArray0","PyArray0Methods","PyArray1","PyArray2","PyArray3","PyArray4","PyArray5","PyArray6","PyArrayDescr","PyArrayDescrMethods","PyArrayDyn","PyArrayLike","PyArrayLike0","PyArrayLike1","PyArrayLike2","PyArrayLike3","PyArrayLike4","PyArrayLike5","PyArrayLike6","PyArrayLikeDyn","PyArrayMethods","PyFixedString","PyFixedUnicode","PyReadonlyArray","PyReadonlyArray0","PyReadonlyArray1","PyReadonlyArray2","PyReadonlyArray3","PyReadonlyArray4","PyReadonlyArray5","PyReadonlyArray6","PyReadonlyArrayDyn","PyReadwriteArray","PyReadwriteArray0","PyReadwriteArray1","PyReadwriteArray2","PyReadwriteArray3","PyReadwriteArray4","PyReadwriteArray5","PyReadwriteArray6","PyReadwriteArrayDyn","PyUntypedArray","PyUntypedArrayMethods","ToNpyDims","ToPyArray","TypeMustMatch","alignment","arguments","arguments","arguments","array","array","as_array_ptr","as_array_ptr","as_dtype_ptr","as_dtype_ptr","as_ptr","as_ptr","as_ref","as_ref","base","base","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","byteorder","char","clone","clone","clone_into","clone_into","cmp","cmp","convert","datetime","deref","deref","deref","dot","dtype","dtype","dtype","dtype_bound","einsum","einsum","eq","eq","extract_bound","extract_bound","extract_bound","flags","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from_borrowed_ptr_or_opt","from_borrowed_ptr_or_opt","from_owned_ptr_or_opt","from_owned_ptr_or_opt","from_py_object_bound","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","get_array_module","get_dtype","get_dtype","get_dtype_bound","get_dtype_bound","get_dtype_bound","get_dtype_bound","get_dtype_bound","get_field","get_field","has_fields","has_object","has_subarray","hash","hash","im","im","inner","into","into","into","into","into","into","into","into","into","into","into_dtype_ptr","into_dtype_ptr","into_py","into_py","into_py","is_aligned_struct","is_c_contiguous","is_contiguous","is_empty","is_equiv_to","is_equiv_to","is_fortran_contiguous","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_native_byteorder","is_type_of","is_type_of_bound","itemsize","kind","len","nalgebra","names","names","ndarray","ndim","ndim","new","new_bound","npyffi","num","object","object_bound","of","of_bound","partial_cmp","partial_cmp","prelude","pyarray","pyo3","re","re","shape","shape","shape","strides","to_object","to_object","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_string","to_string","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from_exact","try_from_exact","try_from_unchecked","try_from_unchecked","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_check","type_check","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_object_raw","type_object_raw","typeobj","typeobj","PyArray","PyArray0","PyArray0Methods","PyArray1","PyArray2","PyArray3","PyArray4","PyArray5","PyArray6","PyArrayDyn","PyArrayMethods","arange","arange_bound","as_array","as_array","as_array_mut","as_array_mut","as_ptr","as_raw_array","as_raw_array","as_raw_array_mut","as_raw_array_mut","as_ref","as_slice","as_slice","as_slice_mut","as_slice_mut","as_untyped","as_untyped","borrow","borrow_from_array","borrow_from_array_bound","borrow_mut","cast","cast","copy_to","copy_to","data","data","deref","dims","dims","extract_bound","fmt","fmt","from","from_array","from_array_bound","from_borrowed_ptr","from_borrowed_ptr_or_opt","from_iter","from_iter_bound","from_owned_array","from_owned_array_bound","from_owned_object_array","from_owned_object_array_bound","from_owned_ptr","from_owned_ptr_or_opt","from_slice","from_slice_bound","from_subset","from_vec","from_vec2","from_vec2_bound","from_vec3","from_vec3_bound","from_vec_bound","get","get","get_array_module","get_mut","get_mut","get_owned","get_owned","into","into_py","into_py","is_in_subset","is_type_of_bound","item","item","new","new_bound","readonly","readonly","readwrite","readwrite","reshape","reshape","reshape_with_order","reshape_with_order","resize","resize","to_dyn","to_dyn","to_object","to_owned","to_owned_array","to_owned_array","to_string","to_subset","to_subset_unchecked","to_vec","to_vec","try_as_matrix","try_as_matrix","try_as_matrix_mut","try_as_matrix_mut","try_from","try_from","try_from_exact","try_from_unchecked","try_into","try_readonly","try_readonly","try_readwrite","try_readwrite","type_check","type_id","type_object_raw","uget","uget","uget_mut","uget_mut","uget_raw","uget_raw","zeros","zeros_bound","PyReadonlyArray","PyReadonlyArray0","PyReadonlyArray1","PyReadonlyArray2","PyReadonlyArray3","PyReadonlyArray4","PyReadonlyArray5","PyReadonlyArray6","PyReadonlyArrayDyn","PyReadwriteArray","PyReadwriteArray0","PyReadwriteArray1","PyReadwriteArray2","PyReadwriteArray3","PyReadwriteArray4","PyReadwriteArray5","PyReadwriteArray6","PyReadwriteArrayDyn","as_array","as_array_mut","as_matrix","as_matrix","as_matrix_mut","as_matrix_mut","as_slice","as_slice_mut","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deref","deref","drop","drop","extract_bound","extract_bound","fmt","fmt","from","from","from_py_object_bound","from_py_object_bound","from_subset","from_subset","get","get_mut","into","into","is_in_subset","is_in_subset","resize","to_owned","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_as_matrix","try_as_matrix_mut","try_from","try_from","try_into","try_into","type_id","type_id","Dim","Dim","IntoPyArray","Item","Item","NpyIndex","ToNpyDims","ToPyArray","into_pyarray","into_pyarray_bound","to_pyarray","to_pyarray_bound","ABBREV","Datetime","Timedelta","UNIT","Unit","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","cmp","cmp","eq","eq","fmt","fmt","from","from","from","from","from_subset","from_subset","get_dtype_bound","get_dtype_bound","hash","hash","into","into","is_in_subset","is_in_subset","partial_cmp","partial_cmp","to_owned","to_owned","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_into","try_into","type_id","type_id","units","Attoseconds","Days","Femtoseconds","Hours","Microseconds","Milliseconds","Minutes","Months","Nanoseconds","Picoseconds","Seconds","Weeks","Years","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","cmp","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","into","into","into","into","into","into","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","array","flags","objects","types","ufunc","NPY_NUMUSERTYPES","NpyIter_AdvancedNew","NpyIter_Copy","NpyIter_CreateCompatibleStrides","NpyIter_Deallocate","NpyIter_DebugPrint","NpyIter_EnableExternalLoop","NpyIter_GetAxisStrideArray","NpyIter_GetBufferSize","NpyIter_GetDataPtrArray","NpyIter_GetDescrArray","NpyIter_GetGetMultiIndex","NpyIter_GetIndexPtr","NpyIter_GetInitialDataPtrArray","NpyIter_GetInnerFixedStrideArray","NpyIter_GetInnerLoopSizePtr","NpyIter_GetInnerStrideArray","NpyIter_GetIterIndex","NpyIter_GetIterIndexRange","NpyIter_GetIterNext","NpyIter_GetIterSize","NpyIter_GetIterView","NpyIter_GetNDim","NpyIter_GetNOp","NpyIter_GetOperandArray","NpyIter_GetReadFlags","NpyIter_GetShape","NpyIter_GetWriteFlags","NpyIter_GotoIndex","NpyIter_GotoIterIndex","NpyIter_GotoMultiIndex","NpyIter_HasDelayedBufAlloc","NpyIter_HasExternalLoop","NpyIter_HasIndex","NpyIter_HasMultiIndex","NpyIter_IsBuffered","NpyIter_IsFirstVisit","NpyIter_IsGrowInner","NpyIter_IterationNeedsAPI","NpyIter_MultiNew","NpyIter_New","NpyIter_RemoveAxis","NpyIter_RemoveMultiIndex","NpyIter_RequiresBuffering","NpyIter_Reset","NpyIter_ResetBasePointers","NpyIter_ResetToIterIndexRange","NpyTypes","PY_ARRAY_API","PyArrayAPI","PyArrayDescr_Type","PyArrayFlags_Type","PyArrayIter_Type","PyArrayMultiIter_Type","PyArray_All","PyArray_Any","PyArray_Arange","PyArray_ArangeObj","PyArray_ArgMax","PyArray_ArgMin","PyArray_ArgPartition","PyArray_ArgSort","PyArray_As1D","PyArray_As2D","PyArray_AsCArray","PyArray_AxisConverter","PyArray_BoolConverter","PyArray_Broadcast","PyArray_BroadcastToShape","PyArray_BufferConverter","PyArray_ByteorderConverter","PyArray_Byteswap","PyArray_CanCastArrayTo","PyArray_CanCastSafely","PyArray_CanCastScalar","PyArray_CanCastTo","PyArray_CanCastTypeTo","PyArray_CanCoerceScalar","PyArray_CastAnyTo","PyArray_CastScalarDirect","PyArray_CastScalarToCtype","PyArray_CastTo","PyArray_CastToType","PyArray_CastingConverter","PyArray_Check","PyArray_CheckAnyScalarExact","PyArray_CheckAxis","PyArray_CheckExact","PyArray_CheckFromAny","PyArray_CheckStrides","PyArray_Choose","PyArray_Clip","PyArray_ClipmodeConverter","PyArray_CompareLists","PyArray_CompareString","PyArray_CompareUCS4","PyArray_Compress","PyArray_Concatenate","PyArray_Conjugate","PyArray_ConvertClipmodeSequence","PyArray_ConvertToCommonType","PyArray_Converter","PyArray_CopyAndTranspose","PyArray_CopyAnyInto","PyArray_CopyInto","PyArray_CopyObject","PyArray_Correlate","PyArray_Correlate2","PyArray_CountNonzero","PyArray_CreateSortedStridePerm","PyArray_CumProd","PyArray_CumSum","PyArray_DatetimeStructToDatetime","PyArray_DatetimeToDatetimeStruct","PyArray_DebugPrint","PyArray_DescrAlignConverter","PyArray_DescrAlignConverter2","PyArray_DescrConverter","PyArray_DescrConverter2","PyArray_DescrFromObject","PyArray_DescrFromScalar","PyArray_DescrFromType","PyArray_DescrFromTypeObject","PyArray_DescrNew","PyArray_DescrNewByteorder","PyArray_DescrNewFromType","PyArray_Diagonal","PyArray_Dump","PyArray_Dumps","PyArray_EinsteinSum","PyArray_ElementFromName","PyArray_ElementStrides","PyArray_Empty","PyArray_EnsureAnyArray","PyArray_EnsureArray","PyArray_EquivTypenums","PyArray_EquivTypes","PyArray_FailUnlessWriteable","PyArray_FieldNames","PyArray_FillObjectArray","PyArray_FillWithScalar","PyArray_Flatten","PyArray_Free","PyArray_FromAny","PyArray_FromArray","PyArray_FromArrayAttr","PyArray_FromBuffer","PyArray_FromDims","PyArray_FromDimsAndDataAndDescr","PyArray_FromFile","PyArray_FromInterface","PyArray_FromIter","PyArray_FromScalar","PyArray_FromString","PyArray_FromStructInterface","PyArray_GetArrayParamsFromObject","PyArray_GetCastFunc","PyArray_GetEndianness","PyArray_GetField","PyArray_GetNDArrayCFeatureVersion","PyArray_GetNDArrayCVersion","PyArray_GetNumericOps","PyArray_GetPriority","PyArray_GetPtr","PyArray_INCREF","PyArray_InitArrFuncs","PyArray_InnerProduct","PyArray_IntTupleFromIntp","PyArray_IntpConverter","PyArray_IntpFromSequence","PyArray_Item_INCREF","PyArray_Item_XDECREF","PyArray_IterAllButAxis","PyArray_IterNew","PyArray_LexSort","PyArray_MapIterArray","PyArray_MapIterArrayCopyIfOverlap","PyArray_MapIterNext","PyArray_MapIterSwapAxes","PyArray_MatrixProduct","PyArray_MatrixProduct2","PyArray_Max","PyArray_Mean","PyArray_Min","PyArray_MinScalarType","PyArray_MoveInto","PyArray_MultiplyIntList","PyArray_MultiplyList","PyArray_NeighborhoodIterNew","PyArray_New","PyArray_NewCopy","PyArray_NewFlagsObject","PyArray_NewFromDescr","PyArray_NewLikeArray","PyArray_Newshape","PyArray_Nonzero","PyArray_ObjectType","PyArray_One","PyArray_OrderConverter","PyArray_OutputConverter","PyArray_OverflowMultiplyList","PyArray_Partition","PyArray_Prod","PyArray_PromoteTypes","PyArray_Ptp","PyArray_PutMask","PyArray_PutTo","PyArray_PyIntAsInt","PyArray_PyIntAsIntp","PyArray_Ravel","PyArray_RegisterCanCast","PyArray_RegisterCastFunc","PyArray_RegisterDataType","PyArray_RemoveAxesInPlace","PyArray_RemoveSmallest","PyArray_Repeat","PyArray_Reshape","PyArray_Resize","PyArray_ResolveWritebackIfCopy","PyArray_ResultType","PyArray_Return","PyArray_Round","PyArray_Scalar","PyArray_ScalarAsCtype","PyArray_ScalarFromObject","PyArray_ScalarKind","PyArray_SearchSorted","PyArray_SearchsideConverter","PyArray_SelectkindConverter","PyArray_SetBaseObject","PyArray_SetDatetimeParseFunction","PyArray_SetField","PyArray_SetNumericOps","PyArray_SetStringFunction","PyArray_SetUpdateIfCopyBase","PyArray_SetWritebackIfCopyBase","PyArray_Size","PyArray_Sort","PyArray_SortkindConverter","PyArray_Squeeze","PyArray_Std","PyArray_Sum","PyArray_SwapAxes","PyArray_TakeFrom","PyArray_TimedeltaStructToTimedelta","PyArray_TimedeltaToTimedeltaStruct","PyArray_ToFile","PyArray_ToList","PyArray_ToString","PyArray_Trace","PyArray_Transpose","PyArray_Type","PyArray_TypeObjectFromType","PyArray_TypestrConvert","PyArray_UpdateFlags","PyArray_ValidType","PyArray_View","PyArray_Where","PyArray_XDECREF","PyArray_Zero","PyArray_Zeros","PyBigArray_Type","PyBoolArrType_Type","PyByteArrType_Type","PyCDoubleArrType_Type","PyCFloatArrType_Type","PyCLongDoubleArrType_Type","PyCharacterArrType_Type","PyComplexFloatingArrType_Type","PyDataMem_FREE","PyDataMem_NEW","PyDataMem_NEW_ZEROED","PyDataMem_RENEW","PyDataMem_SetEventHook","PyDoubleArrType_Type","PyFlexibleArrType_Type","PyFloatArrType_Type","PyFloatingArrType_Type","PyGenericArrType_Type","PyInexactArrType_Type","PyIntArrType_Type","PyIntegerArrType_Type","PyLongArrType_Type","PyLongDoubleArrType_Type","PyLongLongArrType_Type","PyNumberArrType_Type","PyObjectArrType_Type","PyShortArrType_Type","PySignedIntegerArrType_Type","PyStringArrType_Type","PyUByteArrType_Type","PyUIntArrType_Type","PyULongArrType_Type","PyULongLongArrType_Type","PyUShortArrType_Type","PyUnicodeArrType_Type","PyUnsignedIntegerArrType_Type","PyVoidArrType_Type","_PyArrayScalar_BoolValues","_PyArray_GetSigintBuf","_PyArray_SigintHandler","borrow","borrow","borrow_mut","borrow_mut","from","from","from_subset","from_subset","get_type_object","into","into","is_in_subset","is_in_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_into","try_into","type_id","type_id","NPY_ALIGNED_STRUCT","NPY_ARRAY_ALIGNED","NPY_ARRAY_BEHAVED","NPY_ARRAY_BEHAVED_NS","NPY_ARRAY_CARRAY","NPY_ARRAY_CARRAY_RO","NPY_ARRAY_C_CONTIGUOUS","NPY_ARRAY_DEFAULT","NPY_ARRAY_ELEMENTSTRIDES","NPY_ARRAY_ENSUREARRAY","NPY_ARRAY_ENSURECOPY","NPY_ARRAY_FARRAY","NPY_ARRAY_FARRAY_RO","NPY_ARRAY_FORCECAST","NPY_ARRAY_F_CONTIGUOUS","NPY_ARRAY_INOUT_ARRAY","NPY_ARRAY_INOUT_ARRAY2","NPY_ARRAY_INOUT_FARRAY","NPY_ARRAY_INOUT_FARRAY2","NPY_ARRAY_IN_ARRAY","NPY_ARRAY_IN_FARRAY","NPY_ARRAY_NOTSWAPPED","NPY_ARRAY_OUT_ARRAY","NPY_ARRAY_OUT_FARRAY","NPY_ARRAY_OWNDATA","NPY_ARRAY_UPDATEIFCOPY","NPY_ARRAY_UPDATE_ALL","NPY_ARRAY_WRITEABLE","NPY_ARRAY_WRITEBACKIFCOPY","NPY_FROM_FIELDS","NPY_ITEM_HASOBJECT","NPY_ITEM_IS_POINTER","NPY_ITEM_REFCOUNT","NPY_ITER_ALIGNED","NPY_ITER_ALLOCATE","NPY_ITER_ARRAYMASK","NPY_ITER_BUFFERED","NPY_ITER_COMMON_DTYPE","NPY_ITER_CONTIG","NPY_ITER_COPY","NPY_ITER_COPY_IF_OVERLAP","NPY_ITER_C_INDEX","NPY_ITER_DELAY_BUFALLOC","NPY_ITER_DONT_NEGATE_STRIDES","NPY_ITER_EXTERNAL_LOOP","NPY_ITER_F_INDEX","NPY_ITER_GLOBAL_FLAGS","NPY_ITER_GROWINNER","NPY_ITER_MULTI_INDEX","NPY_ITER_NBO","NPY_ITER_NO_BROADCAST","NPY_ITER_NO_SUBTYPE","NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE","NPY_ITER_PER_OP_FLAGS","NPY_ITER_RANGED","NPY_ITER_READONLY","NPY_ITER_READWRITE","NPY_ITER_REDUCE_OK","NPY_ITER_REFS_OK","NPY_ITER_UPDATEIFCOPY","NPY_ITER_VIRTUAL","NPY_ITER_WRITEMASKED","NPY_ITER_WRITEONLY","NPY_ITER_ZEROSIZE_OK","NPY_LIST_PICKLE","NPY_NEEDS_INIT","NPY_NEEDS_PYAPI","NPY_OBJECT_DTYPE_FLAGS","NPY_USE_GETITEM","NPY_USE_SETITEM","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","None","NpyAuxData","NpyAuxData_CloneFunc","NpyAuxData_FreeFunc","NpyIter","NpyIter_GetMultiIndexFunc","NpyIter_IterNextFunc","PyArrayFlagsObject","PyArrayInterface","PyArrayIterObject","PyArrayMapIterObject","PyArrayMultiIterObject","PyArrayNeighborhoodIterObject","PyArrayObject","PyArray_ArgFunc","PyArray_ArgPartitionFunc","PyArray_ArgSortFunc","PyArray_ArrFuncs","PyArray_ArrayDescr","PyArray_Chunk","PyArray_CompareFunc","PyArray_CopySwapFunc","PyArray_CopySwapNFunc","PyArray_DatetimeDTypeMetaData","PyArray_DatetimeMetaData","PyArray_Descr","PyArray_Dims","PyArray_DotFunc","PyArray_FastClipFunc","PyArray_FastPutmaskFunc","PyArray_FastTakeFunc","PyArray_FillFunc","PyArray_FillWithScalarFunc","PyArray_FromStrFunc","PyArray_GetItemFunc","PyArray_NonzeroFunc","PyArray_PartitionFunc","PyArray_ScalarKindFunc","PyArray_ScanFunc","PyArray_SetItemFunc","PyArray_SortFunc","PyArray_VectorUnaryFunc","PyDataMem_EventHookFunc","PyUFuncGenericFunction","PyUFuncObject","PyUFunc_LegacyInnerLoopSelectionFunc","PyUFunc_MaskedInnerLoopSelectionFunc","PyUFunc_MaskedStridedInnerLoopFunc","PyUFunc_TypeResolutionFunc","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","Some","_internal_iter","ait","alignment","ao","ao","argmax","argmin","argsort","arr","array","backstrides","backstrides","base","base","base","base","base","baseoffset","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bounds","bounds","byteorder","c_metadata","cancastscalarkindto","cancastto","cast","castdict","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","compare","consec","constant","contiguous","contiguous","coordinates","coordinates","copyswap","copyswapn","core_dim_ixs","core_enabled","core_num_dim_ix","core_num_dims","core_offsets","core_signature","data","data","data","dataptr","dataptr","dataptr","descr","descr","dimensions","dimensions","dimensions","dimensions","dims_m1","dims_m1","doc","dotfunc","elsize","extra_op","extra_op_dtype","extra_op_flags","extra_op_iter","extra_op_next","extra_op_ptrs","f","factors","factors","fancy_dims","fancy_strides","fastclip","fastputmask","fasttake","fields","fill","fillwithscalar","flags","flags","flags","flags","flags","fmt","free","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","fromstr","functions","getitem","hash","identity","index","index","index","index","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","itemsize","iter_count","iter_flags","iteraxes","iters","kind","legacy_inner_loop_selector","len","len","limits","limits","limits_sizes","limits_sizes","masked_inner_loop_selector","meta","metadata","mode","name","names","nargs","nd","nd","nd","nd","nd","nd_fancy","nd_m1","nd_m1","needs_api","nin","nonzero","nout","npy_iter_get_dataptr_t","ntypes","num","numiter","numiter","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","ob_base","obj","op_flags","outer","outer_next","outer_ptrs","outer_strides","ptr","ptr","ptr","reserved","reserved1","reserved2","scalarkind","scanfunc","setitem","shape","shape","size","size","size","size","sort","strides","strides","strides","strides","subarray","subspace","subspace_iter","subspace_next","subspace_ptrs","subspace_strides","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","translate","translate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","two","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_num","type_resolver","typekind","typeobj","types","unused","userloops","weakreflist","NPY_ANYORDER","NPY_BIG","NPY_BOOL","NPY_BOOLLTR","NPY_BOOL_SCALAR","NPY_BYTE","NPY_BYTELTR","NPY_BYTEORDER_CHAR","NPY_CASTING","NPY_CDOUBLE","NPY_CDOUBLELTR","NPY_CFLOAT","NPY_CFLOATLTR","NPY_CHAR","NPY_CHARLTR","NPY_CLIP","NPY_CLIPMODE","NPY_CLONGDOUBLE","NPY_CLONGDOUBLELTR","NPY_COMPLEXLTR","NPY_COMPLEX_SCALAR","NPY_CORDER","NPY_DATETIME","NPY_DATETIMELTR","NPY_DATETIMEUNIT","NPY_DOUBLE","NPY_DOUBLELTR","NPY_EQUIV_CASTING","NPY_FLOAT","NPY_FLOATINGLTR","NPY_FLOATLTR","NPY_FLOAT_SCALAR","NPY_FORTRANORDER","NPY_FR_D","NPY_FR_GENERIC","NPY_FR_M","NPY_FR_W","NPY_FR_Y","NPY_FR_as","NPY_FR_fs","NPY_FR_h","NPY_FR_m","NPY_FR_ms","NPY_FR_ns","NPY_FR_ps","NPY_FR_s","NPY_FR_us","NPY_GENBOOLLTR","NPY_HALF","NPY_HALFLTR","NPY_HEAPSORT","NPY_IGNORE","NPY_INT","NPY_INTLTR","NPY_INTNEG_SCALAR","NPY_INTPLTR","NPY_INTPOS_SCALAR","NPY_INTROSELECT","NPY_KEEPORDER","NPY_LITTLE","NPY_LONG","NPY_LONGDOUBLE","NPY_LONGDOUBLELTR","NPY_LONGLONG","NPY_LONGLONGLTR","NPY_LONGLTR","NPY_MERGESORT","NPY_NATBYTE","NPY_NATIVE","NPY_NOSCALAR","NPY_NOTYPE","NPY_NO_CASTING","NPY_NTYPES","NPY_OBJECT","NPY_OBJECTLTR","NPY_OBJECT_SCALAR","NPY_OPPBYTE","NPY_ORDER","NPY_QUICKSORT","NPY_RAISE","NPY_SAFE_CASTING","NPY_SAME_KIND_CASTING","NPY_SCALARKIND","NPY_SEARCHLEFT","NPY_SEARCHRIGHT","NPY_SEARCHSIDE","NPY_SELECTKIND","NPY_SHORT","NPY_SHORTLTR","NPY_SIGNEDLTR","NPY_SORTKIND","NPY_STRING","NPY_STRINGLTR","NPY_STRINGLTR2","NPY_SWAP","NPY_TIMEDELTA","NPY_TIMEDELTALTR","NPY_TYPECHAR","NPY_TYPEKINDCHAR","NPY_TYPES","NPY_UBYTE","NPY_UBYTELTR","NPY_UINT","NPY_UINTLTR","NPY_UINTPLTR","NPY_ULONG","NPY_ULONGLONG","NPY_ULONGLONGLTR","NPY_ULONGLTR","NPY_UNICODE","NPY_UNICODELTR","NPY_UNSAFE_CASTING","NPY_UNSIGNEDLTR","NPY_USERDEF","NPY_USHORT","NPY_USHORTLTR","NPY_VOID","NPY_VOIDLTR","NPY_WRAP","as_","as_","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","day","day","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","hash","hash","hash","hash","hash","hash","hash","hash","hash","hash","hour","imag","imag","imag","imag","imag","imag","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","min","month","npy_bool","npy_byte","npy_cdouble","npy_cfloat","npy_char","npy_clongdouble","npy_complex128","npy_complex256","npy_complex64","npy_datetime","npy_datetimestruct","npy_double","npy_float","npy_float128","npy_float16","npy_float32","npy_float64","npy_half","npy_hash_t","npy_int","npy_int16","npy_int32","npy_int64","npy_int8","npy_intp","npy_long","npy_longdouble","npy_longlong","npy_short","npy_stride_sort_item","npy_timedelta","npy_timedeltastruct","npy_ubyte","npy_ucs4","npy_uint","npy_uint16","npy_uint32","npy_uint64","npy_uint8","npy_uintp","npy_ulong","npy_ulonglong","npy_ushort","partial_cmp","perm","ps","ps","real","real","real","real","real","real","sec","sec","stride","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","us","us","year","PY_UFUNC_API","PyUFuncAPI","PyUFunc_DD_D","PyUFunc_D_D","PyUFunc_DefaultTypeResolver","PyUFunc_FF_F","PyUFunc_FF_F_As_DD_D","PyUFunc_F_F","PyUFunc_F_F_As_D_D","PyUFunc_FromFuncAndData","PyUFunc_FromFuncAndDataAndSignature","PyUFunc_FromFuncAndDataAndSignatureAndIdentity","PyUFunc_GG_G","PyUFunc_G_G","PyUFunc_GenericFunction","PyUFunc_GetPyValues","PyUFunc_OO_O","PyUFunc_OO_O_method","PyUFunc_O_O","PyUFunc_O_O_method","PyUFunc_On_Om","PyUFunc_RegisterLoopForDescr","PyUFunc_RegisterLoopForType","PyUFunc_ReplaceLoopBySignature","PyUFunc_SetUsesArraysAsData","PyUFunc_ValidateCasting","PyUFunc_checkfperr","PyUFunc_clearfperr","PyUFunc_d_d","PyUFunc_dd_d","PyUFunc_e_e","PyUFunc_e_e_As_d_d","PyUFunc_e_e_As_f_f","PyUFunc_ee_e","PyUFunc_ee_e_As_dd_d","PyUFunc_ee_e_As_ff_f","PyUFunc_f_f","PyUFunc_f_f_As_d_d","PyUFunc_ff_f","PyUFunc_ff_f_As_dd_d","PyUFunc_g_g","PyUFunc_getfperr","PyUFunc_gg_g","PyUFunc_handlefperr","borrow","borrow_mut","from","from_subset","into","is_in_subset","to_subset","to_subset_unchecked","try_from","try_into","type_id","IntoPyArray","PyArray0Methods","PyArrayDescrMethods","PyArrayMethods","PyUntypedArrayMethods","ToPyArray","alignment","alignment","alignment","as_array_ptr","as_dtype_ptr","base","byteorder","byteorder","byteorder","char","char","char","dtype","flags","flags","flags","get_field","has_fields","has_fields","has_fields","has_object","has_object","has_object","has_subarray","has_subarray","has_subarray","into_dtype_ptr","is_aligned_struct","is_aligned_struct","is_aligned_struct","is_c_contiguous","is_c_contiguous","is_c_contiguous","is_contiguous","is_contiguous","is_contiguous","is_empty","is_empty","is_empty","is_equiv_to","is_fortran_contiguous","is_fortran_contiguous","is_fortran_contiguous","is_native_byteorder","is_native_byteorder","is_native_byteorder","itemsize","itemsize","itemsize","kind","kind","kind","len","len","len","names","ndim","ndim","ndim","ndim","ndim","ndim","num","num","num","shape","shape","shape","shape","strides","strides","strides","typeobj"],"q":[[0,"numpy"],[336,"numpy::array"],[464,"numpy::borrow"],[530,"numpy::convert"],[542,"numpy::datetime"],[590,"numpy::datetime::units"],[850,"numpy::npyffi"],[855,"numpy::npyffi::array"],[1179,"numpy::npyffi::flags"],[1249,"numpy::npyffi::objects"],[1781,"numpy::npyffi::types"],[2262,"numpy::npyffi::ufunc"],[2317,"numpy::prelude"],[2396,"ndarray::dimension::dim"],[2397,"ndarray::dimension::dynindeximpl"],[2398,"pyo3::marker"],[2399,"pyo3::instance"],[2400,"pyo3_ffi::object"],[2401,"pyo3::types::any"],[2402,"pyo3::instance"],[2403,"ndarray::dimension::dimension_trait"],[2404,"pyo3::err"],[2405,"std::os::raw"],[2406,"core::fmt"],[2407,"core::fmt"],[2408,"core::fmt"],[2409,"pyo3_ffi::unicodeobject"],[2410,"pyo3::instance"],[2411,"pyo3::instance"],[2412,"pyo3::conversion"],[2413,"core::marker"],[2414,"std::os::raw"],[2415,"pyo3::err"],[2416,"core::any"],[2417,"pyo3_ffi::cpython::object"],[2418,"pyo3::types::typeobject"],[2419,"num_traits::cast"],[2420,"ndarray"],[2421,"ndarray"],[2422,"core::iter::traits::collect"],[2423,"ndarray"],[2424,"ndarray::aliases"],[2425,"core::marker"],[2426,"nalgebra::base::matrix_view"],[2427,"nalgebra::base::scalar"],[2428,"nalgebra::base::dimension"],[2429,"nalgebra::base::matrix_view"],[2430,"nalgebra::base::alias_view"],[2431,"core::cmp"],[2432,"std::os::raw"]],"d":["Marker type to indicate that the element type received via …","The given array is already borrowed","Inidcates why borrowing an array failed.","","","Represents that a type can be an element of PyArray.","Represents that given Vec cannot be treated as an array.","Flag that indicates whether this type is trivially …","","Create a one-dimensional index","one-dimensional","Create a two-dimensional index","two-dimensional","Create a three-dimensional index","three-dimensional","Create a four-dimensional index","four-dimensional","Create a five-dimensional index","five-dimensional","Create a six-dimensional index","six-dimensional","Create a dynamic-dimensional index","dynamic-dimensional","Represents that the given array is not contiguous.","The given array is not writeable","","","","","","","","","","","","","Binding of numpy.dtype.","Implementation of functionality for PyArrayDescr.","","Receiver for arrays or array-like types.","Receiver for zero-dimensional arrays or array-like types.","Receiver for one-dimensional arrays or array-like types.","Receiver for two-dimensional arrays or array-like types.","Receiver for three-dimensional arrays or array-like types.","Receiver for four-dimensional arrays or array-like types.","Receiver for five-dimensional arrays or array-like types.","Receiver for six-dimensional arrays or array-like types.","Receiver for arrays or array-like types whose …","","A newtype wrapper around [u8; N] to handle byte scalars …","A newtype wrapper around [PyUCS4; N] to handle str_ scalars…","","","","","","","","","","","","","","","","","","","A safe, untyped wrapper for NumPy’s ndarray class.","Implementation of functionality for PyUntypedArray.","","","Marker type to indicate that the element type received via …","Returns the required alignment (bytes) of this type …","","","","Safe interface for NumPy’s N-dimensional arrays","Create an Array with one, two or three dimensions.","Returns a raw pointer to the underlying PyArrayObject.","Returns a raw pointer to the underlying PyArrayObject.","Returns self as *mut PyArray_Descr.","Returns self as *mut PyArray_Descr.","Gets the underlying FFI pointer, returns a borrowed …","Gets the underlying FFI pointer, returns a borrowed …","","","Returns the type descriptor for the base element of …","Returns the type descriptor for the base element of …","Types to safely create references into NumPy arrays","","","","","","","","","","","","","","","","","","","","","Returns an ASCII character indicating the byte-order of …","Returns a unique ASCII character for each of the 21 …","","","","","","","Defines conversion traits between Rust types and NumPy …","Support datetimes and timedeltas","","","","Return the dot product of two arrays.","Returns the type descriptor (“dtype”) for a registered …","Returns the dtype of the array.","Returns the dtype of the array.","Returns the type descriptor (“dtype”) for a registered …","Return the Einstein summation convention of given tensors.","Return the Einstein summation convention of given tensors.","","","","","","Returns bit-flags describing how this type descriptor is …","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","Returns the associated type descriptor (“dtype”) for …","Returns the associated type descriptor (“dtype”) for …","Returns the associated type descriptor (“dtype”) for …","","","","","Returns the type descriptor and offset of the field with …","Returns the type descriptor and offset of the field with …","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor contains any …","Returns true if the type descriptor is a sub-array.","","","Imaginary portion of the complex number","Imaginary portion of the complex number","Return the inner product of two arrays.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Returns self as *mut PyArray_Descr while increasing the …","Returns self as *mut PyArray_Descr while increasing the …","","","","Returns true if the type descriptor is a struct which …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the there are no elements in the array.","Returns true if two type descriptors are equivalent.","Returns true if two type descriptors are equivalent.","Returns true if the internal data of the array is …","","","","","","","","","","","Returns true if type descriptor byteorder is native, or …","","","Returns the element size of this type descriptor.","Returns an ASCII character (one of biufcmMOSUV) …","Calculates the total number of elements in the array.","","Returns an ordered list of field names, or None if there …","Returns an ordered list of field names, or None if there …","","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions of the array.","Creates a new type descriptor (“dtype”) object from an …","Creates a new type descriptor (“dtype”) object from an …","Low-Level bindings for NumPy C API.","Returns a unique number for each of the 21 different …","Shortcut for creating a type descriptor of object type.","Shortcut for creating a type descriptor of object type.","Returns the type descriptor for a registered type.","Returns the type descriptor for a registered type.","","","A prelude","Create a PyArray with one, two or three dimensions.","","Real portion of the complex number","Real portion of the complex number","Returns the shape of the sub-array.","Returns the shape of the sub-array.","Returns a slice which contains dimmensions of the array.","Returns a slice indicating how many bytes to advance when …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the array scalar corresponding to this type …","Returns the array scalar corresponding to this type …","A safe, statically-typed wrapper for NumPy’s ndarray …","Zero-dimensional array.","Implementation of functionality for PyArray0<T>.","One-dimensional array.","Two-dimensional array.","Three-dimensional array.","Four-dimensional array.","Five-dimensional array.","Six-dimensional array.","Dynamic-dimensional array.","Implementation of functionality for PyArray<T, D>.","Deprecated form of PyArray<T, Ix1>::arange_bound","Return evenly spaced values within a given interval.","Returns an ArrayView of the internal array.","Returns an ArrayView of the internal array.","Returns an ArrayViewMut of the internal array.","Returns an ArrayViewMut of the internal array.","","Returns the internal array as RawArrayView enabling …","Returns the internal array as RawArrayView enabling …","Returns the internal array as RawArrayViewMut enabling …","Returns the internal array as RawArrayViewMut enabling …","","Returns an immutable view of the internal data as a slice.","Returns an immutable view of the internal data as a slice.","Returns a mutable view of the internal data as a slice.","Returns a mutable view of the internal data as a slice.","Access an untyped representation of this array.","Access an untyped representation of this array.","","Deprecated form of PyArray<T, D>::borrow_from_array_bound","Creates a NumPy array backed by array and ties its …","","Cast the PyArray<T> to PyArray<U>, by allocating a new …","Cast the PyArray<T> to PyArray<U>, by allocating a new …","Copies self into other, performing a data type conversion …","Copies self into other, performing a data type conversion …","Returns a pointer to the first element of the array.","Returns a pointer to the first element of the array.","","Same as shape, but returns D instead of &[usize].","Same as shape, but returns D instead of &[usize].","","","","Returns the argument unchanged.","Deprecated form of PyArray<T, D>::from_array_bound","Construct a NumPy array from a ndarray::ArrayBase.","Constructs a reference to a PyArray from a raw point to a …","","Deprecated form of PyArray<T, Ix1>::from_iter_bound","Construct a one-dimensional array from an Iterator.","Deprecated form of PyArray<T, D>::from_owned_array_bound","Constructs a NumPy from an ndarray::Array","Deprecated form of …","Construct a NumPy array containing objects stored in a …","Constructs a reference to a PyArray from a raw pointer to …","","Deprecated form of PyArray<T, Ix1>::from_slice_bound","Construct a one-dimensional array from a slice.","","Deprecated form of PyArray<T, Ix1>::from_vec_bound","Deprecated form of PyArray<T, Ix2>::from_vec2_bound","Construct a two-dimension array from a Vec<Vec<T>>.","Deprecated form of PyArray<T, Ix3>::from_vec3_bound","Construct a three-dimensional array from a Vec<Vec<Vec<T>>>…","Construct a one-dimensional array from a Vec<T>.","Get a reference of the specified element if the given …","Get a reference of the specified element if the given …","Returns a handle to NumPy’s multiarray module.","Same as get, but returns Option<&mut T>.","Same as get, but returns Option<&mut T>.","Get a copy of the specified element in the array.","Get a copy of the specified element in the array.","Calls U::from(self).","","","","","Get the single element of a zero-dimensional array.","Get the single element of a zero-dimensional array.","Deprecated form of PyArray<T, D>::new_bound","Creates a new uninitialized NumPy array.","Get an immutable borrow of the NumPy array","Get an immutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","Special case of reshape_with_order which keeps the memory …","Special case of reshape_with_order which keeps the memory …","Construct a new array which has same values as self, but …","Construct a new array which has same values as self, but …","Extends or truncates the dimensions of an array.","Extends or truncates the dimensions of an array.","Turn an array with fixed dimensionality into one with …","Turn an array with fixed dimensionality into one with …","","Turn &PyArray<T,D> into Py<PyArray<T,D>>, i.e. a pointer …","Get a copy of the array as an ndarray::Array.","Get a copy of the array as an ndarray::Array.","","","","Returns a copy of the internal data of the array as a Vec.","Returns a copy of the internal data of the array as a Vec.","Try to convert this array into a nalgebra::MatrixView …","Try to convert this array into a nalgebra::MatrixView …","Try to convert this array into a nalgebra::MatrixViewMut …","Try to convert this array into a nalgebra::MatrixViewMut …","","","","","","Get an immutable borrow of the NumPy array","Get an immutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","Get a mutable borrow of the NumPy array","","","","Get an immutable reference of the specified element, …","Get an immutable reference of the specified element, …","Same as uget, but returns &mut T.","Same as uget, but returns &mut T.","Same as uget, but returns *mut T.","Same as uget, but returns *mut T.","Deprecated form of PyArray<T, D>::zeros_bound","Construct a new NumPy array filled with zeros.","Read-only borrow of an array.","Read-only borrow of a zero-dimensional array.","Read-only borrow of a one-dimensional array.","Read-only borrow of a two-dimensional array.","Read-only borrow of a three-dimensional array.","Read-only borrow of a four-dimensional array.","Read-only borrow of a five-dimensional array.","Read-only borrow of a six-dimensional array.","Read-only borrow of an array whose dimensionality is …","Read-write borrow of an array.","Read-write borrow of a zero-dimensional array.","Read-write borrow of a one-dimensional array.","Read-write borrow of a two-dimensional array.","Read-write borrow of a three-dimensional array.","Read-write borrow of a four-dimensional array.","Read-write borrow of a five-dimensional array.","Read-write borrow of a six-dimensional array.","Read-write borrow of an array whose dimensionality is …","Provides an immutable array view of the interior of the …","Provides a mutable array view of the interior of the NumPy …","Convert this two-dimensional array into a …","Convert this one-dimensional array into a …","Convert this two-dimensional array into a …","Convert this one-dimensional array into a …","Provide an immutable slice view of the interior of the …","Provide a mutable slice view of the interior of the NumPy …","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","","Provide an immutable reference to an element of the NumPy …","Provide a mutable reference to an element of the NumPy …","Calls U::from(self).","Calls U::from(self).","","","Extends or truncates the dimensions of an array.","","","","","","Try to convert this array into a nalgebra::MatrixView …","Try to convert this array into a nalgebra::MatrixViewMut …","","","","","","","The dimension type of the resulting array.","The dimension type of the resulting array.","Conversion trait from owning Rust types into PyArray.","The element type of resulting array.","The element type of resulting array.","Trait implemented by types that can be used to index an …","Utility trait to specify the dimensions of an array.","Conversion trait from borrowing Rust types to PyArray.","Deprecated form of IntoPyArray::into_pyarray_bound","Consumes self and moves its data into a NumPy array.","Deprecated form of ToPyArray::to_pyarray_bound","Copies the content pointed to by &self into a newly …","The abbrevation used for debug formatting","Corresponds to the datetime64 scalar type","Corresponds to the [timedelta64][scalars-datetime64] …","The matching NumPy datetime unit code","Represents the datetime units supported by NumPy","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Returns the argument unchanged.","","","","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","Predefined implementors of the Unit trait","Attoseconds, i.e. 10^-18 seconds","Days, i.e. 24 hours","Femtoseconds, i.e. 10^-15 seconds","Hours, i.e. 60 minutes","Microseconds, i.e. 10^-6 seconds","Milliseconds, i.e. 10^-3 seconds","Minutes, i.e. 60 seconds","Months, i.e. 30 days","Nanoseconds, i.e. 10^-9 seconds","Picoseconds, i.e. 10^-12 seconds","Seconds","Weeks, i.e. 7 days","Years, i.e. 12 months","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Low-Level binding for Array API","","Low-Lebel binding for NumPy C API C-objects","","Low-Level binding for UFunc API","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","All type objects exported by the NumPy API.","A global variable which stores a ‘capsule’ pointer to …","See PY_ARRAY_API for more.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Checks that op is an instance of PyArray or not.","","","Checks that op is an exact instance of PyArray or not.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Get a pointer of the type object assocaited with ty.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","No value.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","Some value of type T.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A global variable which stores a ‘capsule’ pointer to …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","Implementation of functionality for PyArrayDescr.","","Implementation of functionality for PyUntypedArray.","","Returns the required alignment (bytes) of this type …","Returns the required alignment (bytes) of this type …","Returns the required alignment (bytes) of this type …","Returns a raw pointer to the underlying PyArrayObject.","Returns self as *mut PyArray_Descr.","Returns the type descriptor for the base element of …","Returns an ASCII character indicating the byte-order of …","Returns an ASCII character indicating the byte-order of …","Returns an ASCII character indicating the byte-order of …","Returns a unique ASCII character for each of the 21 …","Returns a unique ASCII character for each of the 21 …","Returns a unique ASCII character for each of the 21 …","Returns the dtype of the array.","Returns bit-flags describing how this type descriptor is …","Returns bit-flags describing how this type descriptor is …","Returns bit-flags describing how this type descriptor is …","Returns the type descriptor and offset of the field with …","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor is a structured type.","Returns true if the type descriptor contains any …","Returns true if the type descriptor contains any …","Returns true if the type descriptor contains any …","Returns true if the type descriptor is a sub-array.","Returns true if the type descriptor is a sub-array.","Returns true if the type descriptor is a sub-array.","Returns self as *mut PyArray_Descr while increasing the …","Returns true if the type descriptor is a struct which …","Returns true if the type descriptor is a struct which …","Returns true if the type descriptor is a struct which …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the there are no elements in the array.","Returns true if the there are no elements in the array.","Returns true if the there are no elements in the array.","Returns true if two type descriptors are equivalent.","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if the internal data of the array is …","Returns true if type descriptor byteorder is native, or …","Returns true if type descriptor byteorder is native, or …","Returns true if type descriptor byteorder is native, or …","Returns the element size of this type descriptor.","Returns the element size of this type descriptor.","Returns the element size of this type descriptor.","Returns an ASCII character (one of biufcmMOSUV) …","Returns an ASCII character (one of biufcmMOSUV) …","Returns an ASCII character (one of biufcmMOSUV) …","Calculates the total number of elements in the array.","Calculates the total number of elements in the array.","Calculates the total number of elements in the array.","Returns an ordered list of field names, or None if there …","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions if this type descriptor …","Returns the number of dimensions of the array.","Returns the number of dimensions of the array.","Returns the number of dimensions of the array.","Returns a unique number for each of the 21 different …","Returns a unique number for each of the 21 different …","Returns a unique number for each of the 21 different …","Returns the shape of the sub-array.","Returns a slice which contains dimmensions of the array.","Returns a slice which contains dimmensions of the array.","Returns a slice which contains dimmensions of the array.","Returns a slice indicating how many bytes to advance when …","Returns a slice indicating how many bytes to advance when …","Returns a slice indicating how many bytes to advance when …","Returns the array scalar corresponding to this type …"],"i":[0,11,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,10,11,0,0,12,14,15,6,6,14,6,14,15,6,0,6,14,37,39,25,7,10,11,21,22,6,14,37,39,25,7,10,11,21,22,6,6,21,22,21,22,21,22,0,0,6,14,25,0,0,12,14,0,0,0,21,22,6,14,25,6,6,6,14,14,37,39,25,7,7,10,10,11,11,21,21,22,22,6,14,37,39,25,7,10,11,21,21,22,22,6,14,6,14,25,6,14,37,39,25,7,10,11,21,22,0,26,26,26,167,168,21,22,15,6,6,6,6,21,22,167,168,0,6,14,37,39,25,7,10,11,21,22,15,6,6,14,14,6,14,14,14,15,6,14,6,14,37,39,25,7,10,11,21,22,6,6,14,6,6,14,0,15,6,0,6,14,6,6,0,6,6,6,6,6,21,22,0,0,0,167,168,15,6,14,14,6,14,21,22,6,14,7,10,11,21,22,6,14,37,39,25,7,10,11,21,22,6,14,37,39,25,7,10,11,21,22,6,6,14,14,37,39,25,7,10,11,21,22,6,14,6,14,6,14,37,39,25,7,10,11,21,22,6,14,6,14,37,39,25,7,10,11,21,22,6,14,15,6,0,0,0,0,0,0,0,0,0,0,0,28,28,63,28,63,28,28,63,28,63,28,28,28,63,28,63,63,28,28,28,28,28,63,28,63,28,63,28,28,28,63,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,63,28,0,63,28,28,63,28,28,28,28,28,28,81,28,28,28,63,28,63,28,63,63,28,63,28,63,28,28,28,28,63,28,28,28,28,63,63,28,63,28,28,28,28,28,28,63,28,63,28,28,28,28,28,63,28,63,28,63,28,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,84,83,83,84,84,83,84,83,84,83,84,83,83,83,84,83,84,83,84,83,84,83,84,83,84,83,84,83,84,83,84,83,84,84,83,83,84,83,84,83,84,83,84,83,84,83,84,93,94,0,93,94,0,0,0,93,93,94,94,97,0,0,97,0,95,98,95,98,95,98,95,98,95,98,95,98,95,98,95,95,98,98,95,98,95,98,95,98,95,98,95,98,95,98,95,98,95,98,95,98,95,98,95,98,95,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,104,105,106,107,108,109,110,111,112,113,114,115,116,0,0,0,0,0,149,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,0,0,0,149,149,149,149,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,0,117,117,0,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,149,117,117,117,117,117,117,117,117,117,149,149,149,149,149,149,149,149,117,117,117,117,117,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,149,117,117,117,149,117,149,117,149,117,149,117,117,149,117,149,117,149,117,149,117,149,117,149,117,149,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,169,170,171,172,173,174,175,176,139,177,178,179,180,181,182,183,184,185,186,187,188,166,189,190,191,192,123,122,148,193,194,195,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,169,170,171,172,173,174,175,176,139,177,178,179,180,181,182,183,184,185,186,187,188,166,189,190,191,192,123,122,148,193,194,195,154,143,16,144,154,141,141,141,151,143,144,154,13,150,129,156,157,143,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,144,154,16,16,141,141,141,141,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,155,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,141,143,154,144,154,144,154,141,141,153,153,153,153,153,153,13,152,153,144,154,143,13,152,13,128,154,143,144,154,153,141,16,143,143,143,143,143,143,16,144,154,143,143,141,141,141,16,141,141,13,16,151,129,152,121,155,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,141,153,141,16,153,144,128,154,143,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,152,143,153,143,128,16,153,142,129,144,154,144,154,153,157,16,154,153,16,153,13,152,128,154,143,143,144,154,143,153,141,153,0,153,156,128,143,13,16,151,129,153,144,128,154,143,153,153,143,143,143,143,142,129,153,155,153,153,141,141,141,150,152,144,128,154,143,141,13,152,144,154,16,143,143,143,143,143,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,144,154,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,152,16,13,16,150,141,151,142,129,152,153,121,144,128,154,143,155,156,157,16,153,152,16,153,143,153,13,85,164,161,162,130,161,162,0,0,161,162,161,162,161,162,131,0,161,162,163,130,85,161,162,0,161,162,119,161,163,162,130,85,134,134,134,134,134,134,134,134,134,134,134,134,134,134,163,161,162,126,164,161,162,130,162,130,125,85,164,161,161,162,161,162,162,126,164,164,130,161,119,161,161,162,130,164,0,126,131,119,119,0,145,145,0,0,161,162,163,0,161,162,162,164,161,162,0,0,0,161,162,161,162,162,161,161,162,162,161,162,119,163,161,161,162,161,162,131,135,146,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,161,135,146,85,130,126,145,134,161,125,119,131,164,158,159,160,85,130,126,145,134,161,125,119,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,85,130,126,145,134,161,125,119,131,164,135,196,197,198,158,159,160,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,135,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,161,133,135,146,196,197,198,158,159,160,135,146,133,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,158,159,160,85,130,126,145,134,161,125,119,131,135,146,133,162,163,164,135,146,135,0,0,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,165,0,0,0,0,0,0,15,15,15,12,15,15,15,15,15,15,15,15,12,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,12,12,12,12,12,12,12,12,12,15,12,12,12,15,15,15,15,15,15,15,15,15,12,12,12,15,15,15,15,12,12,12,15,15,15,15,12,12,12,12,12,12,15],"f":"`````````{b{{f{{d{b}}}}}}`{{bb}{{f{{d{b}}}}}}`{{bbb}{{f{{d{b}}}}}}`{{bbbb}{{f{{d{b}}}}}}`{{bbbbb}{{f{{d{b}}}}}}`{{bbbbbb}{{f{{d{b}}}}}}`{{{h{b}}}{{f{j}}}}`````````````````````````````````````````````````````{lb}{{nA`}Ab}{{AdA`}Ab}{{AfA`}Ab}``{AhAj}{AlAj}{AnB`}{lB`}{lBb}{AlBb}{lBd}{AlBd}{An{{Bf{l}}}}{ll}`{ce{}{}}0000000000000000000{lBh}0{BjBj}{BlBl}{{ce}Bn{}{}}0{{BjBj}C`}{{BlBl}C`}``:9{{{Cb{ceg}}}iCdCf`{}}{{{Ch{ce}}{Ch{cg}}}{{Cj{i}}}CdCfCf{{`{c}}}}{A`l}{Ah{{Bf{l}}}}{All}{A`{{Bf{l}}}}{{Cl{h{{Ch{cCn}}}}}{{Cj{e}}}Cd{{`{c}}}}`{{BjBj}D`}{{BlBl}D`}{{{Bf{Bd}}}{{Cj{l}}}}{{{Bf{Bd}}}{{Cj{Al}}}}{{{Bf{Bd}}}{{Cj{{Cb{ceg}}}}}CdCf`}{lDb}{{lDd}{{Dh{BnDf}}}}0{{AlDd}{{Dh{BnDf}}}}0{{DjDd}Dl}{{DnDd}Dl}{{{Cb{ceg}}Dd}Dl{CdE`}{CfE`}{`E`}}{{nDd}Dl}0{{AdDd}Dl}0{{AfDd}Dl}0{{BjDd}Dl}0{{BlDd}Dl}0{cc{}}0000000{{{d{Eb}}}Bj}11{{{d{Ed}}}Bl}{{A`Bb}{{Ef{c}}}{}}000{{{Eh{Bd}}}{{Dh{cEj}}}{}}{ce{}{}}000000000`{A`l}0{A`{{Bf{l}}}}0000{{AnCl}{{Cj{{El{{Bf{l}}b}}}}}}{{lCl}{{Cj{{El{lb}}}}}}{lD`}00{{Bjc}BnEn}{{Blc}BnEn}``{{{Ch{ce}}{Ch{cg}}}{{Cj{i}}}CdCfCf{{`{c}}}}8888888888{AnB`}{lB`}{{lA`}{{F`{l}}}}{{AlA`}{{F`{Al}}}}{{AlA`}Ab}8{AlD`}00{{AnAn}D`}{{ll}D`}2{cD`{}}000000000{l{{Ef{D`}}}}{BdD`}{{{Bf{Bd}}}D`}{lb}{lBh}{Alb}`{An{{Ef{{Fb{Cl}}}}}}{l{{Ef{{Fb{Cl}}}}}}`42{{A`c}{{Cj{l}}}{FdFf}}{{A`c}{{Cj{{Bf{l}}}}}{FdFf}}`{lFh}{A`l}{A`{{Bf{l}}}}10{{BjBj}{{Ef{C`}}}}{{BlBl}{{Ef{C`}}}}`````{An{{Fb{b}}}}{l{{Fb{b}}}}{Al{{h{b}}}}{Al{{h{Fj}}}}{{lA`}Ab}{{AlA`}Ab}{ce{}{}}0{cFl{}}000000{c{{Ef{e}}}{}{}}0000000002222222222{c{{Dh{eFn}}}{{G`{Bd}}}{}}{c{{Dh{e}}}{}{}}010000000011{ce{{G`{Bd}}}{}}01111111111{{{Bf{Bd}}}D`}0{cGb{}}000000000{A`Gd}0{An{{Bf{Gf}}}}{lGf}```````````{{A`ccc}{{Ch{cGh}}}{Cd{Gl{Gj}}}}{{A`ccc}{{Bf{{Ch{cGh}}}}}{Cd{Gl{Gj}}}}{Gn{{H`{ce}}}CdCf}{{{Ch{ce}}}{{H`{ce}}}CdCf}{Gn{{Hb{ce}}}CdCf}{{{Ch{ce}}}{{Hb{ce}}}CdCf}{{{Ch{ce}}}Bb{}{}}{Gn{{Hd{ce}}}CdCf}{{{Ch{ce}}}{{Hd{ce}}}CdCf}{Gn{{Hf{ce}}}CdCf}{{{Ch{ce}}}{{Hf{ce}}}CdCf}{{{Ch{ce}}}Bd{}{}}{{{Ch{ce}}}{{Dh{{h{c}}Ad}}}CdCf}{Gn{{Dh{{h{c}}Ad}}}Cd}10{Gn{{Bf{Al}}}}{{{Ch{ce}}}Al{}{}}{ce{}{}}{{{Hh{eg}}Bd}{{Ch{cg}}}Cd{{Hl{}{{Hj{c}}}}}Cf}{{{Hh{eg}}{Bf{Bd}}}{{Bf{{Ch{cg}}}}}Cd{{Hl{}{{Hj{c}}}}}Cf}2{{GnD`}{{Cj{{Bf{{Ch{ce}}}}}}}Cd{}}{{{Ch{ce}}D`}{{Cj{{Ch{ge}}}}}Cd{}Cd}{{Gn{Bf{{Ch{ce}}}}}{{Cj{Bn}}}Cd{}}{{{Ch{ce}}{Ch{ge}}}{{Cj{Bn}}}Cd{}Cd}{Gn}{{{Ch{ce}}}{}{}{}}{{{Ch{ce}}}g{}{}{}}{{{Ch{ce}}}eCdCf}{GncCf}{{{Bf{Bd}}}{{Cj{{Ch{ce}}}}}CdCf}{{{Ch{ce}}Dd}{{Dh{BnDf}}}{}{}}0{cc{}}{{A`{Hh{eg}}}{{Ch{cg}}}Cd{{Hl{}{{Hj{c}}}}}Cf}{{A`{Hh{eg}}}{{Bf{{Ch{cg}}}}}Cd{{Hl{}{{Hj{c}}}}}Cf}{{A`Bb}{{Ch{ce}}}{}{}}{{A`Bb}{{Ef{c}}}{}}{{A`e}{{Ch{cGh}}}Cd{{I`{}{{Hn{c}}}}}}{{A`e}{{Bf{{Ch{cGh}}}}}Cd{{I`{}{{Hn{c}}}}}}{{A`{Ib{ce}}}{{Ch{ce}}}CdCf}{{A`{Ib{ce}}}{{Bf{{Ch{ce}}}}}CdCf}{{A`{Ib{{F`{c}}e}}}{{Ch{Abe}}}{}Cf}{{A`{Ib{{F`{c}}e}}}{{Bf{{Ch{Abe}}}}}{}Cf}76{{A`{h{c}}}{{Ch{cGh}}}Cd}{{A`{h{c}}}{{Bf{{Ch{cGh}}}}}Cd}{ce{}{}}{{A`{Fb{c}}}{{Ch{cGh}}}Cd}{{A`{h{{Fb{c}}}}}{{Dh{{Ch{cId}}n}}}Cd}{{A`{h{{Fb{c}}}}}{{Dh{{Bf{{Ch{cId}}}}n}}}Cd}{{A`{h{{Fb{{Fb{c}}}}}}}{{Dh{{Ch{cIf}}n}}}Cd}{{A`{h{{Fb{{Fb{c}}}}}}}{{Dh{{Bf{{Ch{cIf}}}}n}}}Cd}{{A`{Fb{c}}}{{Bf{{Ch{cGh}}}}}Cd}{{Gne}{{Ef{g}}}Cf{{Ij{}{{Ih{c}}}}}Cd}{{{Ch{ce}}g}{{Ef{c}}}CdCf{{Ij{}{{Ih{e}}}}}}{A`{{Cj{{Bf{Il}}}}}}21129{{{Ch{ce}}A`}Ab{}{}}{{{Ch{ce}}A`}{{F`{{Ch{ce}}}}}{}{}}{cD`{}}{{{Bf{Bd}}}D`}{{{Ch{cIn}}}c{J`Cd}}{Jbc{CdJ`}}{{A`eD`}{{Ch{gc}}}Cf{{Jd{}{{Ih{c}}}}}Cd}{{A`eD`}{{Bf{{Ch{gc}}}}}Cf{{Jd{}{{Ih{c}}}}}Cd}{{{Ch{ce}}}{{Jf{ce}}}CdCf}{Gn{{Jf{ce}}}CdCf}{{{Ch{ce}}}{{Jh{ce}}}CdCf}{Gn{{Jh{ce}}}CdCf}{{{Ch{ce}}g}{{Cj{{Ch{c}}}}}Cd{}Jd}{{Gnc}{{Cj{{Bf{{Ch{e}}}}}}}JdCd}{{GncJj}{{Cj{{Bf{{Ch{e}}}}}}}JdCd}{{{Ch{ce}}gJj}{{Cj{{Ch{c}}}}}Cd{}Jd}{{Gnc}{{Cj{Bn}}}Jd}{{{Ch{ce}}g}{{Cj{Bn}}}Cd{}Jd}{Gn{{Bf{{Ch{cCn}}}}}Cd}{{{Ch{ce}}}{{Ch{cCn}}}CdCf}{{{Ch{ce}}A`}Ab{}{}}{{{Ch{ce}}}{{F`{{Ch{ce}}}}}{}{}}{{{Ch{ce}}}{{Ib{ce}}}CdCf}{Gn{{Ib{ce}}}CdCf}{cFl{}}{c{{Ef{e}}}{}{}}{ce{}{}}{{{Ch{ce}}}{{Dh{{Fb{c}}Ad}}}CdCf}{Gn{{Dh{{Fb{c}}Ad}}}Cd}{Gn{{Ef{{Jl{cegik}}}}}{JnCd}K`K`K`K`}{{{Ch{ce}}}{{Ef{{Jl{cgikm}}}}}{JnCd}CfK`K`K`K`}{Gn{{Ef{{Kb{cegik}}}}}{JnCd}K`K`K`K`}{{{Ch{ce}}}{{Ef{{Kb{cgikm}}}}}{JnCd}CfK`K`K`K`}{c{{Dh{e}}}{}{}}{c{{Dh{eFn}}}{{G`{Bd}}}{}}0{ce{{G`{Bd}}}{}}2{Gn{{Dh{{Jf{ce}}Af}}}CdCf}{{{Ch{ce}}}{{Dh{{Jf{ce}}Af}}}CdCf}{Gn{{Dh{{Jh{ce}}Af}}}CdCf}{{{Ch{ce}}}{{Dh{{Jh{ce}}Af}}}CdCf}{{{Bf{Bd}}}D`}{cGb{}}{A`Gd}{{{Ch{ce}}g}cCdCf{{Ij{}{{Ih{e}}}}}}{{Gne}gCf{{Ij{}{{Ih{c}}}}}Cd}10{{{Ch{ce}}g}{}CdCf{{Ij{}{{Ih{e}}}}}}{{Gne}{}Cf{{Ij{}{{Ih{c}}}}}}{{A`eD`}{{Ch{gc}}}Cf{{Jd{}{{Ih{c}}}}}Cd}{{A`eD`}{{Bf{{Ch{gc}}}}}Cf{{Jd{}{{Ih{c}}}}}Cd}``````````````````{{{Jf{ce}}}{{H`{ce}}}CdCf}{{{Jh{ce}}}{{Hb{ce}}}CdCf}{{{Jf{cId}}}{{Kf{cKdKd}}}{JnCd}}{{{Jf{cGh}}}{{Kf{cKdKd}}}{JnCd}}{{{Jh{cId}}}{{Kh{cKdKd}}}{JnCd}}{{{Jh{cGh}}}{{Kh{cKdKd}}}{JnCd}}{{{Jf{ce}}}{{Dh{{h{c}}Ad}}}CdCf}{{{Jh{ce}}}{{Dh{{h{c}}Ad}}}CdCf}{ce{}{}}000{{{Jf{ce}}}{{Jf{ce}}}CdCf}{{ce}Bn{}{}}{{{Jf{ce}}}gCdCf{}}{{{Jh{ce}}}gCdCf{}}{{{Jf{ce}}}BnCdCf}{{{Jh{ce}}}BnCdCf}{{{Bf{Bd}}}{{Cj{{Jf{ce}}}}}CdCf}{{{Bf{Bd}}}{{Cj{{Jh{ce}}}}}CdCf}{{{Jf{ce}}Dd}DlCdCf}{{{Jh{ce}}Dd}DlCdCf}{cc{}}0{{{Eh{Bd}}}{{Dh{cEj}}}{}}0<<{{{Jf{ce}}g}{{Ef{c}}}CdCf{{Ij{}{{Ih{e}}}}}}{{{Jh{ce}}g}{{Ef{c}}}CdCf{{Ij{}{{Ih{e}}}}}}>>{cD`{}}0{{{Jh{cGh}}e}{{Cj{{Jh{cGh}}}}}CdJd}{ce{}{}}{c{{Ef{e}}}{}{}}011{{{Jf{ce}}}{{Ef{{Jl{cgikm}}}}}{JnCd}CfK`K`K`K`}{{{Jh{ce}}}{{Ef{{Kb{cgikm}}}}}{JnCd}CfK`K`K`K`}{c{{Dh{e}}}{}{}}000{cGb{}}0````````{{{Kj{}{{Hn{c}}{Ih{e}}}}A`}{{Ch{ce}}}CdCf}{{{Kj{}{{Hn{c}}{Ih{e}}}}A`}{{Bf{{Ch{ce}}}}}CdCf}{{{Kl{}{{Hn{c}}{Ih{e}}}}A`}{{Ch{ce}}}CdCf}{{{Kl{}{{Hn{c}}{Ih{e}}}}A`}{{Bf{{Ch{ce}}}}}CdCf}`````9999{{{Kn{c}}}{{Kn{c}}}{L`Lb}}{{{Ld{c}}}{{Ld{c}}}{L`Lb}}{{ce}Bn{}{}}0{{{Kn{c}}{Kn{c}}}C`{LfLb}}{{{Ld{c}}{Ld{c}}}C`{LfLb}}{{{Kn{c}}{Kn{c}}}D`{LhLb}}{{{Ld{c}}{Ld{c}}}D`{LhLb}}{{{Kn{c}}Dd}DlLb}{{{Ld{c}}Dd}DlLb}{cc{}}{Lj{{Kn{c}}}Lb}{Lj{{Ld{c}}}Lb}2{ce{}{}}0{A`{{Bf{l}}}}0{{{Kn{c}}e}Bn{LlLb}En}{{{Ld{c}}e}Bn{LlLb}En}33{cD`{}}0{{{Kn{c}}{Kn{c}}}{{Ef{C`}}}{LnLb}}{{{Ld{c}}{Ld{c}}}{{Ef{C`}}}{LnLb}}66{c{{Ef{e}}}{}{}}077{c{{Dh{e}}}{}{}}000{cGb{}}0``````````````99999999999999999999999999{M`M`}{MbMb}{MdMd}{MfMf}{MhMh}{MjMj}{MlMl}{MnMn}{N`N`}{NbNb}{NdNd}{NfNf}{NhNh}{{ce}Bn{}{}}000000000000{{M`M`}C`}{{MbMb}C`}{{MdMd}C`}{{MfMf}C`}{{MhMh}C`}{{MjMj}C`}{{MlMl}C`}{{MnMn}C`}{{N`N`}C`}{{NbNb}C`}{{NdNd}C`}{{NfNf}C`}{{NhNh}C`}{{M`M`}D`}{{MbMb}D`}{{MdMd}D`}{{MfMf}D`}{{MhMh}D`}{{MjMj}D`}{{MlMl}D`}{{MnMn}D`}{{N`N`}D`}{{NbNb}D`}{{NdNd}D`}{{NfNf}D`}{{NhNh}D`}{{M`Dd}Dl}{{MbDd}Dl}{{MdDd}Dl}{{MfDd}Dl}{{MhDd}Dl}{{MjDd}Dl}{{MlDd}Dl}{{MnDd}Dl}{{N`Dd}Dl}{{NbDd}Dl}{{NdDd}Dl}{{NfDd}Dl}{{NhDd}Dl}{cc{}}000000000000{ce{}{}}000000000000{{M`c}BnEn}{{Mbc}BnEn}{{Mdc}BnEn}{{Mfc}BnEn}{{Mhc}BnEn}{{Mjc}BnEn}{{Mlc}BnEn}{{Mnc}BnEn}{{N`c}BnEn}{{Nbc}BnEn}{{Ndc}BnEn}{{Nfc}BnEn}{{Nhc}BnEn}============={cD`{}}000000000000{{M`M`}{{Ef{C`}}}}{{MbMb}{{Ef{C`}}}}{{MdMd}{{Ef{C`}}}}{{MfMf}{{Ef{C`}}}}{{MhMh}{{Ef{C`}}}}{{MjMj}{{Ef{C`}}}}{{MlMl}{{Ef{C`}}}}{{MnMn}{{Ef{C`}}}}{{N`N`}{{Ef{C`}}}}{{NbNb}{{Ef{C`}}}}{{NdNd}{{Ef{C`}}}}{{NfNf}{{Ef{C`}}}}{{NhNh}{{Ef{C`}}}}{ce{}{}}000000000000{c{{Ef{e}}}{}{}}0000000000001111111111111{c{{Dh{e}}}{}{}}0000000000000000000000000{cGb{}}000000000000``````{{NjA`FhAjNlJjNnNlB`FhFhO`O`}Ob}{{NjA`Ob}Ob}{{NjA`ObO`O`}Fh}{{NjA`Ob}Fh}{{NjA`Ob}Bn}1{{NjA`ObFh}O`}{{NjA`Ob}O`}{{NjA`Ob}Db}{{NjA`Ob}B`}{{NjA`ObDb}Od}32{{NjA`ObO`}Bn}444{{NjA`ObO`O`}Bn}{{NjA`ObDb}Of}6{{NjA`ObO`}Aj}::{{NjA`Ob}Aj}{{NjA`ObDb}Bn}{{NjA`ObO`}Fh}1000{{NjA`Ob}Oh}0000{{NjA`ObFh}Oh}11{{NjA`FhAjNlJjNnNlB`}Ob}{{NjA`AjNlJjNnB`}Ob}{{NjA`ObFh}Fh}{{NjA`Ob}Fh}5{{NjA`ObDb}Fh}{{NjA`ObDbDb}Fh}{{NjA`ObO`O`Db}Fh}```````{{NjA`AjFhAj}Bb}0{{NjA`GjGjGjFh}Bb}{{NjA`BbBbBbB`}Bb}22{{NjA`AjAjFhOj}Bb}{{NjA`AjFhOl}Bb}{{NjA`BbDbFhFh}Fh}{{NjA`BbDbFhFhFh}Fh}{{NjA`BbOnO`FhB`}Fh}{{NjA`BbFh}Fh}{{NjA`BbOh}Fh}{{NjA`A`}Fh}{{NjA`BbO`Fh}Bb}{{NjA`BbAb}Fh}{{NjA`BbDb}Fh}{{NjA`AjOh}Bb}{{NjA`AjB`Nn}Oh}{{NjA`FhFh}Fh}{{NjA`GdGd}Oh}{{NjA`B`B`}Oh}{{NjA`B`B`Nn}Oh}{{NjA`FhFhAd}Fh}{{NjA`AjAj}Fh}{{NjA`BbB`OnFh}Fh}{{NjA`BbOnB`}Fh}2{{NjA`AjB`Fh}Bb}{{NjA`BbNn}Fh}{{A`Bb}Fh}{{NjA`Bb}Fh}{{NjA`AjFhFh}Bb}2{{NjA`BbB`FhFhFhBb}Bb}{{NjA`FhFhO`O`O`O`}Oh}{{NjA`AjBbAjAf}Bb}{{NjA`AjBbBbAj}Bb}{{NjA`BbAf}Fh}{{NjA`O`O`Fh}Fh}{{NjA`DbDbb}Fh}{{NjA`AhAhb}Fh}{{NjA`AjBbFhAj}Bb}{{NjA`BbFh}Bb}{{NjA`AjAj}Bb}{{NjA`BbAfFh}Fh}{{NjA`BbFh}Aj}{{NjA`BbBb}Fh}{{NjA`Bb}Bb}{{NjA`AjAj}Fh}0{{NjA`AjBb}Fh}{{NjA`BbBbFh}Bb}0{{NjA`Aj}O`}{{NjA`FhO`Aj}Bn}{{NjA`AjFhFhAj}Bb}0{{NjA`AlAn}AA`}{{NjA`AA`AlAn}Bn}{{NjA`Aj}Bn}{{NjA`BbB`}Fh}000{{NjA`BbB`}B`}{{NjA`Bb}B`}{{NjA`Fh}B`}1{{NjA`B`}B`}{{NjA`B`Db}B`}2{{NjA`AjFhFhFh}Bb}{{NjA`BbBbFh}Fh}{{NjA`BbFh}Bb}{{NjA`DbO`AjB`JjNnAj}Bb}{{NjA`Db}Fh}{{NjA`Bb}Fh}{{NjA`FhO`B`Fh}Bb}{{NjA`Bb}Bb}0{{NjA`FhFh}AAb}{{NjA`B`B`}AAb}{{NjA`AjDb}Fh}3{{NjA`AjBb}Bn}{{NjA`AjBb}Fh}{{NjA`AjJj}Bb}{{NjA`BbOn}Fh}{{NjA`BbB`FhFhFhBb}Bb}{{NjA`AjB`Fh}Bb}{{NjA`BbB`Bb}Bb}{{NjA`BbB`O`O`}Bb}{{NjA`FhFhFh}Bb}{{NjA`FhFhB`Db}Bb}{{NjA`AAdB`O`Db}Bb}>{{NjA`BbB`O`}Bb}{{NjA`BbB`}Bb}{{NjA`DbO`B`O`Db}Bb}{{NjA`Bb}Bb}{{NjA`BbB`OhB`FhO`AjBb}Fh}{{NjA`B`Fh}AAf}{{NjA`}Fh}<{{NjA`}AAh}0{{NjA`}Bb}{{NjA`BbGj}Gj}{{NjA`AjO`}On}{{NjA`Aj}Fh}{{NjA`AAj}Bn}{{NjA`BbBb}Bb}{{NjA`FhO`}Bb}{{NjA`BbAAl}Fh}{{NjA`BbO`Fh}Fh}{{NjA`DbB`}Bn}0{{NjA`BbFh}Bb}?0{{NjA`AjBb}Bb}{{NjA`AjBbFhAj}Bb}{{NjA`AAn}Bn}{{NjA`AAnAjFh}Bn}9{{NjA`BbBbAj}Bb}{{NjA`AjFhAj}Bb}{{NjA`AjFhFhAj}Bb}1{{NjA`Aj}B`}{{NjA`AjAj}Fh}{{NjA`FhFh}Fh}{{NjA`O`Fh}O`}{{NjA`AB`O`FhAj}Bb}{{NjA`GdFhO`FhO`OnFhFhBb}Bb}{{NjA`AjJj}Bb}{{NjA`Bb}Bb}{{NjA`GdB`FhO`O`OnFhBb}Bb}{{NjA`AjJjB`Fh}Bb}{{NjA`AjAAlJj}Bb}{{NjA`Aj}Bb}{{NjA`BbFh}Fh}{{NjA`Aj}Db}{{NjA`BbJj}Fh}{{NjA`BbAj}Fh}<{{NjA`AjAjFhOj}Fh}{{NjA`AjFhFhAj}Bb}{{NjA`B`B`}B`}{{NjA`AjFhAj}Bb}{{NjA`AjBbBb}Bb}{{NjA`AjBbBbAf}Bb}{{NjA`Bb}Fh}{{NjA`Bb}O`}{{NjA`AjJj}Bb}{{NjA`B`FhAd}Fh}{{NjA`B`FhAAf}Fh}{{NjA`B`}Fh}{{NjA`AjOh}Bn}{{NjA`A`}Fh}{{NjA`AjBbFh}Bb}{{NjA`AjBb}Bb}{{NjA`AjAAlFhJj}Bb}{{NjA`Aj}Fh}{{NjA`O`AjO`B`}B`}{{NjA`Aj}Bb}{{NjA`AjFhAj}Bb}{{NjA`OnB`Bb}Bb}{{NjA`BbOn}Bn}{{NjA`Bb}Bb}{{NjA`FhAj}Ad}{{NjA`AjBbABbBb}Bb}{{NjA`BbOn}Fh}{{NjA`BbOj}Fh}{{NjA`AjBb}Fh}{{NjA`Bb}Bn}{{NjA`AjB`FhBb}Fh}{{NjA`Bb}Fh}{{NjA`BbFh}Bn}{{NjA`AjAj}Fh}0{{NjA`Bb}O`}{{NjA`AjFhOl}Fh}{{NjA`BbOl}Fh}{{NjA`Aj}Bb}{{NjA`AjFhFhAjFh}Bb}{{NjA`AjFhFhAj}Bb}{{NjA`AjFhFh}Bb}{{NjA`AjBbFhAjAf}Bb}{{NjA`AlABd}AA`}{{NjA`ABfAlABd}Bn}{{NjA`AjAAdDbDb}Fh}7{{NjA`AjJj}Bb}{{NjA`AjFhFhFhFhAj}Bb}{{NjA`AjAAl}Bb}`{{NjA`Fh}Bb}{{NjA`FhFh}Fh}{{NjA`AjFh}Bn}{{NjA`Fh}Fh}{{NjA`AjB`Gd}Bb}{{NjA`BbBbBb}Bb}{{NjA`Aj}Fh}{{NjA`Aj}Db}{{NjA`FhO`B`Fh}Bb}````````{{NjA`On}Bn}{{NjA`b}On}{{NjA`bb}On}{{NjA`Onb}On}{{NjA`ABhOnOn}ABh}`````````````````````````{{NjA`}On}{{NjA`Fh}Bn}{ce{}{}}000{cc{}}011{{NjA`ABj}Gd}22{cD`{}}0{c{{Ef{e}}}{}{}}044{c{{Dh{e}}}{}{}}000{cGb{}}0````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````6666666666666666666666666666666666````````{AjAj}{B`B`}{ABlABl}{AAjAAj}{ABnABn}{AAlAAl}{AbAb}{AC`AC`}{ACbACb}{ObOb}{AB`AB`}{A`A`}{ACdACd}{AAnAAn}{ACfACf}{AChACh}{ACjACj}`{{ce}Bn{}{}}0000000000000000``````````````````````````````````````````````````````{{ObDd}Dl}`{cc{}}0000000000000000{ce{}{}}0000000000000000`````````00000000000000000{cD`{}}0000000000000000``````````````````````````````````````````````````````````````````````````````11111111111111111{c{{Ef{e}}}{}{}}000000000000000022222222222222222``{c{{Dh{e}}}{}{}}000000000000000000000000000000000``{cGb{}}0000000000000000`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````444444444444444444444444444444444444{AClACl}{ACnACn}{AD`AD`}{JjJj}{AdAd}{OlOl}{ABbABb}{AlAl}{ADbADb}{OjOj}{NnNn}{AfAf}{AnAn}{ABdABd}{AjAj}{ADdADd}{ADfADf}{ADhADh}{{ce}Bn{}{}}00000000000000000{{ADbADb}C`}``{{JjJj}D`}{{AdAd}D`}{{OlOl}D`}{{ABbABb}D`}{{AlAl}D`}{{ADbADb}D`}{{OjOj}D`}{{NnNn}D`}{{AfAf}D`}{{ADhADh}D`}{{AClDd}Dl}{{ACnDd}Dl}{{AD`Dd}Dl}{{JjDd}Dl}{{AdDd}Dl}{{OlDd}Dl}{{ABbDd}Dl}{{AlDd}Dl}{{ADbDd}Dl}{{OjDd}Dl}{{NnDd}Dl}{{AnDd}Dl}{{ABdDd}Dl}{{AjDd}Dl}{{ADdDd}Dl}{{ADfDd}Dl}{{ADhDd}Dl}{cc{}}00000000000000000{ce{}{}}00000000000000000{{Jjc}BnEn}{{Adc}BnEn}{{Olc}BnEn}{{ABbc}BnEn}{{Alc}BnEn}{{ADbc}BnEn}{{Ojc}BnEn}{{Nnc}BnEn}{{Afc}BnEn}{{ADhc}BnEn}```````::::::::::::::::::{cD`{}}00000000000000000`````````````````````````````````````````````{{ADbADb}{{Ef{C`}}}}````````````<<<<<<<<<<<<<<<<<<{c{{Ef{e}}}{}{}}00000000000000000=================={c{{Dh{e}}}{}{}}00000000000000000000000000000000000{cGb{}}00000000000000000`````{{ADjA`DbO`O`On}Bn}0{{ADjA`ACbNnAjBbB`}Fh}1111{{ADjA`ADlOnDbFhFhFhFhDbDbFh}Bb}{{ADjA`ADlOnDbFhFhFhFhDbDbFhDb}Bb}{{ADjA`ACbOnDbFhFhFhFhDbDbFhDbDb}Fh}44{{ADjA`ACbBbBbAj}Fh}{{ADjA`DbFhFhBb}Fh}66666{{ADjA`ACbB`ADlB`On}Fh}{{ADjA`ACbFhADlFhOn}Fh}{{ADjA`ACbADlFhADl}Fh}{{ADjA`Onb}Fh}{{ADjA`ACbNnAjB`}Fh}{{ADjA`FhBbFh}Fh}{{ADjA`}Bn}============={{ADjA`}Fh}>{{ADjA`FhBbFhFh}Fh}{ce{}{}}0{cc{}}11{cD`{}}{c{{Ef{e}}}{}{}}3{c{{Dh{e}}}{}{}}0{cGb{}}``````{Anb}00{AhAj}{AnB`}{An{{Bf{l}}}}{AnBh}00000{Ah{{Bf{l}}}}{AnDb}00{{AnCl}{{Cj{{El{{Bf{l}}b}}}}}}{AnD`}000000006000{AhD`}00000000{{AnAn}D`}111{An{{Ef{D`}}}}00;;;777{Ahb}00{An{{Ef{{Fb{Cl}}}}}}===111{AnFh}00{An{{Fb{b}}}}{Ah{{h{b}}}}00{Ah{{h{Fj}}}}00{An{{Bf{Gf}}}}","c":[126,183,184,244,248,250,347,366,382,386,388,390,394,397,398,400,417,432,462,538,540],"p":[[1,"usize"],[1,"array"],[5,"Dim",2396],[1,"slice"],[5,"IxDynImpl",2397],[5,"PyArrayDescr",0],[5,"FromVecError",0],[5,"Python",2398],[8,"PyObject",2399],[5,"NotContiguousError",0],[6,"BorrowError",0],[10,"PyUntypedArrayMethods",2317],[5,"PyArrayObject",1249],[5,"PyUntypedArray",0],[10,"PyArrayDescrMethods",2317],[5,"PyArray_Descr",1249],[5,"PyObject",2400],[5,"PyAny",2401],[5,"Bound",2399],[1,"u8"],[5,"PyFixedString",0],[5,"PyFixedUnicode",0],[1,"unit"],[6,"Ordering",2402],[5,"PyArrayLike",0],[10,"Element",0],[10,"Dimension",2403],[5,"PyArray",336],[8,"PyResult",2404],[1,"str"],[8,"IxDyn",0],[1,"bool"],[8,"c_char",2405],[5,"Formatter",2406],[5,"Error",2406],[6,"Result",2407],[5,"TypeMustMatch",0],[8,"Result",2406],[5,"AllowTypeChange",0],[10,"Debug",2406],[8,"Py_UCS1",2408],[8,"Py_UCS4",2408],[6,"Option",2409],[5,"Borrowed",2399],[5,"PyErr",2404],[1,"tuple"],[10,"Hasher",2410],[5,"Py",2399],[5,"Vec",2411],[10,"ToPyObject",2412],[10,"Sized",2413],[8,"c_int",2405],[1,"isize"],[5,"String",2414],[5,"PyDowncastError",2404],[10,"Into",2415],[5,"TypeId",2416],[5,"PyTypeObject",2417],[5,"PyType",2418],[8,"Ix1",0],[1,"f64"],[10,"AsPrimitive",2419],[10,"PyArrayMethods",336],[8,"ArrayView",2420],[8,"ArrayViewMut",2420],[8,"RawArrayView",2420],[8,"RawArrayViewMut",2420],[5,"ArrayBase",2420],[17,"Elem"],[10,"Data",2421],[17,"Item"],[10,"IntoIterator",2422],[8,"Array",2420],[8,"Ix2",0],[8,"Ix3",0],[17,"Dim"],[10,"NpyIndex",530],[5,"PyModule",2423],[8,"Ix0",2424],[10,"Copy",2413],[10,"PyArray0Methods",336],[10,"IntoDimension",2425],[5,"PyReadonlyArray",464],[5,"PyReadwriteArray",464],[6,"NPY_ORDER",1781],[8,"MatrixView",2426],[10,"Scalar",2427],[10,"Dim",2428],[8,"MatrixViewMut",2426],[5,"Dyn",2428],[8,"DMatrixView",2429],[8,"DMatrixViewMut",2429],[10,"IntoPyArray",530],[10,"ToPyArray",530],[5,"Datetime",542],[10,"Clone",2430],[10,"Unit",542],[5,"Timedelta",542],[10,"Ord",2402],[10,"PartialEq",2402],[1,"i64"],[10,"Hash",2410],[10,"PartialOrd",2402],[5,"Years",590],[5,"Months",590],[5,"Weeks",590],[5,"Days",590],[5,"Hours",590],[5,"Minutes",590],[5,"Seconds",590],[5,"Milliseconds",590],[5,"Microseconds",590],[5,"Nanoseconds",590],[5,"Picoseconds",590],[5,"Femtoseconds",590],[5,"Attoseconds",590],[5,"PyArrayAPI",855],[8,"npy_uint32",1781],[6,"NPY_CASTING",1781],[8,"npy_intp",1781],[5,"NpyIter",1249],[8,"NpyIter_GetMultiIndexFunc",1249],[8,"NpyIter_IterNextFunc",1249],[8,"npy_bool",1781],[6,"NPY_SELECTKIND",1781],[6,"NPY_SORTKIND",1781],[8,"c_void",2405],[5,"PyArrayMultiIterObject",1249],[5,"PyArray_Chunk",1249],[6,"NPY_SCALARKIND",1781],[6,"NPY_CLIPMODE",1781],[8,"npy_ucs4",1781],[5,"npy_stride_sort_item",1781],[6,"NPY_DATETIMEUNIT",1781],[5,"npy_datetimestruct",1781],[8,"npy_datetime",1781],[8,"c_uchar",2405],[6,"FILE",2431],[8,"PyArray_VectorUnaryFunc",1249],[8,"c_uint",2405],[5,"PyArray_ArrFuncs",1249],[5,"PyArray_Dims",1249],[5,"PyArrayMapIterObject",1249],[5,"PyArrayIterObject",1249],[6,"NPY_SEARCHSIDE",1781],[5,"npy_timedeltastruct",1781],[8,"npy_timedelta",1781],[8,"PyDataMem_EventHookFunc",1249],[6,"NpyTypes",855],[5,"PyArray_ArrayDescr",1249],[5,"PyArrayFlagsObject",1249],[5,"PyArrayInterface",1249],[5,"PyUFuncObject",1249],[5,"PyArrayNeighborhoodIterObject",1249],[5,"NpyAuxData",1249],[5,"PyArray_DatetimeMetaData",1249],[5,"PyArray_DatetimeDTypeMetaData",1249],[5,"npy_cdouble",1781],[5,"npy_cfloat",1781],[5,"npy_clongdouble",1781],[6,"NPY_TYPES",1781],[6,"NPY_TYPECHAR",1781],[6,"NPY_TYPEKINDCHAR",1781],[6,"NPY_BYTEORDER_CHAR",1781],[5,"PyUFuncAPI",2262],[8,"PyUFuncGenericFunction",1249],[8,"Complex32",0],[8,"Complex64",0],[8,"PyArray_GetItemFunc",1249],[8,"PyArray_SetItemFunc",1249],[8,"PyArray_CopySwapNFunc",1249],[8,"PyArray_CopySwapFunc",1249],[8,"PyArray_NonzeroFunc",1249],[8,"PyArray_CompareFunc",1249],[8,"PyArray_ArgFunc",1249],[8,"PyArray_DotFunc",1249],[8,"PyArray_ScanFunc",1249],[8,"PyArray_FromStrFunc",1249],[8,"PyArray_FillFunc",1249],[8,"PyArray_SortFunc",1249],[8,"PyArray_ArgSortFunc",1249],[8,"PyArray_PartitionFunc",1249],[8,"PyArray_ArgPartitionFunc",1249],[8,"PyArray_FillWithScalarFunc",1249],[8,"PyArray_ScalarKindFunc",1249],[8,"PyArray_FastClipFunc",1249],[8,"PyArray_FastPutmaskFunc",1249],[8,"PyArray_FastTakeFunc",1249],[8,"PyUFunc_MaskedStridedInnerLoopFunc",1249],[8,"PyUFunc_TypeResolutionFunc",1249],[8,"PyUFunc_LegacyInnerLoopSelectionFunc",1249],[8,"PyUFunc_MaskedInnerLoopSelectionFunc",1249],[8,"npy_iter_get_dataptr_t",1249],[8,"NpyAuxData_FreeFunc",1249],[8,"NpyAuxData_CloneFunc",1249],[8,"npy_complex128",1781],[8,"npy_complex64",1781],[8,"npy_complex256",1781]],"b":[[138,"impl-Debug-for-PyArrayDescr"],[139,"impl-Display-for-PyArrayDescr"],[140,"impl-Debug-for-PyUntypedArray"],[141,"impl-Display-for-PyUntypedArray"],[145,"impl-Debug-for-FromVecError"],[146,"impl-Display-for-FromVecError"],[147,"impl-Debug-for-NotContiguousError"],[148,"impl-Display-for-NotContiguousError"],[149,"impl-Debug-for-BorrowError"],[150,"impl-Display-for-BorrowError"],[151,"impl-Debug-for-PyFixedString%3CN%3E"],[152,"impl-Display-for-PyFixedString%3CN%3E"],[153,"impl-Display-for-PyFixedUnicode%3CN%3E"],[154,"impl-Debug-for-PyFixedUnicode%3CN%3E"],[213,"impl-IntoPy%3CPy%3CPyUntypedArray%3E%3E-for-%26PyUntypedArray"],[214,"impl-IntoPy%3CPy%3CPyAny%3E%3E-for-PyUntypedArray"],[379,"impl-Debug-for-PyArray%3CT,+D%3E"],[380,"impl-Display-for-PyArray%3CT,+D%3E"],[411,"impl-IntoPy%3CPy%3CPyAny%3E%3E-for-PyArray%3CT,+D%3E"],[412,"impl-IntoPy%3CPy%3CPyArray%3CT,+D%3E%3E%3E-for-%26PyArray%3CT,+D%3E"],[484,"impl-PyReadonlyArray%3C\'py,+N,+Dim%3C%5Busize;+2%5D%3E%3E"],[485,"impl-PyReadonlyArray%3C\'py,+N,+Dim%3C%5Busize;+1%5D%3E%3E"],[486,"impl-PyReadwriteArray%3C\'py,+N,+Dim%3C%5Busize;+2%5D%3E%3E"],[487,"impl-PyReadwriteArray%3C\'py,+N,+Dim%3C%5Busize;+1%5D%3E%3E"]],"a":{"nalgebra":[440,441,442,443,484,485,486,487,522,523],"pyarray":[338,346],"pyarray0":[338],"pyarraydescr":[38,2319],"pyuntypedarray":[71,2321]}}]\ ]')); if (typeof exports !== 'undefined') exports.searchIndex = searchIndex; else if (window.initSearch) window.initSearch(searchIndex); diff --git a/settings.html b/settings.html index 37fbe2fef..1ff94558f 100644 --- a/settings.html +++ b/settings.html @@ -1,2 +1,2 @@ -Settings +Settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/src/numpy/array.rs.html b/src/numpy/array.rs.html index 42793bdc9..e4e981c99 100644 --- a/src/numpy/array.rs.html +++ b/src/numpy/array.rs.html @@ -1,5 +1,6 @@ -array.rs - source -
    1
    +array.rs - source
    +    
    //! Safe interface for NumPy's [N-dimensional arrays][ndarray]
     //!
     //! [ndarray]: https://numpy.org/doc/stable/reference/arrays.ndarray.html
    @@ -3118,6 +3179,18 @@
             self.as_borrowed().to_vec()
         }
     
    +    /// Deprecated form of [`PyArray<T, D>::from_array_bound`]
    +    #[deprecated(
    +        since = "0.21.0",
    +        note = "will be replaced by PyArray::from_array_bound in the future"
    +    )]
    +    pub fn from_array<'py, S>(py: Python<'py>, arr: &ArrayBase<S, D>) -> &'py Self
    +    where
    +        S: Data<Elem = T>,
    +    {
    +        Self::from_array_bound(py, arr).into_gil_ref()
    +    }
    +
         /// Construct a NumPy array from a [`ndarray::ArrayBase`].
         ///
         /// This method allocates memory in Python's heap via the NumPy API,
    @@ -3126,21 +3199,21 @@
         /// # Example
         ///
         /// ```
    -    /// use numpy::PyArray;
    +    /// use numpy::{PyArray, PyArrayMethods};
         /// use ndarray::array;
         /// use pyo3::Python;
         ///
         /// Python::with_gil(|py| {
    -    ///     let pyarray = PyArray::from_array(py, &array![[1, 2], [3, 4]]);
    +    ///     let pyarray = PyArray::from_array_bound(py, &array![[1, 2], [3, 4]]);
         ///
         ///     assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);
         /// });
         /// ```
    -    pub fn from_array<'py, S>(py: Python<'py>, arr: &ArrayBase<S, D>) -> &'py Self
    -    where
    +    pub fn from_array_bound<'py, S>(py: Python<'py>, arr: &ArrayBase<S, D>) -> Bound<'py, Self>
    +    where
             S: Data<Elem = T>,
         {
    -        ToPyArray::to_pyarray(arr, py)
    +        ToPyArray::to_pyarray_bound(arr, py)
         }
     
         /// Get an immutable borrow of the NumPy array
    @@ -3402,23 +3475,45 @@
             }
         }
     
    +    /// Deprecated form of [`PyArray<T, Ix1>::from_vec_bound`]
    +    #[deprecated(
    +        since = "0.21.0",
    +        note = "will be replaced by `PyArray::from_vec_bound` in the future"
    +    )]
    +    #[inline(always)]
    +    pub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> &'py Self {
    +        Self::from_vec_bound(py, vec).into_gil_ref()
    +    }
    +
         /// Construct a one-dimensional array from a [`Vec<T>`][Vec].
         ///
         /// # Example
         ///
         /// ```
    -    /// use numpy::PyArray;
    +    /// use numpy::{PyArray, PyArrayMethods};
         /// use pyo3::Python;
         ///
         /// Python::with_gil(|py| {
         ///     let vec = vec![1, 2, 3, 4, 5];
    -    ///     let pyarray = PyArray::from_vec(py, vec);
    +    ///     let pyarray = PyArray::from_vec_bound(py, vec);
         ///     assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);
         /// });
         /// ```
         #[inline(always)]
    -    pub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> &'py Self {
    -        vec.into_pyarray(py)
    +    pub fn from_vec_bound<'py>(py: Python<'py>, vec: Vec<T>) -> Bound<'py, Self> {
    +        vec.into_pyarray_bound(py)
    +    }
    +
    +    /// Deprecated form of [`PyArray<T, Ix1>::from_iter_bound`]
    +    #[deprecated(
    +        since = "0.21.0",
    +        note = "will be replaced by PyArray::from_iter_bound in the future"
    +    )]
    +    pub fn from_iter<'py, I>(py: Python<'py>, iter: I) -> &'py Self
    +    where
    +        I: IntoIterator<Item = T>,
    +    {
    +        Self::from_iter_bound(py, iter).into_gil_ref()
         }
     
         /// Construct a one-dimensional array from an [`Iterator`].
    @@ -3429,24 +3524,33 @@
         /// # Example
         ///
         /// ```
    -    /// use numpy::PyArray;
    +    /// use numpy::{PyArray, PyArrayMethods};
         /// use pyo3::Python;
         ///
         /// Python::with_gil(|py| {
    -    ///     let pyarray = PyArray::from_iter(py, "abcde".chars().map(u32::from));
    +    ///     let pyarray = PyArray::from_iter_bound(py, "abcde".chars().map(u32::from));
         ///     assert_eq!(pyarray.readonly().as_slice().unwrap(), &[97, 98, 99, 100, 101]);
         /// });
         /// ```
    -    pub fn from_iter<'py, I>(py: Python<'py>, iter: I) -> &'py Self
    -    where
    +    pub fn from_iter_bound<I>(py: Python<'_>, iter: I) -> Bound<'_, Self>
    +    where
             I: IntoIterator<Item = T>,
         {
             let data = iter.into_iter().collect::<Vec<_>>();
    -        data.into_pyarray(py)
    +        data.into_pyarray_bound(py)
         }
     }
     
     impl<T: Element> PyArray<T, Ix2> {
    +    /// Deprecated form of [`PyArray<T, Ix2>::from_vec2_bound`]
    +    #[deprecated(
    +        since = "0.21.0",
    +        note = "will be replaced by `PyArray::from_vec2_bound` in the future"
    +    )]
    +    pub fn from_vec2<'py>(py: Python<'py>, v: &[Vec<T>]) -> Result<&'py Self, FromVecError> {
    +        Self::from_vec2_bound(py, v).map(Bound::into_gil_ref)
    +    }
    +
         /// Construct a two-dimension array from a [`Vec<Vec<T>>`][Vec].
         ///
         /// This function checks all dimensions of the inner vectors and returns
    @@ -3455,20 +3559,23 @@
         /// # Example
         ///
         /// ```
    -    /// use numpy::PyArray;
    +    /// use numpy::{PyArray, PyArrayMethods};
         /// use pyo3::Python;
         /// use ndarray::array;
         ///
         /// Python::with_gil(|py| {
         ///     let vec2 = vec![vec![11, 12], vec![21, 22]];
    -    ///     let pyarray = PyArray::from_vec2(py, &vec2).unwrap();
    +    ///     let pyarray = PyArray::from_vec2_bound(py, &vec2).unwrap();
         ///     assert_eq!(pyarray.readonly().as_array(), array![[11, 12], [21, 22]]);
         ///
         ///     let ragged_vec2 = vec![vec![11, 12], vec![21]];
    -    ///     assert!(PyArray::from_vec2(py, &ragged_vec2).is_err());
    +    ///     assert!(PyArray::from_vec2_bound(py, &ragged_vec2).is_err());
         /// });
         /// ```
    -    pub fn from_vec2<'py>(py: Python<'py>, v: &[Vec<T>]) -> Result<&'py Self, FromVecError> {
    +    pub fn from_vec2_bound<'py>(
    +        py: Python<'py>,
    +        v: &[Vec<T>],
    +    ) -> Result<Bound<'py, Self>, FromVecError> {
             let len2 = v.first().map_or(0, |v| v.len());
             let dims = [v.len(), len2];
             // SAFETY: The result of `Self::new` is always safe to drop.
    @@ -3482,12 +3589,21 @@
                     }
                     clone_elements(v, &mut data_ptr);
                 }
    -            Ok(array.into_gil_ref())
    +            Ok(array)
             }
         }
     }
     
     impl<T: Element> PyArray<T, Ix3> {
    +    /// Deprecated form of [`PyArray<T, Ix3>::from_vec3_bound`]
    +    #[deprecated(
    +        since = "0.21.0",
    +        note = "will be replaced by `PyArray::from_vec3_bound` in the future"
    +    )]
    +    pub fn from_vec3<'py>(py: Python<'py>, v: &[Vec<Vec<T>>]) -> Result<&'py Self, FromVecError> {
    +        Self::from_vec3_bound(py, v).map(Bound::into_gil_ref)
    +    }
    +
         /// Construct a three-dimensional array from a [`Vec<Vec<Vec<T>>>`][Vec].
         ///
         /// This function checks all dimensions of the inner vectors and returns
    @@ -3496,7 +3612,7 @@
         /// # Example
         ///
         /// ```
    -    /// use numpy::PyArray;
    +    /// use numpy::{PyArray, PyArrayMethods};
         /// use pyo3::Python;
         /// use ndarray::array;
         ///
    @@ -3505,7 +3621,7 @@
         ///         vec![vec![111, 112], vec![121, 122]],
         ///         vec![vec![211, 212], vec![221, 222]],
         ///     ];
    -    ///     let pyarray = PyArray::from_vec3(py, &vec3).unwrap();
    +    ///     let pyarray = PyArray::from_vec3_bound(py, &vec3).unwrap();
         ///     assert_eq!(
         ///         pyarray.readonly().as_array(),
         ///         array![[[111, 112], [121, 122]], [[211, 212], [221, 222]]]
    @@ -3515,10 +3631,13 @@
         ///         vec![vec![111, 112], vec![121, 122]],
         ///         vec![vec![211], vec![221, 222]],
         ///     ];
    -    ///     assert!(PyArray::from_vec3(py, &ragged_vec3).is_err());
    +    ///     assert!(PyArray::from_vec3_bound(py, &ragged_vec3).is_err());
         /// });
         /// ```
    -    pub fn from_vec3<'py>(py: Python<'py>, v: &[Vec<Vec<T>>]) -> Result<&'py Self, FromVecError> {
    +    pub fn from_vec3_bound<'py>(
    +        py: Python<'py>,
    +        v: &[Vec<Vec<T>>],
    +    ) -> Result<Bound<'py, Self>, FromVecError> {
             let len2 = v.first().map_or(0, |v| v.len());
             let len3 = v.first().map_or(0, |v| v.first().map_or(0, |v| v.len()));
             let dims = [v.len(), len2, len3];
    @@ -3539,7 +3658,7 @@
                         clone_elements(v, &mut data_ptr);
                     }
                 }
    -            Ok(array.into_gil_ref())
    +            Ok(array)
             }
         }
     }
    @@ -3603,13 +3722,14 @@
         /// # Example
         ///
         /// ```
    +    /// use numpy::prelude::*;
         /// use numpy::{npyffi::NPY_ORDER, PyArray};
         /// use pyo3::Python;
         /// use ndarray::array;
         ///
         /// Python::with_gil(|py| {
         ///     let array =
    -    ///         PyArray::from_iter(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
    +    ///         PyArray::from_iter_bound(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
         ///
         ///     assert_eq!(array.readonly().as_array(), array![[0, 3, 6], [1, 4, 7], [2, 5, 8]]);
         ///     assert!(array.is_fortran_contiguous());
    @@ -4145,13 +4265,14 @@
         /// # Example
         ///
         /// ```
    +    /// use numpy::prelude::*;
         /// use numpy::{npyffi::NPY_ORDER, PyArray};
         /// use pyo3::Python;
         /// use ndarray::array;
         ///
         /// Python::with_gil(|py| {
         ///     let array =
    -    ///         PyArray::from_iter(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
    +    ///         PyArray::from_iter_bound(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();
         ///
         ///     assert_eq!(array.readonly().as_array(), array![[0, 3, 6], [1, 4, 7], [2, 5, 8]]);
         ///     assert!(array.is_fortran_contiguous());
    @@ -4608,7 +4729,7 @@
         #[test]
         fn test_dyn_to_owned_array() {
             Python::with_gil(|py| {
    -            let array = PyArray::from_vec2(py, &[vec![1, 2], vec![3, 4]])
    +            let array = PyArray::from_vec2_bound(py, &[vec![1, 2], vec![3, 4]])
                     .unwrap()
                     .to_dyn()
                     .to_owned_array();
    diff --git a/src/numpy/array_like.rs.html b/src/numpy/array_like.rs.html
    index a11c430a9..9832e32c9 100644
    --- a/src/numpy/array_like.rs.html
    +++ b/src/numpy/array_like.rs.html
    @@ -1,5 +1,6 @@
    -array_like.rs - source
    -    
    1
    +array_like.rs - source
    +    
    1
     2
     3
     4
    @@ -361,7 +362,7 @@
                     let array = Array1::from(vec)
                         .into_dimensionality()
                         .expect("D being compatible to Ix1")
    -                    .into_pyarray(py)
    +                    .into_pyarray_bound(py)
                         .readonly();
                     return Ok(Self(array, PhantomData));
                 }
    diff --git a/src/numpy/borrow/mod.rs.html b/src/numpy/borrow/mod.rs.html
    index 8e7691ac6..e03197467 100644
    --- a/src/numpy/borrow/mod.rs.html
    +++ b/src/numpy/borrow/mod.rs.html
    @@ -1,5 +1,6 @@
    -mod.rs - source
    -    
    1
    +mod.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/borrow/shared.rs.html b/src/numpy/borrow/shared.rs.html
    index 5b3cf138a..b27e43115 100644
    --- a/src/numpy/borrow/shared.rs.html
    +++ b/src/numpy/borrow/shared.rs.html
    @@ -1,5 +1,6 @@
    -shared.rs - source
    -    
    1
    +shared.rs - source
    +    
    1
     2
     3
     4
    @@ -984,6 +985,12 @@
     983
     984
     985
    +986
    +987
    +988
    +989
    +990
    +991
     
    use std::collections::hash_map::Entry;
     use std::ffi::{c_void, CString};
     use std::mem::forget;
    @@ -1463,18 +1470,20 @@
         #[test]
         fn with_base_object() {
             Python::with_gil(|py| {
    -            let array = Array::<f64, _>::zeros((1, 2, 3)).into_pyarray(py);
    +            let array = Array::<f64, _>::zeros((1, 2, 3)).into_pyarray_bound(py);
     
                 let base = unsafe { (*array.as_array_ptr()).base };
                 assert!(!base.is_null());
     
                 let base_address = base_address(py, array.as_array_ptr());
    -            assert_ne!(base_address, array as *const _ as *mut c_void);
    -            assert_eq!(base_address, base as *mut c_void);
    +            assert_ne!(base_address, array.as_ptr().cast());
    +            assert_eq!(base_address, base.cast::<c_void>());
     
                 let data_range = data_range(array.as_array_ptr());
    -            assert_eq!(data_range.0, array.data() as *mut c_char);
    -            assert_eq!(data_range.1, unsafe { array.data().add(6) } as *mut c_char);
    +            assert_eq!(data_range.0, array.data().cast::<c_char>());
    +            assert_eq!(data_range.1, unsafe {
    +                array.data().add(6).cast::<c_char>()
    +            });
             });
         }
     
    @@ -1510,33 +1519,35 @@
         #[test]
         fn view_with_base_object() {
             Python::with_gil(|py| {
    -            let array = Array::<f64, _>::zeros((1, 2, 3)).into_pyarray(py);
    +            let array = Array::<f64, _>::zeros((1, 2, 3)).into_pyarray_bound(py);
     
    -            let locals = [("array", array)].into_py_dict(py);
    +            let locals = [("array", &array)].into_py_dict_bound(py);
                 let view = py
    -                .eval("array[:,:,0]", None, Some(locals))
    +                .eval_bound("array[:,:,0]", None, Some(&locals))
                     .unwrap()
    -                .downcast::<PyArray2<f64>>()
    +                .downcast_into::<PyArray2<f64>>()
                     .unwrap();
                 assert_ne!(
    -                view as *const _ as *mut c_void,
    -                array as *const _ as *mut c_void
    +                view.as_ptr().cast::<c_void>(),
    +                array.as_ptr().cast::<c_void>(),
                 );
     
                 let base = unsafe { (*view.as_array_ptr()).base };
    -            assert_eq!(base as *mut c_void, array as *const _ as *mut c_void);
    +            assert_eq!(base.cast::<c_void>(), array.as_ptr().cast::<c_void>());
     
                 let base = unsafe { (*array.as_array_ptr()).base };
                 assert!(!base.is_null());
     
                 let base_address = base_address(py, view.as_array_ptr());
    -            assert_ne!(base_address, view as *const _ as *mut c_void);
    -            assert_ne!(base_address, array as *const _ as *mut c_void);
    -            assert_eq!(base_address, base as *mut c_void);
    +            assert_ne!(base_address, view.as_ptr().cast::<c_void>());
    +            assert_ne!(base_address, array.as_ptr().cast::<c_void>());
    +            assert_eq!(base_address, base.cast::<c_void>());
     
                 let data_range = data_range(view.as_array_ptr());
    -            assert_eq!(data_range.0, array.data() as *mut c_char);
    -            assert_eq!(data_range.1, unsafe { array.data().add(4) } as *mut c_char);
    +            assert_eq!(data_range.0, array.data().cast::<c_char>());
    +            assert_eq!(data_range.1, unsafe {
    +                array.data().add(4).cast::<c_char>()
    +            });
             });
         }
     
    @@ -1591,52 +1602,54 @@
         #[test]
         fn view_of_view_with_base_object() {
             Python::with_gil(|py| {
    -            let array = Array::<f64, _>::zeros((1, 2, 3)).into_pyarray(py);
    +            let array = Array::<f64, _>::zeros((1, 2, 3)).into_pyarray_bound(py);
     
    -            let locals = [("array", array)].into_py_dict(py);
    +            let locals = [("array", &array)].into_py_dict_bound(py);
                 let view1 = py
    -                .eval("array[:,:,0]", None, Some(locals))
    +                .eval_bound("array[:,:,0]", None, Some(&locals))
                     .unwrap()
    -                .downcast::<PyArray2<f64>>()
    +                .downcast_into::<PyArray2<f64>>()
                     .unwrap();
                 assert_ne!(
    -                view1 as *const _ as *mut c_void,
    -                array as *const _ as *mut c_void
    +                view1.as_ptr().cast::<c_void>(),
    +                array.as_ptr().cast::<c_void>(),
                 );
     
    -            let locals = [("view1", view1)].into_py_dict(py);
    +            let locals = [("view1", &view1)].into_py_dict_bound(py);
                 let view2 = py
    -                .eval("view1[:,0]", None, Some(locals))
    +                .eval_bound("view1[:,0]", None, Some(&locals))
                     .unwrap()
    -                .downcast::<PyArray1<f64>>()
    +                .downcast_into::<PyArray1<f64>>()
                     .unwrap();
                 assert_ne!(
    -                view2 as *const _ as *mut c_void,
    -                array as *const _ as *mut c_void
    +                view2.as_ptr().cast::<c_void>(),
    +                array.as_ptr().cast::<c_void>(),
                 );
                 assert_ne!(
    -                view2 as *const _ as *mut c_void,
    -                view1 as *const _ as *mut c_void
    +                view2.as_ptr().cast::<c_void>(),
    +                view1.as_ptr().cast::<c_void>(),
                 );
     
                 let base = unsafe { (*view2.as_array_ptr()).base };
    -            assert_eq!(base as *mut c_void, array as *const _ as *mut c_void);
    +            assert_eq!(base.cast::<c_void>(), array.as_ptr().cast::<c_void>());
     
                 let base = unsafe { (*view1.as_array_ptr()).base };
    -            assert_eq!(base as *mut c_void, array as *const _ as *mut c_void);
    +            assert_eq!(base.cast::<c_void>(), array.as_ptr().cast::<c_void>());
     
                 let base = unsafe { (*array.as_array_ptr()).base };
                 assert!(!base.is_null());
     
                 let base_address = base_address(py, view2.as_array_ptr());
    -            assert_ne!(base_address, view2 as *const _ as *mut c_void);
    -            assert_ne!(base_address, view1 as *const _ as *mut c_void);
    -            assert_ne!(base_address, array as *const _ as *mut c_void);
    -            assert_eq!(base_address, base as *mut c_void);
    +            assert_ne!(base_address, view2.as_ptr().cast::<c_void>());
    +            assert_ne!(base_address, view1.as_ptr().cast::<c_void>());
    +            assert_ne!(base_address, array.as_ptr().cast::<c_void>());
    +            assert_eq!(base_address, base.cast::<c_void>());
     
                 let data_range = data_range(view2.as_array_ptr());
    -            assert_eq!(data_range.0, array.data() as *mut c_char);
    -            assert_eq!(data_range.1, unsafe { array.data().add(1) } as *mut c_char);
    +            assert_eq!(data_range.0, array.data().cast::<c_char>());
    +            assert_eq!(data_range.1, unsafe {
    +                array.data().add(1).cast::<c_char>()
    +            });
             });
         }
     
    diff --git a/src/numpy/convert.rs.html b/src/numpy/convert.rs.html
    index 5a325249a..a9f7865cc 100644
    --- a/src/numpy/convert.rs.html
    +++ b/src/numpy/convert.rs.html
    @@ -1,5 +1,6 @@
    -convert.rs - source
    -    
    1
    +convert.rs - source
    +    
    1
     2
     3
     4
    @@ -331,12 +332,38 @@
     330
     331
     332
    +333
    +334
    +335
    +336
    +337
    +338
    +339
    +340
    +341
    +342
    +343
    +344
    +345
    +346
    +347
    +348
    +349
    +350
    +351
    +352
    +353
    +354
    +355
    +356
    +357
    +358
     
    //! Defines conversion traits between Rust types and NumPy data types.
     
     use std::{mem, os::raw::c_int, ptr};
     
     use ndarray::{ArrayBase, Data, Dim, Dimension, IntoDimension, Ix1, OwnedRepr};
    -use pyo3::Python;
    +use pyo3::{Bound, Python};
     
     use crate::array::{PyArray, PyArrayMethods};
     use crate::dtype::Element;
    @@ -353,11 +380,11 @@
     /// # Example
     ///
     /// ```
    -/// use numpy::{PyArray, IntoPyArray};
    +/// use numpy::{PyArray, IntoPyArray, PyArrayMethods};
     /// use pyo3::Python;
     ///
     /// Python::with_gil(|py| {
    -///     let py_array = vec![1, 2, 3].into_pyarray(py);
    +///     let py_array = vec![1, 2, 3].into_pyarray_bound(py);
     ///
     ///     assert_eq!(py_array.readonly().as_slice().unwrap(), &[1, 2, 3]);
     ///
    @@ -367,21 +394,34 @@
     ///     }
     /// });
     /// ```
    -pub trait IntoPyArray {
    +pub trait IntoPyArray: Sized {
         /// The element type of resulting array.
         type Item: Element;
         /// The dimension type of the resulting array.
         type Dim: Dimension;
     
    +    /// Deprecated form of [`IntoPyArray::into_pyarray_bound`]
    +    #[deprecated(
    +        since = "0.21.0",
    +        note = "will be replaced by `IntoPyArray::into_pyarray_bound` in the future"
    +    )]
    +    fn into_pyarray<'py>(self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    +        Self::into_pyarray_bound(self, py).into_gil_ref()
    +    }
    +
         /// Consumes `self` and moves its data into a NumPy array.
    -    fn into_pyarray<'py>(self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim>;
    +    fn into_pyarray_bound<'py>(self, py: Python<'py>)
    +        -> Bound<'py, PyArray<Self::Item, Self::Dim>>;
     }
     
     impl<T: Element> IntoPyArray for Box<[T]> {
         type Item = T;
         type Dim = Ix1;
     
    -    fn into_pyarray<'py>(self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    +    fn into_pyarray_bound<'py>(
    +        self,
    +        py: Python<'py>,
    +    ) -> Bound<'py, PyArray<Self::Item, Self::Dim>> {
             let container = PySliceContainer::from(self);
             let dims = Dim([container.len]);
             let strides = [mem::size_of::<T>() as npy_intp];
    @@ -389,9 +429,7 @@
             // to avoid unsound aliasing of Box<[T]> which is currently noalias,
             // c.f. https://github.com/rust-lang/unsafe-code-guidelines/issues/326
             let data_ptr = container.ptr as *mut T;
    -        unsafe {
    -            PyArray::from_raw_parts(py, dims, strides.as_ptr(), data_ptr, container).into_gil_ref()
    -        }
    +        unsafe { PyArray::from_raw_parts(py, dims, strides.as_ptr(), data_ptr, container) }
         }
     }
     
    @@ -399,7 +437,10 @@
         type Item = T;
         type Dim = Ix1;
     
    -    fn into_pyarray<'py>(mut self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    +    fn into_pyarray_bound<'py>(
    +        mut self,
    +        py: Python<'py>,
    +    ) -> Bound<'py, PyArray<Self::Item, Self::Dim>> {
             let dims = Dim([self.len()]);
             let strides = [mem::size_of::<T>() as npy_intp];
             let data_ptr = self.as_mut_ptr();
    @@ -411,7 +452,6 @@
                     data_ptr,
                     PySliceContainer::from(self),
                 )
    -            .into_gil_ref()
             }
         }
     }
    @@ -424,8 +464,11 @@
         type Item = A;
         type Dim = D;
     
    -    fn into_pyarray<'py>(self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    -        PyArray::from_owned_array_bound(py, self).into_gil_ref()
    +    fn into_pyarray_bound<'py>(
    +        self,
    +        py: Python<'py>,
    +    ) -> Bound<'py, PyArray<Self::Item, Self::Dim>> {
    +        PyArray::from_owned_array_bound(py, self)
         }
     }
     
    @@ -436,11 +479,11 @@
     /// # Examples
     ///
     /// ```
    -/// use numpy::{PyArray, ToPyArray};
    +/// use numpy::{PyArray, ToPyArray, PyArrayMethods};
     /// use pyo3::Python;
     ///
     /// Python::with_gil(|py| {
    -///     let py_array = vec![1, 2, 3].to_pyarray(py);
    +///     let py_array = vec![1, 2, 3].to_pyarray_bound(py);
     ///
     ///     assert_eq!(py_array.readonly().as_slice().unwrap(), &[1, 2, 3]);
     /// });
    @@ -449,13 +492,14 @@
     /// Due to copying the elments, this method converts non-contiguous arrays to C-order contiguous arrays.
     ///
     /// ```
    +/// use numpy::prelude::*;
     /// use numpy::{PyArray, ToPyArray};
     /// use ndarray::{arr3, s};
     /// use pyo3::Python;
     ///
     /// Python::with_gil(|py| {
     ///     let array = arr3(&[[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]]);
    -///     let py_array = array.slice(s![.., 0..1, ..]).to_pyarray(py);
    +///     let py_array = array.slice(s![.., 0..1, ..]).to_pyarray_bound(py);
     ///
     ///     assert_eq!(py_array.readonly().as_array(), arr3(&[[[1, 2, 3]], [[7, 8, 9]]]));
     ///     assert!(py_array.is_c_contiguous());
    @@ -467,16 +511,25 @@
         /// The dimension type of the resulting array.
         type Dim: Dimension;
     
    +    /// Deprecated form of [`ToPyArray::to_pyarray_bound`]
    +    #[deprecated(
    +        since = "0.21.0",
    +        note = "will be replaced by `ToPyArray::to_pyarray_bound` in the future"
    +    )]
    +    fn to_pyarray<'py>(&self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    +        Self::to_pyarray_bound(self, py).into_gil_ref()
    +    }
    +
         /// Copies the content pointed to by `&self` into a newly allocated NumPy array.
    -    fn to_pyarray<'py>(&self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim>;
    +    fn to_pyarray_bound<'py>(&self, py: Python<'py>) -> Bound<'py, PyArray<Self::Item, Self::Dim>>;
     }
     
     impl<T: Element> ToPyArray for [T] {
         type Item = T;
         type Dim = Ix1;
     
    -    fn to_pyarray<'py>(&self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    -        PyArray::from_slice_bound(py, self).into_gil_ref()
    +    fn to_pyarray_bound<'py>(&self, py: Python<'py>) -> Bound<'py, PyArray<Self::Item, Self::Dim>> {
    +        PyArray::from_slice_bound(py, self)
         }
     }
     
    @@ -489,7 +542,7 @@
         type Item = A;
         type Dim = D;
     
    -    fn to_pyarray<'py>(&self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    +    fn to_pyarray_bound<'py>(&self, py: Python<'py>) -> Bound<'py, PyArray<Self::Item, Self::Dim>> {
             let len = self.len();
             match self.order() {
                 Some(flag) if A::IS_COPY => {
    @@ -498,7 +551,7 @@
                     unsafe {
                         let array = PyArray::new_uninit(py, self.raw_dim(), strides.as_ptr(), flag);
                         ptr::copy_nonoverlapping(self.as_ptr(), array.data(), len);
    -                    array.into_gil_ref()
    +                    array
                     }
                 }
                 _ => {
    @@ -511,7 +564,7 @@
                             data_ptr.write(item.clone());
                             data_ptr = data_ptr.add(1);
                         }
    -                    array.into_gil_ref()
    +                    array
                     }
                 }
             }
    @@ -533,7 +586,7 @@
         /// matching the [memory layout][memory-layout] used by [`nalgebra`].
         ///
         /// [memory-layout]: https://nalgebra.org/docs/faq/#what-is-the-memory-layout-of-matrices
    -    fn to_pyarray<'py>(&self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
    +    fn to_pyarray_bound<'py>(&self, py: Python<'py>) -> Bound<'py, PyArray<Self::Item, Self::Dim>> {
             unsafe {
                 let array = PyArray::<N, _>::new_bound(py, (self.nrows(), self.ncols()), true);
                 let mut data_ptr = array.data();
    @@ -545,7 +598,7 @@
                         data_ptr = data_ptr.add(1);
                     }
                 }
    -            array.into_gil_ref()
    +            array
             }
         }
     }
    diff --git a/src/numpy/datetime.rs.html b/src/numpy/datetime.rs.html
    index aa08e4832..d52ff7a38 100644
    --- a/src/numpy/datetime.rs.html
    +++ b/src/numpy/datetime.rs.html
    @@ -1,5 +1,6 @@
    -datetime.rs - source
    -    
    1
    +datetime.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/dtype.rs.html b/src/numpy/dtype.rs.html
    index aa51e303a..399b38148 100644
    --- a/src/numpy/dtype.rs.html
    +++ b/src/numpy/dtype.rs.html
    @@ -1,5 +1,6 @@
    -dtype.rs - source
    -    
    1
    +dtype.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/error.rs.html b/src/numpy/error.rs.html
    index 215a03a64..eb188d2cf 100644
    --- a/src/numpy/error.rs.html
    +++ b/src/numpy/error.rs.html
    @@ -1,5 +1,6 @@
    -error.rs - source
    -    
    1
    +error.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/lib.rs.html b/src/numpy/lib.rs.html
    index c6242649e..5a4668ab9 100644
    --- a/src/numpy/lib.rs.html
    +++ b/src/numpy/lib.rs.html
    @@ -1,5 +1,6 @@
    -lib.rs - source
    -    
    1
    +lib.rs - source
    +    
    1
     2
     3
     4
    @@ -181,6 +182,10 @@
     180
     181
     182
    +183
    +184
    +185
    +186
     
    //! This crate provides Rust interfaces for [NumPy C APIs][c-api],
     //! especially for the [ndarray][ndarray] class.
     //!
    @@ -206,10 +211,10 @@
     //! ```
     //! use numpy::pyo3::Python;
     //! use numpy::ndarray::array;
    -//! use numpy::{ToPyArray, PyArray};
    +//! use numpy::{ToPyArray, PyArray, PyArrayMethods};
     //!
     //! Python::with_gil(|py| {
    -//!     let py_array = array![[1i64, 2], [3, 4]].to_pyarray(py);
    +//!     let py_array = array![[1i64, 2], [3, 4]].to_pyarray_bound(py);
     //!
     //!     assert_eq!(
     //!         py_array.readonly().as_array(),
    @@ -313,6 +318,7 @@
     /// ```
     pub mod prelude {
         pub use crate::array::{PyArray0Methods, PyArrayMethods};
    +    pub use crate::convert::{IntoPyArray, ToPyArray};
         pub use crate::dtype::PyArrayDescrMethods;
         pub use crate::untyped_array::PyUntypedArrayMethods;
     }
    @@ -354,13 +360,16 @@
     #[macro_export]
     macro_rules! pyarray {
         ($py: ident, $([$([$($x:expr),* $(,)*]),+ $(,)*]),+ $(,)*) => {{
    -        $crate::IntoPyArray::into_pyarray($crate::array![$([$([$($x,)*],)*],)*], $py)
    +        #[allow(deprecated)]
    +        $crate::IntoPyArray::into_pyarray($crate::array![$([$([$($x,)*],)*],)*], $py)
         }};
         ($py: ident, $([$($x:expr),* $(,)*]),+ $(,)*) => {{
    -        $crate::IntoPyArray::into_pyarray($crate::array![$([$($x,)*],)*], $py)
    +        #[allow(deprecated)]
    +        $crate::IntoPyArray::into_pyarray($crate::array![$([$($x,)*],)*], $py)
         }};
         ($py: ident, $($x:expr),* $(,)*) => {{
    -        $crate::IntoPyArray::into_pyarray($crate::array![$($x,)*], $py)
    +        #[allow(deprecated)]
    +        $crate::IntoPyArray::into_pyarray($crate::array![$($x,)*], $py)
         }};
     }
     
    \ No newline at end of file diff --git a/src/numpy/npyffi/array.rs.html b/src/numpy/npyffi/array.rs.html index 19d5858c7..24e4741f8 100644 --- a/src/numpy/npyffi/array.rs.html +++ b/src/numpy/npyffi/array.rs.html @@ -1,5 +1,6 @@ -array.rs - source -
    1
    +array.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/npyffi/flags.rs.html b/src/numpy/npyffi/flags.rs.html
    index 78c694a74..b40354574 100644
    --- a/src/numpy/npyffi/flags.rs.html
    +++ b/src/numpy/npyffi/flags.rs.html
    @@ -1,5 +1,6 @@
    -flags.rs - source
    -    
    1
    +flags.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/npyffi/mod.rs.html b/src/numpy/npyffi/mod.rs.html
    index 6a88c8e68..64561a77e 100644
    --- a/src/numpy/npyffi/mod.rs.html
    +++ b/src/numpy/npyffi/mod.rs.html
    @@ -1,5 +1,6 @@
    -mod.rs - source
    -    
    1
    +mod.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/npyffi/objects.rs.html b/src/numpy/npyffi/objects.rs.html
    index a206c9ec4..cbcd3459a 100644
    --- a/src/numpy/npyffi/objects.rs.html
    +++ b/src/numpy/npyffi/objects.rs.html
    @@ -1,5 +1,6 @@
    -objects.rs - source
    -    
    1
    +objects.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/npyffi/types.rs.html b/src/numpy/npyffi/types.rs.html
    index 066adf574..6a7da0fa4 100644
    --- a/src/numpy/npyffi/types.rs.html
    +++ b/src/numpy/npyffi/types.rs.html
    @@ -1,5 +1,6 @@
    -types.rs - source
    -    
    1
    +types.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/npyffi/ufunc.rs.html b/src/numpy/npyffi/ufunc.rs.html
    index 2ca6903fb..ada48848f 100644
    --- a/src/numpy/npyffi/ufunc.rs.html
    +++ b/src/numpy/npyffi/ufunc.rs.html
    @@ -1,5 +1,6 @@
    -ufunc.rs - source
    -    
    1
    +ufunc.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/slice_container.rs.html b/src/numpy/slice_container.rs.html
    index d483433fb..0b89da959 100644
    --- a/src/numpy/slice_container.rs.html
    +++ b/src/numpy/slice_container.rs.html
    @@ -1,5 +1,6 @@
    -slice_container.rs - source
    -    
    1
    +slice_container.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/strings.rs.html b/src/numpy/strings.rs.html
    index 39c77c399..0d5fbc092 100644
    --- a/src/numpy/strings.rs.html
    +++ b/src/numpy/strings.rs.html
    @@ -1,5 +1,6 @@
    -strings.rs - source
    -    
    1
    +strings.rs - source
    +    
    1
     2
     3
     4
    @@ -277,10 +278,10 @@
     ///
     /// ```rust
     /// # use pyo3::Python;
    -/// use numpy::{PyArray1, PyFixedString};
    +/// use numpy::{PyArray1, PyUntypedArrayMethods, PyFixedString};
     ///
     /// # Python::with_gil(|py| {
    -/// let array = PyArray1::<PyFixedString<3>>::from_vec(py, vec![[b'f', b'o', b'o'].into()]);
    +/// let array = PyArray1::<PyFixedString<3>>::from_vec_bound(py, vec![[b'f', b'o', b'o'].into()]);
     ///
     /// assert!(array.dtype().to_string().contains("S3"));
     /// # });
    @@ -340,10 +341,10 @@
     ///
     /// ```rust
     /// # use pyo3::Python;
    -/// use numpy::{PyArray1, PyFixedUnicode};
    +/// use numpy::{PyArray1, PyUntypedArrayMethods, PyFixedUnicode};
     ///
     /// # Python::with_gil(|py| {
    -/// let array = PyArray1::<PyFixedUnicode<3>>::from_vec(py, vec![[b'b' as _, b'a' as _, b'r' as _].into()]);
    +/// let array = PyArray1::<PyFixedUnicode<3>>::from_vec_bound(py, vec![[b'b' as _, b'a' as _, b'r' as _].into()]);
     ///
     /// assert!(array.dtype().to_string().contains("U3"));
     /// # });
    diff --git a/src/numpy/sum_products.rs.html b/src/numpy/sum_products.rs.html
    index a1fdff367..8d75c8059 100644
    --- a/src/numpy/sum_products.rs.html
    +++ b/src/numpy/sum_products.rs.html
    @@ -1,5 +1,6 @@
    -sum_products.rs - source
    -    
    1
    +sum_products.rs - source
    +    
    1
     2
     3
     4
    diff --git a/src/numpy/untyped_array.rs.html b/src/numpy/untyped_array.rs.html
    index 2fcdce88d..687d061e4 100644
    --- a/src/numpy/untyped_array.rs.html
    +++ b/src/numpy/untyped_array.rs.html
    @@ -1,5 +1,6 @@
    -untyped_array.rs - source
    -    
    1
    +untyped_array.rs - source
    +    
    1
     2
     3
     4
    @@ -465,6 +466,8 @@
     464
     465
     466
    +467
    +468
     
    //! Safe, untyped interface for NumPy's [N-dimensional arrays][ndarray]
     //!
     //! [ndarray]: https://numpy.org/doc/stable/reference/arrays.ndarray.html
    @@ -566,13 +569,14 @@
         /// # Example
         ///
         /// ```
    +    /// use numpy::prelude::*;
         /// use numpy::{dtype_bound, PyArray};
         /// use pyo3::Python;
         ///
         /// Python::with_gil(|py| {
    -    ///    let array = PyArray::from_vec(py, vec![1_i32, 2, 3]);
    +    ///    let array = PyArray::from_vec_bound(py, vec![1_i32, 2, 3]);
         ///
    -    ///    assert!(array.dtype().is_equiv_to(dtype_bound::<i32>(py).as_gil_ref()));
    +    ///    assert!(array.dtype().is_equiv_to(&dtype_bound::<i32>(py)));
         /// });
         /// ```
         ///
    @@ -736,13 +740,14 @@
         /// # Example
         ///
         /// ```
    +    /// use numpy::prelude::*;
         /// use numpy::{dtype_bound, PyArray};
         /// use pyo3::Python;
         ///
         /// Python::with_gil(|py| {
    -    ///    let array = PyArray::from_vec(py, vec![1_i32, 2, 3]);
    +    ///    let array = PyArray::from_vec_bound(py, vec![1_i32, 2, 3]);
         ///
    -    ///    assert!(array.dtype().is_equiv_to(dtype_bound::<i32>(py).as_gil_ref()));
    +    ///    assert!(array.dtype().is_equiv_to(&dtype_bound::<i32>(py)));
         /// });
         /// ```
         ///
    diff --git a/static.files/main-305769736d49e732.js b/static.files/main-305769736d49e732.js
    deleted file mode 100644
    index b8b91afa0..000000000
    --- a/static.files/main-305769736d49e732.js
    +++ /dev/null
    @@ -1,11 +0,0 @@
    -"use strict";window.RUSTDOC_TOOLTIP_HOVER_MS=300;window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS=450;function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function blurHandler(event,parentElem,hideCallback){if(!parentElem.contains(document.activeElement)&&!parentElem.contains(event.relatedTarget)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileTopbar=document.querySelector(".mobile-topbar");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileTopbar){const mobileTitle=document.createElement("h2");mobileTitle.className="location";if(hasClass(document.querySelector(".rustdoc"),"crate")){mobileTitle.innerText=`Crate ${window.currentCrate}`}else if(locationTitle){mobileTitle.innerHTML=locationTitle.innerHTML}mobileTopbar.appendChild(mobileTitle)}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadScript(getVar("static-root-path")+getVar("settings-js"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},removeQueryParameters:()=>{document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.hash)}},hideResults:()=>{switchDisplayedElement(null);searchState.removeQueryParameters()},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

    "+searchState.loadingText+"

    ";searchState.showResults(search)},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}if(savedHash.startsWith("impl-")){const splitAt=savedHash.indexOf("/");if(splitAt!==-1){const implId=savedHash.slice(0,splitAt);const assocId=savedHash.slice(splitAt+1);const implElem=document.getElementById(implId);if(implElem&&implElem.parentElement.tagName==="SUMMARY"&&implElem.parentElement.parentElement.tagName==="DETAILS"){onEachLazy(implElem.parentElement.parentElement.querySelectorAll(`[id^="${assocId}"]`),item=>{const numbered=/([^-]+)-([0-9]+)/.exec(item.id);if(item.id===assocId||(numbered&&numbered[1]===assocId)){openParentDetails(item);item.scrollIntoView();setTimeout(()=>{window.location.replace("#"+item.id)},0)}})}}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();searchState.hideResults();ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const modpath=hasClass(document.querySelector(".rustdoc"),"mod")?"../":"";const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=`${modpath}${name}/index.html`}else{path=`${modpath}${shortty}.${name}.html`}let current_page=document.location.href.toString();if(current_page.endsWith("/")){current_page+="index.html"}const link=document.createElement("a");link.href=path;if(path===current_page){link.className="current"}link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Aliases");block("union","unions","Unions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("opaque","opaque-types","Opaque Types");block("attr","attributes","Attribute Macros");block("derive","derives","Derive Macros");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=new Set((script?script.getAttribute("data-ignore-extern-crates"):"").split(","));for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.has(lib)){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}window.register_type_impls=imp=>{if(!imp||!imp[window.currentCrate]){return}window.pending_type_impls=null;const idMap=new Map();let implementations=document.getElementById("implementations-list");let trait_implementations=document.getElementById("trait-implementations-list");let trait_implementations_header=document.getElementById("trait-implementations");const script=document.querySelector("script[data-self-path]");const selfPath=script?script.getAttribute("data-self-path"):null;const mainContent=document.querySelector("#main-content");const sidebarSection=document.querySelector(".sidebar section");let methods=document.querySelector(".sidebar .block.method");let associatedTypes=document.querySelector(".sidebar .block.associatedtype");let associatedConstants=document.querySelector(".sidebar .block.associatedconstant");let sidebarTraitList=document.querySelector(".sidebar .block.trait-implementation");for(const impList of imp[window.currentCrate]){const types=impList.slice(2);const text=impList[0];const isTrait=impList[1]!==0;const traitName=impList[1];if(types.indexOf(selfPath)===-1){continue}let outputList=isTrait?trait_implementations:implementations;if(outputList===null){const outputListName=isTrait?"Trait Implementations":"Implementations";const outputListId=isTrait?"trait-implementations-list":"implementations-list";const outputListHeaderId=isTrait?"trait-implementations":"implementations";const outputListHeader=document.createElement("h2");outputListHeader.id=outputListHeaderId;outputListHeader.innerText=outputListName;outputList=document.createElement("div");outputList.id=outputListId;if(isTrait){const link=document.createElement("a");link.href=`#${outputListHeaderId}`;link.innerText="Trait Implementations";const h=document.createElement("h3");h.appendChild(link);trait_implementations=outputList;trait_implementations_header=outputListHeader;sidebarSection.appendChild(h);sidebarTraitList=document.createElement("ul");sidebarTraitList.className="block trait-implementation";sidebarSection.appendChild(sidebarTraitList);mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}else{implementations=outputList;if(trait_implementations){mainContent.insertBefore(outputListHeader,trait_implementations_header);mainContent.insertBefore(outputList,trait_implementations_header)}else{const mainContent=document.querySelector("#main-content");mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}}}const template=document.createElement("template");template.innerHTML=text;onEachLazy(template.content.querySelectorAll("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});onEachLazy(template.content.querySelectorAll("[id]"),el=>{let i=0;if(idMap.has(el.id)){i=idMap.get(el.id)}else if(document.getElementById(el.id)){i=1;while(document.getElementById(`${el.id}-${2 * i}`)){i=2*i}while(document.getElementById(`${el.id}-${i}`)){i+=1}}if(i!==0){const oldHref=`#${el.id}`;const newHref=`#${el.id}-${i}`;el.id=`${el.id}-${i}`;onEachLazy(template.content.querySelectorAll("a[href]"),link=>{if(link.getAttribute("href")===oldHref){link.href=newHref}})}idMap.set(el.id,i+1)});const templateAssocItems=template.content.querySelectorAll("section.tymethod, "+"section.method, section.associatedtype, section.associatedconstant");if(isTrait){const li=document.createElement("li");const a=document.createElement("a");a.href=`#${template.content.querySelector(".impl").id}`;a.textContent=traitName;li.appendChild(a);sidebarTraitList.append(li)}else{onEachLazy(templateAssocItems,item=>{let block=hasClass(item,"associatedtype")?associatedTypes:(hasClass(item,"associatedconstant")?associatedConstants:(methods));if(!block){const blockTitle=hasClass(item,"associatedtype")?"Associated Types":(hasClass(item,"associatedconstant")?"Associated Constants":("Methods"));const blockClass=hasClass(item,"associatedtype")?"associatedtype":(hasClass(item,"associatedconstant")?"associatedconstant":("method"));const blockHeader=document.createElement("h3");const blockLink=document.createElement("a");blockLink.href="#implementations";blockLink.innerText=blockTitle;blockHeader.appendChild(blockLink);block=document.createElement("ul");block.className=`block ${blockClass}`;const insertionReference=methods||sidebarTraitList;if(insertionReference){const insertionReferenceH=insertionReference.previousElementSibling;sidebarSection.insertBefore(blockHeader,insertionReferenceH);sidebarSection.insertBefore(block,insertionReferenceH)}else{sidebarSection.appendChild(blockHeader);sidebarSection.appendChild(block)}if(hasClass(item,"associatedtype")){associatedTypes=block}else if(hasClass(item,"associatedconstant")){associatedConstants=block}else{methods=block}}const li=document.createElement("li");const a=document.createElement("a");a.innerText=item.id.split("-")[0].split(".")[1];a.href=`#${item.id}`;li.appendChild(a);block.appendChild(li)})}outputList.appendChild(template.content)}for(const list of[methods,associatedTypes,associatedConstants,sidebarTraitList]){if(!list){continue}const newChildren=Array.prototype.slice.call(list.children);newChildren.sort((a,b)=>{const aI=a.innerText;const bI=b.innerText;return aIbI?1:0});list.replaceChildren(...newChildren)}};if(window.pending_type_impls){window.register_type_impls(window.pending_type_impls)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.textContent=crate;const li=document.createElement("li");if(window.rootPath!=="./"&&crate===window.currentCrate){li.className="current"}li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
    "+window.NOTABLE_TRAITS[notable_ty]+"
    "}else{if(e.getAttribute("title")!==null){e.setAttribute("data-title",e.getAttribute("title"));e.removeAttribute("title")}if(e.getAttribute("data-title")!==null){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("data-title")));wrapper.appendChild(titleContent)}}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";const body=document.getElementsByTagName("body")[0];body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px")}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);wrapper.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}clearTooltipHoverTimeout(e)};wrapper.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!e.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(wrapper,"fade-out")}}}function setTooltipHoverTimeout(element,show){clearTooltipHoverTimeout(element);if(!show&&!window.CURRENT_TOOLTIP_ELEMENT){return}if(show&&window.CURRENT_TOOLTIP_ELEMENT){return}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE!==element){return}element.TOOLTIP_HOVER_TIMEOUT=setTimeout(()=>{if(show){showTooltip(element)}else if(!element.TOOLTIP_FORCE_VISIBLE){hideTooltip(false)}},show?window.RUSTDOC_TOOLTIP_HOVER_MS:window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS)}function clearTooltipHoverTimeout(element){if(element.TOOLTIP_HOVER_TIMEOUT!==undefined){removeClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out");clearTimeout(element.TOOLTIP_HOVER_TIMEOUT);delete element.TOOLTIP_HOVER_TIMEOUT}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.contains(event.relatedTarget)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(event.relatedTarget)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}const body=document.getElementsByTagName("body")[0];body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=()=>{e.TOOLTIP_FORCE_VISIBLE=e.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!e.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(e);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointermove=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out")}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");const channel=getVar("channel");book_info.className="top";book_info.innerHTML=`You can find more information in \ -the rustdoc book.`;const shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
    "+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
    "+x[1]+"
    ").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

    Keyboard Shortcuts

    "+shortcuts+"
    ";const infos=[`For a full list of all search features, take a look here.`,"Prefix searches with a type followed by a colon (e.g., fn:) to \ - restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ - enum, trait, type, macro, \ - and const.","Search functions by type signature (e.g., vec -> usize or \ - -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ - your request: \"string\"","Look for functions that accept or return \ - slices and \ - arrays by writing \ - square brackets (e.g., -> [u8] or [] -> Option)","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

    "+x+"

    ").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

    Search Tricks

    "+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=switchFocus=>{hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=()=>{onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){const SIDEBAR_MIN=100;const SIDEBAR_MAX=500;const RUSTDOC_MOBILE_BREAKPOINT=700;const BODY_MIN=400;const SIDEBAR_VANISH_THRESHOLD=SIDEBAR_MIN/2;const sidebarButton=document.getElementById("sidebar-button");if(sidebarButton){sidebarButton.addEventListener("click",e=>{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false");e.preventDefault()})}let currentPointerId=null;let desiredSidebarSize=null;let pendingSidebarResizingFrame=false;const resizer=document.querySelector(".sidebar-resizer");const sidebar=document.querySelector(".sidebar");if(!resizer||!sidebar){return}const isSrcPage=hasClass(document.body,"src");function hideSidebar(){if(isSrcPage){window.rustdocCloseSourceSidebar();updateLocalStorage("src-sidebar-width",null);document.documentElement.style.removeProperty("--src-sidebar-width");sidebar.style.removeProperty("--src-sidebar-width");resizer.style.removeProperty("--src-sidebar-width")}else{addClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","true");updateLocalStorage("desktop-sidebar-width",null);document.documentElement.style.removeProperty("--desktop-sidebar-width");sidebar.style.removeProperty("--desktop-sidebar-width");resizer.style.removeProperty("--desktop-sidebar-width")}}function showSidebar(){if(isSrcPage){window.rustdocShowSourceSidebar()}else{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false")}}function changeSidebarSize(size){if(isSrcPage){updateLocalStorage("src-sidebar-width",size);sidebar.style.setProperty("--src-sidebar-width",size+"px");resizer.style.setProperty("--src-sidebar-width",size+"px")}else{updateLocalStorage("desktop-sidebar-width",size);sidebar.style.setProperty("--desktop-sidebar-width",size+"px");resizer.style.setProperty("--desktop-sidebar-width",size+"px")}}function isSidebarHidden(){return isSrcPage?!hasClass(document.documentElement,"src-sidebar-expanded"):hasClass(document.documentElement,"hide-sidebar")}function resize(e){if(currentPointerId===null||currentPointerId!==e.pointerId){return}e.preventDefault();const pos=e.clientX-sidebar.offsetLeft-3;if(pos=SIDEBAR_MIN){if(isSidebarHidden()){showSidebar()}const constrainedPos=Math.min(pos,window.innerWidth-BODY_MIN,SIDEBAR_MAX);changeSidebarSize(constrainedPos);desiredSidebarSize=constrainedPos;if(pendingSidebarResizingFrame!==false){clearTimeout(pendingSidebarResizingFrame)}pendingSidebarResizingFrame=setTimeout(()=>{if(currentPointerId===null||pendingSidebarResizingFrame===false){return}pendingSidebarResizingFrame=false;document.documentElement.style.setProperty("--resizing-sidebar-width",desiredSidebarSize+"px")},100)}}window.addEventListener("resize",()=>{if(window.innerWidth=(window.innerWidth-BODY_MIN)){changeSidebarSize(window.innerWidth-BODY_MIN)}else if(desiredSidebarSize!==null&&desiredSidebarSize>SIDEBAR_MIN){changeSidebarSize(desiredSidebarSize)}});function stopResize(e){if(currentPointerId===null){return}if(e){e.preventDefault()}desiredSidebarSize=sidebar.getBoundingClientRect().width;removeClass(resizer,"active");window.removeEventListener("pointermove",resize,false);window.removeEventListener("pointerup",stopResize,false);removeClass(document.documentElement,"sidebar-resizing");document.documentElement.style.removeProperty("--resizing-sidebar-width");if(resizer.releasePointerCapture){resizer.releasePointerCapture(currentPointerId);currentPointerId=null}}function initResize(e){if(currentPointerId!==null||e.altKey||e.ctrlKey||e.metaKey||e.button!==0){return}if(resizer.setPointerCapture){resizer.setPointerCapture(e.pointerId);if(!resizer.hasPointerCapture(e.pointerId)){resizer.releasePointerCapture(e.pointerId);return}currentPointerId=e.pointerId}e.preventDefault();window.addEventListener("pointermove",resize,false);window.addEventListener("pointercancel",stopResize,false);window.addEventListener("pointerup",stopResize,false);addClass(resizer,"active");addClass(document.documentElement,"sidebar-resizing");const pos=e.clientX-sidebar.offsetLeft-3;document.documentElement.style.setProperty("--resizing-sidebar-width",pos+"px");desiredSidebarSize=null}resizer.addEventListener("pointerdown",initResize,false)}());(function(){let reset_button_timeout=null;const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});const el=document.createElement("textarea");el.value=path.join("::");el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el);but.children[0].style.display="none";let tmp;if(but.childNodes.length<2){tmp=document.createTextNode("✓");but.appendChild(tmp)}else{onEachLazy(but.childNodes,e=>{if(e.nodeType===Node.TEXT_NODE){tmp=e;return true}});tmp.textContent="✓"}if(reset_button_timeout!==null){window.clearTimeout(reset_button_timeout)}function reset_button(){tmp.textContent="";reset_button_timeout=null;but.children[0].style.display=""}reset_button_timeout=window.setTimeout(reset_button,1000)}}()) \ No newline at end of file diff --git a/static.files/main-48f368f3872407c8.js b/static.files/main-48f368f3872407c8.js new file mode 100644 index 000000000..987fae425 --- /dev/null +++ b/static.files/main-48f368f3872407c8.js @@ -0,0 +1,11 @@ +"use strict";window.RUSTDOC_TOOLTIP_HOVER_MS=300;window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS=450;function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function blurHandler(event,parentElem,hideCallback){if(!parentElem.contains(document.activeElement)&&!parentElem.contains(event.relatedTarget)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileTopbar=document.querySelector(".mobile-topbar");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileTopbar){const mobileTitle=document.createElement("h2");mobileTitle.className="location";if(hasClass(document.querySelector(".rustdoc"),"crate")){mobileTitle.innerText=`Crate ${window.currentCrate}`}else if(locationTitle){mobileTitle.innerHTML=locationTitle.innerHTML}mobileTopbar.appendChild(mobileTitle)}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadScript(getVar("static-root-path")+getVar("settings-js"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},removeQueryParameters:()=>{document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.hash)}},hideResults:()=>{switchDisplayedElement(null);searchState.removeQueryParameters()},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=").map(x=>x.replace(/\+/g," "));params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

    "+searchState.loadingText+"

    ";searchState.showResults(search)},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}if(savedHash.startsWith("impl-")){const splitAt=savedHash.indexOf("/");if(splitAt!==-1){const implId=savedHash.slice(0,splitAt);const assocId=savedHash.slice(splitAt+1);const implElem=document.getElementById(implId);if(implElem&&implElem.parentElement.tagName==="SUMMARY"&&implElem.parentElement.parentElement.tagName==="DETAILS"){onEachLazy(implElem.parentElement.parentElement.querySelectorAll(`[id^="${assocId}"]`),item=>{const numbered=/([^-]+)-([0-9]+)/.exec(item.id);if(item.id===assocId||(numbered&&numbered[1]===assocId)){openParentDetails(item);item.scrollIntoView();setTimeout(()=>{window.location.replace("#"+item.id)},0)}})}}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();searchState.hideResults();ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const modpath=hasClass(document.querySelector(".rustdoc"),"mod")?"../":"";const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=`${modpath}${name}/index.html`}else{path=`${modpath}${shortty}.${name}.html`}let current_page=document.location.href.toString();if(current_page.endsWith("/")){current_page+="index.html"}const link=document.createElement("a");link.href=path;if(path===current_page){link.className="current"}link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Aliases");block("union","unions","Unions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("opaque","opaque-types","Opaque Types");block("attr","attributes","Attribute Macros");block("derive","derives","Derive Macros");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=new Set((script?script.getAttribute("data-ignore-extern-crates"):"").split(","));for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.has(lib)){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}window.register_type_impls=imp=>{if(!imp||!imp[window.currentCrate]){return}window.pending_type_impls=null;const idMap=new Map();let implementations=document.getElementById("implementations-list");let trait_implementations=document.getElementById("trait-implementations-list");let trait_implementations_header=document.getElementById("trait-implementations");const script=document.querySelector("script[data-self-path]");const selfPath=script?script.getAttribute("data-self-path"):null;const mainContent=document.querySelector("#main-content");const sidebarSection=document.querySelector(".sidebar section");let methods=document.querySelector(".sidebar .block.method");let associatedTypes=document.querySelector(".sidebar .block.associatedtype");let associatedConstants=document.querySelector(".sidebar .block.associatedconstant");let sidebarTraitList=document.querySelector(".sidebar .block.trait-implementation");for(const impList of imp[window.currentCrate]){const types=impList.slice(2);const text=impList[0];const isTrait=impList[1]!==0;const traitName=impList[1];if(types.indexOf(selfPath)===-1){continue}let outputList=isTrait?trait_implementations:implementations;if(outputList===null){const outputListName=isTrait?"Trait Implementations":"Implementations";const outputListId=isTrait?"trait-implementations-list":"implementations-list";const outputListHeaderId=isTrait?"trait-implementations":"implementations";const outputListHeader=document.createElement("h2");outputListHeader.id=outputListHeaderId;outputListHeader.innerText=outputListName;outputList=document.createElement("div");outputList.id=outputListId;if(isTrait){const link=document.createElement("a");link.href=`#${outputListHeaderId}`;link.innerText="Trait Implementations";const h=document.createElement("h3");h.appendChild(link);trait_implementations=outputList;trait_implementations_header=outputListHeader;sidebarSection.appendChild(h);sidebarTraitList=document.createElement("ul");sidebarTraitList.className="block trait-implementation";sidebarSection.appendChild(sidebarTraitList);mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}else{implementations=outputList;if(trait_implementations){mainContent.insertBefore(outputListHeader,trait_implementations_header);mainContent.insertBefore(outputList,trait_implementations_header)}else{const mainContent=document.querySelector("#main-content");mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}}}const template=document.createElement("template");template.innerHTML=text;onEachLazy(template.content.querySelectorAll("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});onEachLazy(template.content.querySelectorAll("[id]"),el=>{let i=0;if(idMap.has(el.id)){i=idMap.get(el.id)}else if(document.getElementById(el.id)){i=1;while(document.getElementById(`${el.id}-${2 * i}`)){i=2*i}while(document.getElementById(`${el.id}-${i}`)){i+=1}}if(i!==0){const oldHref=`#${el.id}`;const newHref=`#${el.id}-${i}`;el.id=`${el.id}-${i}`;onEachLazy(template.content.querySelectorAll("a[href]"),link=>{if(link.getAttribute("href")===oldHref){link.href=newHref}})}idMap.set(el.id,i+1)});const templateAssocItems=template.content.querySelectorAll("section.tymethod, "+"section.method, section.associatedtype, section.associatedconstant");if(isTrait){const li=document.createElement("li");const a=document.createElement("a");a.href=`#${template.content.querySelector(".impl").id}`;a.textContent=traitName;li.appendChild(a);sidebarTraitList.append(li)}else{onEachLazy(templateAssocItems,item=>{let block=hasClass(item,"associatedtype")?associatedTypes:(hasClass(item,"associatedconstant")?associatedConstants:(methods));if(!block){const blockTitle=hasClass(item,"associatedtype")?"Associated Types":(hasClass(item,"associatedconstant")?"Associated Constants":("Methods"));const blockClass=hasClass(item,"associatedtype")?"associatedtype":(hasClass(item,"associatedconstant")?"associatedconstant":("method"));const blockHeader=document.createElement("h3");const blockLink=document.createElement("a");blockLink.href="#implementations";blockLink.innerText=blockTitle;blockHeader.appendChild(blockLink);block=document.createElement("ul");block.className=`block ${blockClass}`;const insertionReference=methods||sidebarTraitList;if(insertionReference){const insertionReferenceH=insertionReference.previousElementSibling;sidebarSection.insertBefore(blockHeader,insertionReferenceH);sidebarSection.insertBefore(block,insertionReferenceH)}else{sidebarSection.appendChild(blockHeader);sidebarSection.appendChild(block)}if(hasClass(item,"associatedtype")){associatedTypes=block}else if(hasClass(item,"associatedconstant")){associatedConstants=block}else{methods=block}}const li=document.createElement("li");const a=document.createElement("a");a.innerText=item.id.split("-")[0].split(".")[1];a.href=`#${item.id}`;li.appendChild(a);block.appendChild(li)})}outputList.appendChild(template.content)}for(const list of[methods,associatedTypes,associatedConstants,sidebarTraitList]){if(!list){continue}const newChildren=Array.prototype.slice.call(list.children);newChildren.sort((a,b)=>{const aI=a.innerText;const bI=b.innerText;return aIbI?1:0});list.replaceChildren(...newChildren)}};if(window.pending_type_impls){window.register_type_impls(window.pending_type_impls)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.textContent=crate;const li=document.createElement("li");if(window.rootPath!=="./"&&crate===window.currentCrate){li.className="current"}li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
    "+window.NOTABLE_TRAITS[notable_ty]+"
    "}else{if(e.getAttribute("title")!==null){e.setAttribute("data-title",e.getAttribute("title"));e.removeAttribute("title")}if(e.getAttribute("data-title")!==null){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("data-title")));wrapper.appendChild(titleContent)}}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";const body=document.getElementsByTagName("body")[0];body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px")}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);wrapper.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}clearTooltipHoverTimeout(e)};wrapper.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!e.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(wrapper,"fade-out")}}}function setTooltipHoverTimeout(element,show){clearTooltipHoverTimeout(element);if(!show&&!window.CURRENT_TOOLTIP_ELEMENT){return}if(show&&window.CURRENT_TOOLTIP_ELEMENT){return}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE!==element){return}element.TOOLTIP_HOVER_TIMEOUT=setTimeout(()=>{if(show){showTooltip(element)}else if(!element.TOOLTIP_FORCE_VISIBLE){hideTooltip(false)}},show?window.RUSTDOC_TOOLTIP_HOVER_MS:window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS)}function clearTooltipHoverTimeout(element){if(element.TOOLTIP_HOVER_TIMEOUT!==undefined){removeClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out");clearTimeout(element.TOOLTIP_HOVER_TIMEOUT);delete element.TOOLTIP_HOVER_TIMEOUT}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.contains(event.relatedTarget)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(event.relatedTarget)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}const body=document.getElementsByTagName("body")[0];body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=()=>{e.TOOLTIP_FORCE_VISIBLE=e.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!e.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(e);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointermove=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out")}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");const channel=getVar("channel");book_info.className="top";book_info.innerHTML=`You can find more information in \ +the rustdoc book.`;const shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
    "+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
    "+x[1]+"
    ").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

    Keyboard Shortcuts

    "+shortcuts+"
    ";const infos=[`For a full list of all search features, take a look here.`,"Prefix searches with a type followed by a colon (e.g., fn:) to \ + restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ + enum, trait, type, macro, \ + and const.","Search functions by type signature (e.g., vec -> usize or \ + -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ + your request: \"string\"","Look for functions that accept or return \ + slices and \ + arrays by writing \ + square brackets (e.g., -> [u8] or [] -> Option)","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

    "+x+"

    ").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

    Search Tricks

    "+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=switchFocus=>{hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=()=>{onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){const SIDEBAR_MIN=100;const SIDEBAR_MAX=500;const RUSTDOC_MOBILE_BREAKPOINT=700;const BODY_MIN=400;const SIDEBAR_VANISH_THRESHOLD=SIDEBAR_MIN/2;const sidebarButton=document.getElementById("sidebar-button");if(sidebarButton){sidebarButton.addEventListener("click",e=>{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false");if(document.querySelector(".rustdoc.src")){window.rustdocToggleSrcSidebar()}e.preventDefault()})}let currentPointerId=null;let desiredSidebarSize=null;let pendingSidebarResizingFrame=false;const resizer=document.querySelector(".sidebar-resizer");const sidebar=document.querySelector(".sidebar");if(!resizer||!sidebar){return}const isSrcPage=hasClass(document.body,"src");function hideSidebar(){if(isSrcPage){window.rustdocCloseSourceSidebar();updateLocalStorage("src-sidebar-width",null);document.documentElement.style.removeProperty("--src-sidebar-width");sidebar.style.removeProperty("--src-sidebar-width");resizer.style.removeProperty("--src-sidebar-width")}else{addClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","true");updateLocalStorage("desktop-sidebar-width",null);document.documentElement.style.removeProperty("--desktop-sidebar-width");sidebar.style.removeProperty("--desktop-sidebar-width");resizer.style.removeProperty("--desktop-sidebar-width")}}function showSidebar(){if(isSrcPage){window.rustdocShowSourceSidebar()}else{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false")}}function changeSidebarSize(size){if(isSrcPage){updateLocalStorage("src-sidebar-width",size);sidebar.style.setProperty("--src-sidebar-width",size+"px");resizer.style.setProperty("--src-sidebar-width",size+"px")}else{updateLocalStorage("desktop-sidebar-width",size);sidebar.style.setProperty("--desktop-sidebar-width",size+"px");resizer.style.setProperty("--desktop-sidebar-width",size+"px")}}function isSidebarHidden(){return isSrcPage?!hasClass(document.documentElement,"src-sidebar-expanded"):hasClass(document.documentElement,"hide-sidebar")}function resize(e){if(currentPointerId===null||currentPointerId!==e.pointerId){return}e.preventDefault();const pos=e.clientX-3;if(pos=SIDEBAR_MIN){if(isSidebarHidden()){showSidebar()}const constrainedPos=Math.min(pos,window.innerWidth-BODY_MIN,SIDEBAR_MAX);changeSidebarSize(constrainedPos);desiredSidebarSize=constrainedPos;if(pendingSidebarResizingFrame!==false){clearTimeout(pendingSidebarResizingFrame)}pendingSidebarResizingFrame=setTimeout(()=>{if(currentPointerId===null||pendingSidebarResizingFrame===false){return}pendingSidebarResizingFrame=false;document.documentElement.style.setProperty("--resizing-sidebar-width",desiredSidebarSize+"px")},100)}}window.addEventListener("resize",()=>{if(window.innerWidth=(window.innerWidth-BODY_MIN)){changeSidebarSize(window.innerWidth-BODY_MIN)}else if(desiredSidebarSize!==null&&desiredSidebarSize>SIDEBAR_MIN){changeSidebarSize(desiredSidebarSize)}});function stopResize(e){if(currentPointerId===null){return}if(e){e.preventDefault()}desiredSidebarSize=sidebar.getBoundingClientRect().width;removeClass(resizer,"active");window.removeEventListener("pointermove",resize,false);window.removeEventListener("pointerup",stopResize,false);removeClass(document.documentElement,"sidebar-resizing");document.documentElement.style.removeProperty("--resizing-sidebar-width");if(resizer.releasePointerCapture){resizer.releasePointerCapture(currentPointerId);currentPointerId=null}}function initResize(e){if(currentPointerId!==null||e.altKey||e.ctrlKey||e.metaKey||e.button!==0){return}if(resizer.setPointerCapture){resizer.setPointerCapture(e.pointerId);if(!resizer.hasPointerCapture(e.pointerId)){resizer.releasePointerCapture(e.pointerId);return}currentPointerId=e.pointerId}window.hideAllModals(false);e.preventDefault();window.addEventListener("pointermove",resize,false);window.addEventListener("pointercancel",stopResize,false);window.addEventListener("pointerup",stopResize,false);addClass(resizer,"active");addClass(document.documentElement,"sidebar-resizing");const pos=e.clientX-sidebar.offsetLeft-3;document.documentElement.style.setProperty("--resizing-sidebar-width",pos+"px");desiredSidebarSize=null}resizer.addEventListener("pointerdown",initResize,false)}());(function(){let reset_button_timeout=null;const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});const el=document.createElement("textarea");el.value=path.join("::");el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el);but.children[0].style.display="none";let tmp;if(but.childNodes.length<2){tmp=document.createTextNode("✓");but.appendChild(tmp)}else{onEachLazy(but.childNodes,e=>{if(e.nodeType===Node.TEXT_NODE){tmp=e;return true}});tmp.textContent="✓"}if(reset_button_timeout!==null){window.clearTimeout(reset_button_timeout)}function reset_button(){tmp.textContent="";reset_button_timeout=null;but.children[0].style.display=""}reset_button_timeout=window.setTimeout(reset_button,1000)}}()) \ No newline at end of file diff --git a/static.files/noscript-04d5337699b92874.css b/static.files/noscript-04d5337699b92874.css new file mode 100644 index 000000000..fbd55f57d --- /dev/null +++ b/static.files/noscript-04d5337699b92874.css @@ -0,0 +1 @@ + #main-content .attributes{margin-left:0 !important;}#copy-path,#sidebar-button,.sidebar-resizer{display:none !important;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}@media (prefers-color-scheme:dark){:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}} \ No newline at end of file diff --git a/static.files/noscript-feafe1bb7466e4bd.css b/static.files/noscript-feafe1bb7466e4bd.css deleted file mode 100644 index 7bbe07f1c..000000000 --- a/static.files/noscript-feafe1bb7466e4bd.css +++ /dev/null @@ -1 +0,0 @@ - #main-content .attributes{margin-left:0 !important;}#copy-path,#sidebar-button,.sidebar-resizer{display:none;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}@media (prefers-color-scheme:dark){:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}} \ No newline at end of file diff --git a/static.files/rustdoc-5bc39a1768837dd0.css b/static.files/rustdoc-5bc39a1768837dd0.css new file mode 100644 index 000000000..175164ef5 --- /dev/null +++ b/static.files/rustdoc-5bc39a1768837dd0.css @@ -0,0 +1,24 @@ + :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;--desktop-sidebar-width:200px;--src-sidebar-width:300px;--desktop-sidebar-z-index:100;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.src,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.section-header a,#src-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p,.docblock>.warning{margin:0 0 .75em 0;}p:last-child,.docblock>.warning:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.src main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.src .content pre{padding:20px;}.rustdoc.src .example-wrap pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.logo-container{line-height:0;display:block;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 var(--desktop-sidebar-width);width:var(--desktop-sidebar-width);overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;z-index:var(--desktop-sidebar-z-index);}.rustdoc.src .sidebar{flex-basis:50px;width:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.hide-sidebar .sidebar,.hide-sidebar .sidebar-resizer{display:none;}.sidebar-resizer{touch-action:none;width:9px;cursor:col-resize;z-index:calc(var(--desktop-sidebar-z-index) + 1);position:fixed;height:100%;left:calc(var(--desktop-sidebar-width) + 1px);}.rustdoc.src .sidebar-resizer{left:49px;}.src-sidebar-expanded .src .sidebar-resizer{left:var(--src-sidebar-width);}.sidebar-resizing{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.sidebar-resizing*{cursor:col-resize !important;}.sidebar-resizing .sidebar{position:fixed;}.sidebar-resizing>body{padding-left:var(--resizing-sidebar-width);}.sidebar-resizer:hover,.sidebar-resizer:active,.sidebar-resizer:focus,.sidebar-resizer.active{width:10px;margin:0;left:var(--desktop-sidebar-width);border-left:solid 1px var(--sidebar-resizer-hover);}.src-sidebar-expanded .rustdoc.src .sidebar-resizer:hover,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:active,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:focus,.src-sidebar-expanded .rustdoc.src .sidebar-resizer.active{left:calc(var(--src-sidebar-width) - 1px);}@media (pointer:coarse){.sidebar-resizer{display:none !important;}}.sidebar-resizer.active{padding:0 140px;width:2px;margin-left:-140px;border-left:none;}.sidebar-resizer.active:before{border-left:solid 2px var(--sidebar-resizer-active);display:block;height:100%;content:"";}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar{background-color:var(--sidebar-background-color);}.src .sidebar>*{visibility:hidden;}.src-sidebar-expanded .src .sidebar{overflow-y:auto;flex-basis:var(--src-sidebar-width);width:var(--src-sidebar-width);}.src-sidebar-expanded .src .sidebar>*{visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.logo-container>img{height:48px;width:48px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-left:-0.25rem;margin-right:0.25rem;}.sidebar h2{overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:24px;}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar .current a,.sidebar-crate a.logo-container:hover+h2 a,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.sidebar-crate{display:flex;align-items:center;justify-content:center;margin:14px 32px 1rem;row-gap:10px;column-gap:32px;flex-wrap:wrap;}.sidebar-crate h2{flex-grow:1;margin:0 -8px;align-self:start;}.sidebar-crate .logo-container{margin:0 -16px 0 -16px;text-align:center;}.sidebar-crate h2 a{display:block;margin:0 calc(-24px + 0.25rem) 0 -0.2rem;padding:calc((16px - 0.57rem ) / 2 ) 0.25rem;padding-left:0.2rem;}.sidebar-crate h2 .version{display:block;font-weight:normal;font-size:1rem;overflow-wrap:break-word;}.sidebar-crate+.version{margin-top:-1rem;margin-bottom:1rem;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.rustdoc:not(.src) .example-wrap pre{overflow:auto hidden;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}div.where{white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 15px 0;}.section-header{display:block;position:relative;}.section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.section-header>.anchor{left:-15px;padding-right:8px;}h2.section-header>.anchor{padding-right:6px;}a.doc-anchor{color:var(--main-color);display:none;position:absolute;left:-17px;padding-right:5px;padding-left:3px;}*:hover>.doc-anchor{display:block;}.top-doc>.docblock>*:first-child>.doc-anchor{display:none !important;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover:not(.doc-anchor),.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block li.current a{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ + ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:2;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name{display:flex;align-items:center;justify-content:start;flex:3;}.search-results .result-name .alias{color:var(--search-results-alias-color);}.search-results .result-name .grey{color:var(--search-results-grey-color);}.search-results .result-name .typename{color:var(--search-results-grey-color);font-size:0.875rem;width:var(--search-typename-width);}.search-results .result-name .path{word-break:break-all;max-width:calc(100% - var(--search-typename-width));display:inline-block;}.search-results .result-name .path>*{display:inline;}.popover{position:absolute;top:100%;right:0;z-index:calc(var(--desktop-sidebar-z-index) + 1);margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,\ + \ + ');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{display:block;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;white-space:pre-wrap;border-radius:3px;display:inline;vertical-align:baseline;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji,.item-info .stab::before{font-size:1.25rem;}.stab .emoji{margin-right:0.3rem;}.item-info .stab::before{content:"\0";width:0;display:inline-block;color:transparent;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.src .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}.content .docblock .warning{border-left:2px solid var(--warning-border-color);padding:14px;position:relative;overflow-x:visible !important;}.content .docblock .warning::before{color:var(--warning-border-color);content:"ⓘ";position:absolute;left:-25px;top:5px;font-weight:bold;font-size:1.25rem;}.top-doc>.docblock>.warning:first-child::before{top:20px;}a.test-arrow{visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;color:var(--test-arrow-color);background-color:var(--test-arrow-background-color);}a.test-arrow:hover{color:var(--test-arrow-hover-color);background-color:var(--test-arrow-hover-background-color);}.example-wrap:hover .test-arrow{visibility:visible;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}.code-header a.tooltip:hover{color:var(--link-color);}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.fade-out{opacity:0;transition:opacity 0.45s cubic-bezier(0,0,0.1,1.0);}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;font-variant-numeric:tabular-nums;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}.search-corrections{font-weight:normal;}#src-sidebar{width:100%;overflow:auto;}#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--src-sidebar-background-hover);}#src-sidebar div.files>a.selected{background-color:var(--src-sidebar-background-selected);}.src-sidebar-title{position:sticky;top:0;display:flex;padding:8px 8px 0 48px;margin-bottom:7px;background:var(--sidebar-background-color);border-bottom:1px solid var(--border-color);}#settings-menu,#help-button{margin-left:4px;display:flex;}#sidebar-button{display:none;line-height:0;}.hide-sidebar #sidebar-button,.src #sidebar-button{display:flex;margin-right:4px;position:fixed;left:6px;height:34px;width:34px;background-color:var(--main-background-color);z-index:1;}.src #sidebar-button{left:8px;z-index:calc(var(--desktop-sidebar-z-index) + 1);}.hide-sidebar .src #sidebar-button{position:static;}#settings-menu>a,#help-button>a,#sidebar-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus,#sidebar-button>a:hover,#sidebar-button>a:focus{border-color:var(--settings-button-border-focus);}#sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');width:22px;height:22px;}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:34px;margin-left:10px;padding:0;padding-left:2px;border:0;width:33px;}#copy-path>img{filter:var(--copy-path-img-filter);}#copy-path:hover>img{filter:var(--copy-path-img-hover-filter);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}.src #sidebar-button>a:before,.sidebar-menu-toggle:before{content:url('data:image/svg+xml,\ + ');opacity:0.75;}.sidebar-menu-toggle:hover:before,.sidebar-menu-toggle:active:before,.sidebar-menu-toggle:focus:before{opacity:1;}.src #sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');opacity:0.75;}@media (max-width:850px){#search-tabs .count{display:block;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location,.sidebar-resizer{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.src main,.rustdoc.src .sidebar{top:0;padding:0;height:100vh;border:0;}.src .search-form{margin-left:40px;}.hide-sidebar .search-form{margin-left:32px;}.hide-sidebar .src .search-form{margin-left:0;}.sidebar.shown,.src-sidebar-expanded .src .sidebar,.rustdoc:not(.src) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;}.mobile-topbar h2 a{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.hide-sidebar .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;border:none;line-height:0;}.hide-sidebar .sidebar-menu-toggle{display:none;}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#copy-path,#help-button{display:none;}#sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');width:22px;height:22px;}.sidebar-menu-toggle:before{filter:var(--mobile-sidebar-menu-filter);}.sidebar-menu-toggle:hover{background:var(--main-background-color);}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.search-results .result-name{display:block;}.search-results .result-name .typename{width:initial;margin-right:0;}.search-results .result-name .typename,.search-results .result-name .path{display:inline;}.src-sidebar-expanded .src .sidebar{position:fixed;max-width:100vw;width:100vw;}.src .src-sidebar-title{padding-top:0;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.src nav.sub{margin:0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}}@media print{nav.sidebar,nav.sub,.out-of-band,a.src,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;}:root[data-theme="light"]{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="dark"]{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="ayu"]{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);--sidebar-resizer-hover:hsl(34,50%,33%);--sidebar-resizer-active:hsl(34,100%,66%);}:root[data-theme="ayu"] h1,:root[data-theme="ayu"] h2,:root[data-theme="ayu"] h3,:root[data-theme="ayu"] h4,:where(:root[data-theme="ayu"]) h1 a,:root[data-theme="ayu"] .sidebar h2 a,:root[data-theme="ayu"] .sidebar h3 a{color:#fff;}:root[data-theme="ayu"] .docblock code{color:#ffb454;}:root[data-theme="ayu"] .docblock a>code{color:#39AFD7 !important;}:root[data-theme="ayu"] .code-header,:root[data-theme="ayu"] .docblock pre>code,:root[data-theme="ayu"] pre,:root[data-theme="ayu"] pre>code,:root[data-theme="ayu"] .item-info code,:root[data-theme="ayu"] .rustdoc.source .example-wrap{color:#e6e1cf;}:root[data-theme="ayu"] .sidebar .current,:root[data-theme="ayu"] .sidebar .current a,:root[data-theme="ayu"] .sidebar a:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:hover,:root[data-theme="ayu"] details.dir-entry summary:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:focus,:root[data-theme="ayu"] details.dir-entry summary:focus,:root[data-theme="ayu"] #src-sidebar div.files>a.selected{color:#ffb44c;}:root[data-theme="ayu"] .sidebar-elems .location{color:#ff7733;}:root[data-theme="ayu"] .src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}:root[data-theme="ayu"] .search-results a:hover,:root[data-theme="ayu"] .search-results a:focus{color:#fff !important;background-color:#3c3c3c;}:root[data-theme="ayu"] .search-results a{color:#0096cf;}:root[data-theme="ayu"] .search-results a div.desc{color:#c5c5c5;}:root[data-theme="ayu"] .result-name .primitive>i,:root[data-theme="ayu"] .result-name .keyword>i{color:#788797;}:root[data-theme="ayu"] #search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}:root[data-theme="ayu"] #search-tabs>button:not(.selected){border:none;background-color:transparent !important;}:root[data-theme="ayu"] #search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}:root[data-theme="ayu"] #settings-menu>a img,:root[data-theme="ayu"] #sidebar-button>a:before{filter:invert(100);} \ No newline at end of file diff --git a/static.files/rustdoc-ac92e1bbe349e143.css b/static.files/rustdoc-ac92e1bbe349e143.css deleted file mode 100644 index 27e3d9d5a..000000000 --- a/static.files/rustdoc-ac92e1bbe349e143.css +++ /dev/null @@ -1,18 +0,0 @@ - :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;--desktop-sidebar-width:200px;--src-sidebar-width:300px;--desktop-sidebar-z-index:100;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.src,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.section-header a,#src-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p,.docblock>.warning{margin:0 0 .75em 0;}p:last-child,.docblock>.warning:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.src main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.src .content pre{padding:20px;}.rustdoc.src .example-wrap pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.sub-logo-container,.logo-container{line-height:0;display:block;}.sub-logo-container{margin-right:32px;}.sub-logo-container>img{height:60px;width:60px;object-fit:contain;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 var(--desktop-sidebar-width);width:var(--desktop-sidebar-width);overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;z-index:var(--desktop-sidebar-z-index);}.rustdoc.src .sidebar{flex-basis:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.hide-sidebar .sidebar,.hide-sidebar .sidebar-resizer{display:none;}.sidebar-resizer{touch-action:none;width:9px;cursor:col-resize;z-index:calc(var(--desktop-sidebar-z-index) + 1);position:fixed;height:100%;left:calc(var(--desktop-sidebar-width) + 1px);}.rustdoc.src .sidebar-resizer{left:49px;}.src-sidebar-expanded .rustdoc.src .sidebar-resizer{left:var(--src-sidebar-width);}.sidebar-resizing{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.sidebar-resizing*{cursor:col-resize !important;}.sidebar-resizing .sidebar{position:fixed;}.sidebar-resizing>body{padding-left:var(--resizing-sidebar-width);}.sidebar-resizer:hover,.sidebar-resizer:active,.sidebar-resizer:focus,.sidebar-resizer.active{width:10px;margin:0;left:var(--desktop-sidebar-width);border-left:solid 1px var(--sidebar-resizer-hover);}.src-sidebar-expanded .rustdoc.src .sidebar-resizer:hover,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:active,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:focus,.src-sidebar-expanded .rustdoc.src .sidebar-resizer.active{left:calc(var(--src-sidebar-width) - 1px);}@media (pointer:coarse){.sidebar-resizer{display:none !important;}}.sidebar-resizer.active{padding:0 140px;width:2px;margin-left:-140px;border-left:none;}.sidebar-resizer.active:before{border-left:solid 2px var(--sidebar-resizer-active);display:block;height:100%;content:"";}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar-toggle,#src-sidebar{background-color:var(--sidebar-background-color);}#src-sidebar-toggle>button:hover,#src-sidebar-toggle>button:focus{background-color:var(--sidebar-background-color-hover);}.src .sidebar>*:not(#src-sidebar-toggle){visibility:hidden;}.src-sidebar-expanded .src .sidebar{overflow-y:auto;flex-basis:var(--src-sidebar-width);width:var(--src-sidebar-width);}.src-sidebar-expanded .src .sidebar>*:not(#src-sidebar-toggle){visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.logo-container>img{height:48px;width:48px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-left:-0.25rem;margin-right:0.25rem;}.sidebar h2{overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:24px;}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar .current a,.sidebar-crate a.logo-container:hover+h2 a,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.sidebar-crate{display:flex;align-items:center;justify-content:center;margin:14px 32px 1rem;row-gap:10px;column-gap:32px;flex-wrap:wrap;}.sidebar-crate h2{flex-grow:1;margin:0 -8px;align-self:start;}.sidebar-crate .logo-container{margin:0 -16px 0 -16px;text-align:center;}.sidebar-crate h2 a{display:block;margin:0 calc(-24px + 0.25rem) 0 -0.5rem;padding:calc((16px - 0.57rem ) / 2 ) 0.25rem;padding-left:0.5rem;}.sidebar-crate h2 .version{display:block;font-weight:normal;font-size:1rem;overflow-wrap:break-word;margin-top:calc((-16px + 0.57rem ) / 2 );}.sidebar-crate+.version{margin-top:-1rem;margin-bottom:1rem;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.rustdoc:not(.src) .example-wrap pre{overflow:auto hidden;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}div.where{white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 15px 0;}.section-header{display:block;position:relative;}.section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.section-header>.anchor{left:-15px;padding-right:8px;}h2.section-header>.anchor{padding-right:6px;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block li.current a{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ - ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:2;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name{display:flex;align-items:center;justify-content:start;flex:3;}.search-results .result-name .alias{color:var(--search-results-alias-color);}.search-results .result-name .grey{color:var(--search-results-grey-color);}.search-results .result-name .typename{color:var(--search-results-grey-color);font-size:0.875rem;width:var(--search-typename-width);}.search-results .result-name .path{word-break:break-all;max-width:calc(100% - var(--search-typename-width));display:inline-block;}.search-results .result-name .path>*{display:inline;}.popover{position:absolute;top:100%;right:0;z-index:calc(var(--desktop-sidebar-z-index) + 1);margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,\ - \ - ');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{display:block;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;white-space:pre-wrap;border-radius:3px;display:inline;vertical-align:baseline;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji,.item-info .stab::before{font-size:1.25rem;}.stab .emoji{margin-right:0.3rem;}.item-info .stab::before{content:"\0";width:0;display:inline-block;color:transparent;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.src .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}.content .docblock .warning{border-left:2px solid var(--warning-border-color);padding:14px;position:relative;overflow-x:visible !important;}.content .docblock .warning::before{color:var(--warning-border-color);content:"ⓘ";position:absolute;left:-25px;top:5px;font-weight:bold;font-size:1.25rem;}a.test-arrow{visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;color:var(--test-arrow-color);background-color:var(--test-arrow-background-color);}a.test-arrow:hover{color:var(--test-arrow-hover-color);background-color:var(--test-arrow-hover-background-color);}.example-wrap:hover .test-arrow{visibility:visible;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}.code-header a.tooltip:hover{color:var(--link-color);}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.fade-out{opacity:0;transition:opacity 0.45s cubic-bezier(0,0,0.1,1.0);}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;font-variant-numeric:tabular-nums;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}.search-corrections{font-weight:normal;}#src-sidebar-toggle{position:sticky;top:0;left:0;font-size:1.25rem;border-bottom:1px solid;display:flex;height:40px;justify-content:stretch;align-items:stretch;z-index:10;}#src-sidebar{width:100%;overflow:auto;}#src-sidebar>.title{font-size:1.5rem;text-align:center;border-bottom:1px solid var(--border-color);margin-bottom:6px;}#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--src-sidebar-background-hover);}#src-sidebar div.files>a.selected{background-color:var(--src-sidebar-background-selected);}#src-sidebar-toggle>button{font-size:inherit;font-weight:bold;background:none;color:inherit;text-align:center;border:none;outline:none;flex:1 1;-webkit-appearance:none;opacity:1;}#settings-menu,#help-button{margin-left:4px;display:flex;}#sidebar-button{display:none;}.hide-sidebar #sidebar-button{display:flex;margin-right:4px;position:fixed;left:6px;height:34px;width:34px;background-color:var(--main-background-color);z-index:1;}#settings-menu>a,#help-button>a,#sidebar-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus,#sidebar-button>a:hover,#sidebar-button>a:focus{border-color:var(--settings-button-border-focus);}#sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');width:22px;height:22px;}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:34px;margin-left:10px;padding:0;padding-left:2px;border:0;width:33px;}#copy-path>img{filter:var(--copy-path-img-filter);}#copy-path:hover>img{filter:var(--copy-path-img-hover-filter);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}@media (max-width:850px){#search-tabs .count{display:block;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.hide-sidebar #sidebar-button{position:static;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location,.sidebar-resizer{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.src main,.rustdoc.src .sidebar{top:0;padding:0;height:100vh;border:0;}.sidebar.shown,.src-sidebar-expanded .src .sidebar,.rustdoc:not(.src) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;}.mobile-topbar h2 a{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.hide-sidebar .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;font-size:32px;border:none;color:var(--main-color);}.hide-sidebar .sidebar-menu-toggle{display:none;}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#src-sidebar-toggle{position:fixed;left:1px;top:100px;width:30px;font-size:1.5rem;padding:0;z-index:10;border-top-right-radius:3px;border-bottom-right-radius:3px;border:1px solid;border-left:0;}.src-sidebar-expanded #src-sidebar-toggle{left:unset;top:unset;width:unset;border-top-right-radius:unset;border-bottom-right-radius:unset;position:sticky;border:0;border-bottom:1px solid;}#copy-path,#help-button{display:none;}#sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');width:22px;height:22px;}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.search-results .result-name{display:block;}.search-results .result-name .typename{width:initial;margin-right:0;}.search-results .result-name .typename,.search-results .result-name .path{display:inline;}.src-sidebar-expanded .src .sidebar{max-width:100vw;width:100vw;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.src nav.sub{margin:0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}}@media print{nav.sidebar,nav.sub,.out-of-band,a.src,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}.sub-logo-container>img{height:35px;width:35px;margin-bottom:var(--nav-sub-mobile-padding);}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;}:root[data-theme="light"]{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="dark"]{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="ayu"]{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);--sidebar-resizer-hover:hsl(34,50%,33%);--sidebar-resizer-active:hsl(34,100%,66%);}:root[data-theme="ayu"] h1,:root[data-theme="ayu"] h2,:root[data-theme="ayu"] h3,:root[data-theme="ayu"] h4,:where(:root[data-theme="ayu"]) h1 a,:root[data-theme="ayu"] .sidebar h2 a,:root[data-theme="ayu"] .sidebar h3 a,:root[data-theme="ayu"] #source-sidebar>.title{color:#fff;}:root[data-theme="ayu"] .docblock code{color:#ffb454;}:root[data-theme="ayu"] .docblock a>code{color:#39AFD7 !important;}:root[data-theme="ayu"] .code-header,:root[data-theme="ayu"] .docblock pre>code,:root[data-theme="ayu"] pre,:root[data-theme="ayu"] pre>code,:root[data-theme="ayu"] .item-info code,:root[data-theme="ayu"] .rustdoc.source .example-wrap{color:#e6e1cf;}:root[data-theme="ayu"] .sidebar .current,:root[data-theme="ayu"] .sidebar .current a,:root[data-theme="ayu"] .sidebar a:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:hover,:root[data-theme="ayu"] details.dir-entry summary:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:focus,:root[data-theme="ayu"] details.dir-entry summary:focus,:root[data-theme="ayu"] #src-sidebar div.files>a.selected{color:#ffb44c;}:root[data-theme="ayu"] .sidebar-elems .location{color:#ff7733;}:root[data-theme="ayu"] .src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}:root[data-theme="ayu"] .search-results a:hover,:root[data-theme="ayu"] .search-results a:focus{color:#fff !important;background-color:#3c3c3c;}:root[data-theme="ayu"] .search-results a{color:#0096cf;}:root[data-theme="ayu"] .search-results a div.desc{color:#c5c5c5;}:root[data-theme="ayu"] .result-name .primitive>i,:root[data-theme="ayu"] .result-name .keyword>i{color:#788797;}:root[data-theme="ayu"] #search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}:root[data-theme="ayu"] #search-tabs>button:not(.selected){border:none;background-color:transparent !important;}:root[data-theme="ayu"] #search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}:root[data-theme="ayu"] #settings-menu>a img,:root[data-theme="ayu"] #sidebar-button>a:before{filter:invert(100);} \ No newline at end of file diff --git a/static.files/search-2b6ce74ff89ae146.js b/static.files/search-2b6ce74ff89ae146.js deleted file mode 100644 index 054597030..000000000 --- a/static.files/search-2b6ce74ff89ae146.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict";if(!Array.prototype.toSpliced){Array.prototype.toSpliced=function(){const me=this.slice();Array.prototype.splice.apply(me,arguments);return me}}(function(){const itemTypes=["keyword","primitive","mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","associatedtype","constant","associatedconstant","union","foreigntype","existential","attr","derive","traitalias","generic",];const longItemTypes=["keyword","primitive type","module","extern crate","re-export","struct","enum","function","type alias","static","trait","","trait method","method","struct field","enum variant","macro","assoc type","constant","assoc const","union","foreign type","existential type","attribute macro","derive macro","trait alias",];const TY_GENERIC=itemTypes.indexOf("generic");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});const isTypeSearch=(nb>0||iter===1);iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb;const correctionsElem=document.getElementsByClassName("search-corrections");if(isTypeSearch){removeClass(correctionsElem[0],"hidden")}else{addClass(correctionsElem[0],"hidden")}}else if(nb!==0){printTab(0)}}const editDistanceState={current:[],prev:[],prevPrev:[],calculate:function calculate(a,b,limit){if(a.lengthlimit){return limit+1}while(b.length>0&&b[0]===a[0]){a=a.substring(1);b=b.substring(1)}while(b.length>0&&b[b.length-1]===a[a.length-1]){a=a.substring(0,a.length-1);b=b.substring(0,b.length-1)}if(b.length===0){return minDist}const aLength=a.length;const bLength=b.length;for(let i=0;i<=bLength;++i){this.current[i]=0;this.prev[i]=i;this.prevPrev[i]=Number.MAX_VALUE}for(let i=1;i<=aLength;++i){this.current[0]=i;const aIdx=i-1;for(let j=1;j<=bLength;++j){const bIdx=j-1;const substitutionCost=a[aIdx]===b[bIdx]?0:1;this.current[j]=Math.min(this.prev[j]+1,this.current[j-1]+1,this.prev[j-1]+substitutionCost);if((i>1)&&(j>1)&&(a[aIdx]===b[bIdx-1])&&(a[aIdx-1]===b[bIdx])){this.current[j]=Math.min(this.current[j],this.prevPrev[j-2]+1)}}const prevPrevTmp=this.prevPrev;this.prevPrev=this.prev;this.prev=this.current;this.current=prevPrevTmp}const distance=this.prev[bLength];return distance<=limit?distance:(limit+1)},};function editDistance(a,b,limit){return editDistanceState.calculate(a,b,limit)}function initSearch(rawSearchIndex){const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;let searchIndex;let functionTypeFingerprint;let currentResults;let typeNameIdMap;const ALIASES=new Map();let typeNameIdOfArray;let typeNameIdOfSlice;let typeNameIdOfArrayOrSlice;function buildTypeMapIndex(name,isAssocType){if(name===""||name===null){return null}if(typeNameIdMap.has(name)){const obj=typeNameIdMap.get(name);obj.assocOnly=isAssocType&&obj.assocOnly;return obj.id}else{const id=typeNameIdMap.size;typeNameIdMap.set(name,{id,assocOnly:isAssocType});return id}}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isEndCharacter(c){return"=,>-]".indexOf(c)!==-1}function isErrorCharacter(c){return"()".indexOf(c)!==-1}function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}function getStringElem(query,parserState,isInGenerics){if(isInGenerics){throw["Unexpected ","\""," in generics"]}else if(query.literalSearch){throw["Cannot have more than one literal search element"]}else if(parserState.totalElems-parserState.genericsElems>0){throw["Cannot use literal search when there is more than one element"]}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw["Unclosed ","\""]}else if(parserState.userQuery[end]!=="\""){throw["Unexpected ",parserState.userQuery[end]," in a string element"]}else if(start===end){throw["Cannot have empty string element"]}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","||c==="="}function isPathSeparator(c){return c===":"||c===" "}function prevIs(parserState,lookingFor){let pos=parserState.pos;while(pos>0){const c=parserState.userQuery[pos-1];if(c===lookingFor){return true}else if(c!==" "){break}pos-=1}return false}function isLastElemGeneric(elems,parserState){return(elems.length>0&&elems[elems.length-1].generics.length>0)||prevIs(parserState,">")}function skipWhitespace(parserState){while(parserState.pos0){throw["Cannot have more than one element if you use quotes"]}const typeFilter=parserState.typeFilter;parserState.typeFilter=null;if(name==="!"){if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive never type ","!"," and ",typeFilter," both specified",]}if(generics.length!==0){throw["Never type ","!"," does not accept generic parameters",]}const bindingName=parserState.isInBinding;parserState.isInBinding=null;return{name:"never",id:null,fullPath:["never"],pathWithoutLast:[],pathLast:"never",normalizedPathLast:"never",generics:[],bindings:new Map(),typeFilter:"primitive",bindingName,}}const quadcolon=/::\s*::/.exec(path);if(path.startsWith("::")){throw["Paths cannot start with ","::"]}else if(path.endsWith("::")){throw["Paths cannot end with ","::"]}else if(quadcolon!==null){throw["Unexpected ",quadcolon[0]]}const pathSegments=path.split(/(?:::\s*)|(?:\s+(?:::\s*)?)/);if(pathSegments.length===0||(pathSegments.length===1&&pathSegments[0]==="")){if(generics.length>0||prevIs(parserState,">")){throw["Found generics without a path"]}else{throw["Unexpected ",parserState.userQuery[parserState.pos]]}}for(const[i,pathSegment]of pathSegments.entries()){if(pathSegment==="!"){if(i!==0){throw["Never type ","!"," is not associated item"]}pathSegments[i]="never"}}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}const bindingName=parserState.isInBinding;parserState.isInBinding=null;const bindings=new Map();const pathLast=pathSegments[pathSegments.length-1];return{name:name.trim(),id:null,fullPath:pathSegments,pathWithoutLast:pathSegments.slice(0,pathSegments.length-1),pathLast,normalizedPathLast:pathLast.replace(/_/g,""),generics:generics.filter(gen=>{if(gen.bindingName!==null){bindings.set(gen.bindingName.name,[gen,...gen.bindingName.generics]);return false}return true}),bindings,typeFilter,bindingName,}}function getIdentEndPosition(parserState){const start=parserState.pos;let end=parserState.pos;let foundExclamation=-1;while(parserState.pos=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(isStringElem){skipWhitespace(parserState)}if(start>=end&&generics.length===0){return}if(parserState.userQuery[parserState.pos]==="="){if(parserState.isInBinding){throw["Cannot write ","="," twice in a binding"]}if(!isInGenerics){throw["Type parameter ","="," must be within generics list"]}const name=parserState.userQuery.slice(start,end).trim();if(name==="!"){throw["Type parameter ","="," key cannot be ","!"," never type"]}if(name.includes("!")){throw["Type parameter ","="," key cannot be ","!"," macro"]}if(name.includes("::")){throw["Type parameter ","="," key cannot contain ","::"," path"]}if(name.includes(":")){throw["Type parameter ","="," key cannot contain ",":"," type"]}parserState.isInBinding={name,generics}}else{elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}}}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let start=parserState.pos;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;const oldIsInBinding=parserState.isInBinding;parserState.isInBinding=null;let extra="";if(endChar===">"){extra="<"}else if(endChar==="]"){extra="["}else if(endChar===""){extra="->"}else{extra=endChar}while(parserState.pos"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(endChar!==""){throw["Expected ",",",", ","=",", or ",endChar,...extra,", found ",c,]}throw["Expected ",","," or ","=",...extra,", found ",c,]}const posBefore=parserState.pos;start=parserState.pos;getNextElem(query,parserState,elems,endChar!=="");if(endChar!==""&&parserState.pos>=parserState.length){throw["Unclosed ",extra]}if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}if(parserState.pos>=parserState.length&&endChar!==""){throw["Unclosed ",extra]}parserState.pos+=1;parserState.typeFilter=oldTypeFilter;parserState.isInBinding=oldIsInBinding}function checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery.slice(start,parserState.pos).trim();for(const c in query){if(!isIdentCharacter(query[c])){throw["Unexpected ",query[c]," in type filter (before ",":",")",]}}}function parseInput(query,parserState){let foundStopChar=true;let start=parserState.pos;while(parserState.pos"){if(isReturnArrow(parserState)){break}throw["Unexpected ",c," (did you mean ","->","?)"]}throw["Unexpected ",c]}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}else if(query.elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["Cannot use quotes on type filter"]}const typeFilterElem=query.elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;foundStopChar=true;continue}else if(c===" "){skipWhitespace(parserState);continue}if(!foundStopChar){let extra="";if(isLastElemGeneric(query.elems,parserState)){extra=[" after ",">"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(parserState.typeFilter!==null){throw["Expected ",","," or ","->",...extra,", found ",c,]}throw["Expected ",",",", ",":"," or ","->",...extra,", found ",c,]}const before=query.elems.length;start=parserState.pos;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}while(parserState.pos"]}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),elems:[],returned:[],foundElems:0,totalElems:0,literalSearch:false,error:null,correction:null,proposeCorrectionFrom:null,proposeCorrectionTo:null,typeFingerprint:new Uint32Array(4),}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&rawSearchIndex.has(elem.value)){return elem.value}return null}function parseQuery(userQuery){function convertTypeFilterOnElem(elem){if(elem.typeFilter!==null){let typeFilter=elem.typeFilter;if(typeFilter==="const"){typeFilter="constant"}elem.typeFilter=itemTypeFromName(typeFilter)}else{elem.typeFilter=NO_TYPE_FILTER}for(const elem2 of elem.generics){convertTypeFilterOnElem(elem2)}for(const constraints of elem.bindings.values()){for(const constraint of constraints){convertTypeFilterOnElem(constraint)}}}userQuery=userQuery.trim().replace(/\r|\n|\t/g," ");const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,isInBinding:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);for(const elem of query.elems){convertTypeFilterOnElem(elem)}for(const elem of query.returned){convertTypeFilterOnElem(elem)}}catch(err){query=newParsedQuery(userQuery);query.error=err;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;query.totalElems=parserState.totalElems;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function transformResults(results){const duplicates=new Set();const out=[];for(const result of results){if(result.id!==-1){const obj=searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}duplicates.add(obj.fullPath);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){if(results.size===0){return[]}const userQuery=parsedQuery.userQuery;const result_list=[];for(const result of results.values()){result.item=searchIndex[result.id];result.word=searchIndex[result.id].word;result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_dist;b=bbb.path_dist;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.dist);b=(bbb.dist);if(a!==b){return a-b}a=aaa.item.deprecated;b=bbb.item.deprecated;if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});return transformResults(result_list)}function unifyFunctionTypes(fnTypesIn,queryElems,whereClause,mgensIn,solutionCb){const mgens=mgensIn===null?null:new Map(mgensIn);if(queryElems.length===0){return!solutionCb||solutionCb(mgens)}if(!fnTypesIn||fnTypesIn.length===0){return false}const ql=queryElems.length;const fl=fnTypesIn.length;if(ql===1&&queryElems[0].generics.length===0&&queryElems[0].bindings.size===0){const queryElem=queryElems[0];for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgens)){continue}if(fnType.id<0&&queryElem.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==queryElem.id){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,queryElem.id);if(!solutionCb||solutionCb(mgensScratch)){return true}}else if(!solutionCb||solutionCb(mgens?new Map(mgens):null)){return true}}for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens)){continue}if(fnType.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,0);if(unifyFunctionTypes(whereClause[(-fnType.id)-1],queryElems,whereClause,mgensScratch,solutionCb)){return true}}else if(unifyFunctionTypes([...fnType.generics,...Array.from(fnType.bindings.values()).flat()],queryElems,whereClause,mgens?new Map(mgens):null,solutionCb)){return true}}return false}const fnTypes=fnTypesIn.slice();const flast=fl-1;const qlast=ql-1;const queryElem=queryElems[qlast];let queryElemsTmp=null;for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgens)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==queryElem.id){continue}mgensScratch.set(fnType.id,queryElem.id)}else{mgensScratch=mgens}fnTypes[i]=fnTypes[flast];fnTypes.length=flast;if(!queryElemsTmp){queryElemsTmp=queryElems.slice(0,qlast)}const passesUnification=unifyFunctionTypes(fnTypes,queryElemsTmp,whereClause,mgensScratch,mgensScratch=>{if(fnType.generics.length===0&&queryElem.generics.length===0&&fnType.bindings.size===0&&queryElem.bindings.size===0){return!solutionCb||solutionCb(mgensScratch)}const solution=unifyFunctionTypeCheckBindings(fnType,queryElem,whereClause,mgensScratch);if(!solution){return false}const simplifiedGenerics=solution.simplifiedGenerics;for(const simplifiedMgens of solution.mgens){const passesUnification=unifyFunctionTypes(simplifiedGenerics,queryElem.generics,whereClause,simplifiedMgens,solutionCb);if(passesUnification){return true}}return false});if(passesUnification){return true}fnTypes[flast]=fnTypes[i];fnTypes[i]=fnType;fnTypes.length=fl}for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==0){continue}mgensScratch.set(fnType.id,0)}else{mgensScratch=mgens}const generics=fnType.id<0?whereClause[(-fnType.id)-1]:fnType.generics;const bindings=fnType.bindings?Array.from(fnType.bindings.values()).flat():[];const passesUnification=unifyFunctionTypes(fnTypes.toSpliced(i,1,...generics,...bindings),queryElems,whereClause,mgensScratch,solutionCb);if(passesUnification){return true}}return false}function unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgensIn){if(!typePassesFilter(queryElem.typeFilter,fnType.ty)){return false}if(fnType.id<0&&queryElem.id<0){if(mgensIn){if(mgensIn.has(fnType.id)&&mgensIn.get(fnType.id)!==queryElem.id){return false}for(const[fid,qid]of mgensIn.entries()){if(fnType.id!==fid&&queryElem.id===qid){return false}if(fnType.id===fid&&queryElem.id!==qid){return false}}}return true}else{if(queryElem.id===typeNameIdOfArrayOrSlice&&(fnType.id===typeNameIdOfSlice||fnType.id===typeNameIdOfArray)){}else if(fnType.id!==queryElem.id||queryElem.id===null){return false}if((fnType.generics.length+fnType.bindings.size)===0&&queryElem.generics.length!==0){return false}if(fnType.bindings.size0){const fnTypePath=fnType.path!==undefined&&fnType.path!==null?fnType.path.split("::"):[];if(queryElemPathLength>fnTypePath.length){return false}let i=0;for(const path of fnTypePath){if(path===queryElem.pathWithoutLast[i]){i+=1;if(i>=queryElemPathLength){break}}}if(i0){let mgensSolutionSet=[mgensIn];for(const[name,constraints]of queryElem.bindings.entries()){if(mgensSolutionSet.length===0){return false}if(!fnType.bindings.has(name)){return false}const fnTypeBindings=fnType.bindings.get(name);mgensSolutionSet=mgensSolutionSet.flatMap(mgens=>{const newSolutions=[];unifyFunctionTypes(fnTypeBindings,constraints,whereClause,mgens,newMgens=>{newSolutions.push(newMgens);return false});return newSolutions})}if(mgensSolutionSet.length===0){return false}const binds=Array.from(fnType.bindings.entries()).flatMap(entry=>{const[name,constraints]=entry;if(queryElem.bindings.has(name)){return[]}else{return constraints}});if(simplifiedGenerics.length>0){simplifiedGenerics=[...simplifiedGenerics,...binds]}else{simplifiedGenerics=binds}return{simplifiedGenerics,mgens:mgensSolutionSet}}return{simplifiedGenerics,mgens:[mgensIn]}}function unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens){if(fnType.id<0&&queryElem.id>=0){if(!whereClause){return false}if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){return false}const mgensTmp=new Map(mgens);mgensTmp.set(fnType.id,null);return checkIfInList(whereClause[(-fnType.id)-1],queryElem,whereClause,mgensTmp)}else if(fnType.generics.length>0||fnType.bindings.size>0){const simplifiedGenerics=[...fnType.generics,...Array.from(fnType.bindings.values()).flat(),];return checkIfInList(simplifiedGenerics,queryElem,whereClause,mgens)}return false}function checkIfInList(list,elem,whereClause,mgens){for(const entry of list){if(checkType(entry,elem,whereClause,mgens)){return true}}return false}function checkType(row,elem,whereClause,mgens){if(row.bindings.size===0&&elem.bindings.size===0){if(elem.id<0){return row.id<0||checkIfInList(row.generics,elem,whereClause,mgens)}if(row.id>0&&elem.id>0&&elem.pathWithoutLast.length===0&&typePassesFilter(elem.typeFilter,row.ty)&&elem.generics.length===0&&elem.id!==typeNameIdOfArrayOrSlice){return row.id===elem.id||checkIfInList(row.generics,elem,whereClause,mgens)}}return unifyFunctionTypes([row],[elem],whereClause,mgens)}function checkPath(contains,ty,maxEditDistance){if(contains.length===0){return 0}let ret_dist=maxEditDistance+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;pathiter:for(let i=length-clength;i>=0;i-=1){let dist_total=0;for(let x=0;xmaxEditDistance){continue pathiter}dist_total+=dist}ret_dist=Math.min(ret_dist,Math.round(dist_total/clength))}return ret_dist}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,deprecated:item.deprecated,implDisambiguator:item.implDisambiguator,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES.has(filterCrates)&&ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of ALIASES){if(crateAliasesIndex.has(lowerQuery)){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=crateAliasesIndex.get(lowerQuery);for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,dist,path_dist,maxEditDistance){if(dist<=maxEditDistance||index!==-1){if(results.has(fullId)){const result=results.get(fullId);if(result.dontValidate||result.dist<=dist){return}}results.set(fullId,{id:id,index:index,dontValidate:parsedQuery.literalSearch,dist:dist,path_dist:path_dist,})}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned,maxEditDistance){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let path_dist=0;const fullId=row.id;const tfpDist=compareTypeFingerprints(fullId,parsedQuery.typeFingerprint);if(tfpDist!==null){const in_args=row.type&&row.type.inputs&&checkIfInList(row.type.inputs,elem,row.type.where_clause);const returned=row.type&&row.type.output&&checkIfInList(row.type.output,elem,row.type.where_clause);if(in_args){results_in_args.max_dist=Math.max(results_in_args.max_dist||0,tfpDist);const maxDist=results_in_args.sizenormalizedIndex&&normalizedIndex!==-1)){index=normalizedIndex}if(elem.fullPath.length>1){path_dist=checkPath(elem.pathWithoutLast,row,maxEditDistance);if(path_dist>maxEditDistance){return}}if(parsedQuery.literalSearch){if(row.word===elem.pathLast){addIntoResults(results_others,fullId,pos,index,0,path_dist)}return}const dist=editDistance(row.normalizedName,elem.normalizedPathLast,maxEditDistance);if(index===-1&&dist+path_dist>maxEditDistance){return}addIntoResults(results_others,fullId,pos,index,dist,path_dist,maxEditDistance)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)||!row.type){return}const tfpDist=compareTypeFingerprints(row.id,parsedQuery.typeFingerprint);if(tfpDist===null){return}if(results.size>=MAX_RESULTS&&tfpDist>results.max_dist){return}if(!unifyFunctionTypes(row.type.inputs,parsedQuery.elems,row.type.where_clause,null,mgens=>{return unifyFunctionTypes(row.type.output,parsedQuery.returned,row.type.where_clause,mgens)})){return}results.max_dist=Math.max(results.max_dist||0,tfpDist);addIntoResults(results,row.id,pos,0,tfpDist,0,Number.MAX_VALUE)}function innerRunQuery(){let queryLen=0;for(const elem of parsedQuery.elems){queryLen+=elem.name.length}for(const elem of parsedQuery.returned){queryLen+=elem.name.length}const maxEditDistance=Math.floor(queryLen/3);const genericSymbols=new Map();function convertNameToId(elem,isAssocType){if(typeNameIdMap.has(elem.normalizedPathLast)&&(isAssocType||!typeNameIdMap.get(elem.normalizedPathLast).assocOnly)){elem.id=typeNameIdMap.get(elem.normalizedPathLast).id}else if(!parsedQuery.literalSearch){let match=null;let matchDist=maxEditDistance+1;let matchName="";for(const[name,{id,assocOnly}]of typeNameIdMap){const dist=editDistance(name,elem.normalizedPathLast,maxEditDistance);if(dist<=matchDist&&dist<=maxEditDistance&&(isAssocType||!assocOnly)){if(dist===matchDist&&matchName>name){continue}match=id;matchDist=dist;matchName=name}}if(match!==null){parsedQuery.correction=matchName}elem.id=match}if((elem.id===null&&parsedQuery.totalElems>1&&elem.typeFilter===-1&&elem.generics.length===0&&elem.bindings.size===0)||elem.typeFilter===TY_GENERIC){if(genericSymbols.has(elem.name)){elem.id=genericSymbols.get(elem.name)}else{elem.id=-(genericSymbols.size+1);genericSymbols.set(elem.name,elem.id)}if(elem.typeFilter===-1&&elem.name.length>=3){const maxPartDistance=Math.floor(elem.name.length/3);let matchDist=maxPartDistance+1;let matchName="";for(const name of typeNameIdMap.keys()){const dist=editDistance(name,elem.name,maxPartDistance);if(dist<=matchDist&&dist<=maxPartDistance){if(dist===matchDist&&matchName>name){continue}matchDist=dist;matchName=name}}if(matchName!==""){parsedQuery.proposeCorrectionFrom=elem.name;parsedQuery.proposeCorrectionTo=matchName}}elem.typeFilter=TY_GENERIC}if(elem.generics.length>0&&elem.typeFilter===TY_GENERIC){parsedQuery.error=["Generic type parameter ",elem.name," does not accept generic parameters",]}for(const elem2 of elem.generics){convertNameToId(elem2)}elem.bindings=new Map(Array.from(elem.bindings.entries()).map(entry=>{const[name,constraints]=entry;if(!typeNameIdMap.has(name)){parsedQuery.error=["Type parameter ",name," does not exist",];return[null,[]]}for(const elem2 of constraints){convertNameToId(elem2)}return[typeNameIdMap.get(name).id,constraints]}))}const fps=new Set();for(const elem of parsedQuery.elems){convertNameToId(elem);buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}for(const elem of parsedQuery.returned){convertNameToId(elem);buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}if(parsedQuery.foundElems===1&&parsedQuery.returned.length===0){if(parsedQuery.elems.length===1){const elem=parsedQuery.elems[0];for(let i=0,nSearchIndex=searchIndex.length;i0){const sortQ=(a,b)=>{const ag=a.generics.length===0&&a.bindings.size===0;const bg=b.generics.length===0&&b.bindings.size===0;if(ag!==bg){return ag-bg}const ai=a.id>0;const bi=b.id>0;return ai-bi};parsedQuery.elems.sort(sortQ);parsedQuery.returned.sort(sortQ);for(let i=0,nSearchIndex=searchIndex.length;i");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){const extraClass=display?" active":"";const output=document.createElement("div");if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];const longType=longItemTypes[item.ty];const typeName=longType.length!==0?`${longType}`:"?";const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";resultName.insertAdjacentHTML("beforeend",`${typeName}`);link.appendChild(resultName);let alias=" ";if(item.is_alias){alias=`
    \ -${item.alias} - see \ -
    `}resultName.insertAdjacentHTML("beforeend",`
    ${alias}\ -${item.displayPath}${name}\ -
    `);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)})}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
    "+"Try on DuckDuckGo?

    "+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const ret_others=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=addTab(results.returned,results.query,false);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates=" in 
    "}let output=`

    Results${crates}

    `;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}`}else{error[index]=value}});output+=`

    Query parser error: "${error.join("")}".

    `;output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+"
    ";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
    "}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
    "+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
    ";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+="

    "+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.

    `}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+="

    "+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.

    `}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}function search(forced){const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));showResults(execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){return types.map(type=>buildItemSearchType(type,lowercasePaths))}function buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=[];bindings=new Map()}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths);if(type.length>BINDINGS_DATA){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[buildItemSearchType(assocType,lowercasePaths,true).id,buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=new Map()}}if(pathIndex<0){return{id:pathIndex,ty:TY_GENERIC,path:null,generics,bindings,}}if(pathIndex===0){return{id:null,ty:null,path:null,generics,bindings,}}const item=lowercasePaths[pathIndex-1];return{id:buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,generics,bindings,}}function buildFunctionSearchType(functionSearchType,lowercasePaths){const INPUTS_DATA=0;const OUTPUT_DATA=1;if(functionSearchType===0){return null}let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths)]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths)]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;i{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:[],bindings:new Map(),};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}function compareTypeFingerprints(fullId,queryFingerprint){const fh0=functionTypeFingerprint[fullId*4];const fh1=functionTypeFingerprint[(fullId*4)+1];const fh2=functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return functionTypeFingerprint[(fullId*4)+3]}function buildIndex(rawSearchIndex){searchIndex=[];typeNameIdMap=new Map();const charA="A".charCodeAt(0);let currentIndex=0;let id=0;typeNameIdOfArray=buildTypeMapIndex("array");typeNameIdOfSlice=buildTypeMapIndex("slice");typeNameIdOfArrayOrSlice=buildTypeMapIndex("[]");for(const crate of rawSearchIndex.values()){id+=crate.t.length+1}functionTypeFingerprint=new Uint32Array((id+1)*4);id=0;for(const[crate,crateCorpus]of rawSearchIndex){const crateRow={crate:crate,ty:3,name:crate,path:"",desc:crateCorpus.doc,parent:undefined,type:null,id:id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),deprecated:null,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemDescs=crateCorpus.d;const itemParentIdxs=crateCorpus.i;const itemFunctionSearchTypes=crateCorpus.f;const deprecatedItems=new Set(crateCorpus.c);const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}lowercasePaths.push({ty:ty,name:name.toLowerCase(),path:path});paths[i]={ty:ty,name:name,path:path}}lastPath="";len=itemTypes.length;for(let i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type,id:id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),deprecated:deprecatedItems.has(i),implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length}}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file diff --git a/static.files/search-dd67cee4cfa65049.js b/static.files/search-dd67cee4cfa65049.js new file mode 100644 index 000000000..ef8bf865a --- /dev/null +++ b/static.files/search-dd67cee4cfa65049.js @@ -0,0 +1,5 @@ +"use strict";if(!Array.prototype.toSpliced){Array.prototype.toSpliced=function(){const me=this.slice();Array.prototype.splice.apply(me,arguments);return me}}(function(){const itemTypes=["keyword","primitive","mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","associatedtype","constant","associatedconstant","union","foreigntype","existential","attr","derive","traitalias","generic",];const longItemTypes=["keyword","primitive type","module","extern crate","re-export","struct","enum","function","type alias","static","trait","","trait method","method","struct field","enum variant","macro","assoc type","constant","assoc const","union","foreign type","existential type","attribute macro","derive macro","trait alias",];const TY_GENERIC=itemTypes.indexOf("generic");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});const isTypeSearch=(nb>0||iter===1);iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb;const correctionsElem=document.getElementsByClassName("search-corrections");if(isTypeSearch){removeClass(correctionsElem[0],"hidden")}else{addClass(correctionsElem[0],"hidden")}}else if(nb!==0){printTab(0)}}const editDistanceState={current:[],prev:[],prevPrev:[],calculate:function calculate(a,b,limit){if(a.lengthlimit){return limit+1}while(b.length>0&&b[0]===a[0]){a=a.substring(1);b=b.substring(1)}while(b.length>0&&b[b.length-1]===a[a.length-1]){a=a.substring(0,a.length-1);b=b.substring(0,b.length-1)}if(b.length===0){return minDist}const aLength=a.length;const bLength=b.length;for(let i=0;i<=bLength;++i){this.current[i]=0;this.prev[i]=i;this.prevPrev[i]=Number.MAX_VALUE}for(let i=1;i<=aLength;++i){this.current[0]=i;const aIdx=i-1;for(let j=1;j<=bLength;++j){const bIdx=j-1;const substitutionCost=a[aIdx]===b[bIdx]?0:1;this.current[j]=Math.min(this.prev[j]+1,this.current[j-1]+1,this.prev[j-1]+substitutionCost);if((i>1)&&(j>1)&&(a[aIdx]===b[bIdx-1])&&(a[aIdx-1]===b[bIdx])){this.current[j]=Math.min(this.current[j],this.prevPrev[j-2]+1)}}const prevPrevTmp=this.prevPrev;this.prevPrev=this.prev;this.prev=this.current;this.current=prevPrevTmp}const distance=this.prev[bLength];return distance<=limit?distance:(limit+1)},};function editDistance(a,b,limit){return editDistanceState.calculate(a,b,limit)}function initSearch(rawSearchIndex){const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;let searchIndex;let functionTypeFingerprint;let currentResults;let typeNameIdMap;const ALIASES=new Map();let typeNameIdOfArray;let typeNameIdOfSlice;let typeNameIdOfArrayOrSlice;let typeNameIdOfTuple;let typeNameIdOfUnit;let typeNameIdOfTupleOrUnit;function buildTypeMapIndex(name,isAssocType){if(name===""||name===null){return null}if(typeNameIdMap.has(name)){const obj=typeNameIdMap.get(name);obj.assocOnly=isAssocType&&obj.assocOnly;return obj.id}else{const id=typeNameIdMap.size;typeNameIdMap.set(name,{id,assocOnly:isAssocType});return id}}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isEndCharacter(c){return"=,>-])".indexOf(c)!==-1}function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}function getStringElem(query,parserState,isInGenerics){if(isInGenerics){throw["Unexpected ","\""," in generics"]}else if(query.literalSearch){throw["Cannot have more than one literal search element"]}else if(parserState.totalElems-parserState.genericsElems>0){throw["Cannot use literal search when there is more than one element"]}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw["Unclosed ","\""]}else if(parserState.userQuery[end]!=="\""){throw["Unexpected ",parserState.userQuery[end]," in a string element"]}else if(start===end){throw["Cannot have empty string element"]}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","||c==="="}function isPathSeparator(c){return c===":"||c===" "}function prevIs(parserState,lookingFor){let pos=parserState.pos;while(pos>0){const c=parserState.userQuery[pos-1];if(c===lookingFor){return true}else if(c!==" "){break}pos-=1}return false}function isLastElemGeneric(elems,parserState){return(elems.length>0&&elems[elems.length-1].generics.length>0)||prevIs(parserState,">")}function skipWhitespace(parserState){while(parserState.pos0){throw["Cannot have more than one element if you use quotes"]}const typeFilter=parserState.typeFilter;parserState.typeFilter=null;if(name==="!"){if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive never type ","!"," and ",typeFilter," both specified",]}if(generics.length!==0){throw["Never type ","!"," does not accept generic parameters",]}const bindingName=parserState.isInBinding;parserState.isInBinding=null;return{name:"never",id:null,fullPath:["never"],pathWithoutLast:[],pathLast:"never",normalizedPathLast:"never",generics:[],bindings:new Map(),typeFilter:"primitive",bindingName,}}const quadcolon=/::\s*::/.exec(path);if(path.startsWith("::")){throw["Paths cannot start with ","::"]}else if(path.endsWith("::")){throw["Paths cannot end with ","::"]}else if(quadcolon!==null){throw["Unexpected ",quadcolon[0]]}const pathSegments=path.split(/(?:::\s*)|(?:\s+(?:::\s*)?)/);if(pathSegments.length===0||(pathSegments.length===1&&pathSegments[0]==="")){if(generics.length>0||prevIs(parserState,">")){throw["Found generics without a path"]}else{throw["Unexpected ",parserState.userQuery[parserState.pos]]}}for(const[i,pathSegment]of pathSegments.entries()){if(pathSegment==="!"){if(i!==0){throw["Never type ","!"," is not associated item"]}pathSegments[i]="never"}}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}const bindingName=parserState.isInBinding;parserState.isInBinding=null;const bindings=new Map();const pathLast=pathSegments[pathSegments.length-1];return{name:name.trim(),id:null,fullPath:pathSegments,pathWithoutLast:pathSegments.slice(0,pathSegments.length-1),pathLast,normalizedPathLast:pathLast.replace(/_/g,""),generics:generics.filter(gen=>{if(gen.bindingName!==null){bindings.set(gen.bindingName.name,[gen,...gen.bindingName.generics]);return false}return true}),bindings,typeFilter,bindingName,}}function getIdentEndPosition(parserState){const start=parserState.pos;let end=parserState.pos;let foundExclamation=-1;while(parserState.pos0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]]}else{throw["Unexpected ",c]}}parserState.pos+=1;end=parserState.pos}if(foundExclamation!==-1&&foundExclamation!==start&&isIdentCharacter(parserState.userQuery[foundExclamation-1])){if(parserState.typeFilter===null){parserState.typeFilter="macro"}else if(parserState.typeFilter!=="macro"){throw["Invalid search type: macro ","!"," and ",parserState.typeFilter," both specified",]}end=foundExclamation}return end}function getNextElem(query,parserState,elems,isInGenerics){const generics=[];skipWhitespace(parserState);let start=parserState.pos;let end;if("[(".indexOf(parserState.userQuery[parserState.pos])!==-1){let endChar=")";let name="()";let friendlyName="tuple";if(parserState.userQuery[parserState.pos]==="["){endChar="]";name="[]";friendlyName="slice"}parserState.pos+=1;const{foundSeparator}=getItemsBefore(query,parserState,generics,endChar);const typeFilter=parserState.typeFilter;const isInBinding=parserState.isInBinding;if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive ",name," and ",typeFilter," both specified",]}parserState.typeFilter=null;parserState.isInBinding=null;for(const gen of generics){if(gen.bindingName!==null){throw["Type parameter ","=",` cannot be within ${friendlyName} `,name]}}if(name==="()"&&!foundSeparator&&generics.length===1&&typeFilter===null){elems.push(generics[0])}else{parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}elems.push({name:name,id:null,fullPath:[name],pathWithoutLast:[],pathLast:name,normalizedPathLast:name,generics,bindings:new Map(),typeFilter:"primitive",bindingName:isInBinding,})}}else{const isStringElem=parserState.userQuery[start]==="\"";if(isStringElem){start+=1;getStringElem(query,parserState,isInGenerics);end=parserState.pos-1}else{end=getIdentEndPosition(parserState)}if(parserState.pos=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(isStringElem){skipWhitespace(parserState)}if(start>=end&&generics.length===0){return}if(parserState.userQuery[parserState.pos]==="="){if(parserState.isInBinding){throw["Cannot write ","="," twice in a binding"]}if(!isInGenerics){throw["Type parameter ","="," must be within generics list"]}const name=parserState.userQuery.slice(start,end).trim();if(name==="!"){throw["Type parameter ","="," key cannot be ","!"," never type"]}if(name.includes("!")){throw["Type parameter ","="," key cannot be ","!"," macro"]}if(name.includes("::")){throw["Type parameter ","="," key cannot contain ","::"," path"]}if(name.includes(":")){throw["Type parameter ","="," key cannot contain ",":"," type"]}parserState.isInBinding={name,generics}}else{elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}}}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let foundSeparator=false;let start=parserState.pos;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;const oldIsInBinding=parserState.isInBinding;parserState.isInBinding=null;let extra="";if(endChar===">"){extra="<"}else if(endChar==="]"){extra="["}else if(endChar===")"){extra="("}else if(endChar===""){extra="->"}else{extra=endChar}while(parserState.pos"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(endChar!==""){throw["Expected ",",",", ","=",", or ",endChar,...extra,", found ",c,]}throw["Expected ",","," or ","=",...extra,", found ",c,]}const posBefore=parserState.pos;start=parserState.pos;getNextElem(query,parserState,elems,endChar!=="");if(endChar!==""&&parserState.pos>=parserState.length){throw["Unclosed ",extra]}if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}if(parserState.pos>=parserState.length&&endChar!==""){throw["Unclosed ",extra]}parserState.pos+=1;parserState.typeFilter=oldTypeFilter;parserState.isInBinding=oldIsInBinding;return{foundSeparator}}function checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery.slice(start,parserState.pos).trim();for(const c in query){if(!isIdentCharacter(query[c])){throw["Unexpected ",query[c]," in type filter (before ",":",")",]}}}function parseInput(query,parserState){let foundStopChar=true;let start=parserState.pos;while(parserState.pos"){if(isReturnArrow(parserState)){break}throw["Unexpected ",c," (did you mean ","->","?)"]}else if(parserState.pos>0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]]}throw["Unexpected ",c]}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}else if(query.elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["Cannot use quotes on type filter"]}const typeFilterElem=query.elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;foundStopChar=true;continue}else if(c===" "){skipWhitespace(parserState);continue}if(!foundStopChar){let extra="";if(isLastElemGeneric(query.elems,parserState)){extra=[" after ",">"]}else if(prevIs(parserState,"\"")){throw["Cannot have more than one element if you use quotes"]}if(parserState.typeFilter!==null){throw["Expected ",","," or ","->",...extra,", found ",c,]}throw["Expected ",",",", ",":"," or ","->",...extra,", found ",c,]}const before=query.elems.length;start=parserState.pos;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}while(parserState.pos"]}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),elems:[],returned:[],foundElems:0,totalElems:0,literalSearch:false,error:null,correction:null,proposeCorrectionFrom:null,proposeCorrectionTo:null,typeFingerprint:new Uint32Array(4),}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&rawSearchIndex.has(elem.value)){return elem.value}return null}function parseQuery(userQuery){function convertTypeFilterOnElem(elem){if(elem.typeFilter!==null){let typeFilter=elem.typeFilter;if(typeFilter==="const"){typeFilter="constant"}elem.typeFilter=itemTypeFromName(typeFilter)}else{elem.typeFilter=NO_TYPE_FILTER}for(const elem2 of elem.generics){convertTypeFilterOnElem(elem2)}for(const constraints of elem.bindings.values()){for(const constraint of constraints){convertTypeFilterOnElem(constraint)}}}userQuery=userQuery.trim().replace(/\r|\n|\t/g," ");const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,isInBinding:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);for(const elem of query.elems){convertTypeFilterOnElem(elem)}for(const elem of query.returned){convertTypeFilterOnElem(elem)}}catch(err){query=newParsedQuery(userQuery);query.error=err;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;query.totalElems=parserState.totalElems;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function transformResults(results){const duplicates=new Set();const out=[];for(const result of results){if(result.id!==-1){const obj=searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}duplicates.add(obj.fullPath);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){if(results.size===0){return[]}const userQuery=parsedQuery.userQuery;const result_list=[];for(const result of results.values()){result.item=searchIndex[result.id];result.word=searchIndex[result.id].word;result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_dist;b=bbb.path_dist;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.dist);b=(bbb.dist);if(a!==b){return a-b}a=aaa.item.deprecated;b=bbb.item.deprecated;if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});return transformResults(result_list)}function unifyFunctionTypes(fnTypesIn,queryElems,whereClause,mgensIn,solutionCb){const mgens=mgensIn===null?null:new Map(mgensIn);if(queryElems.length===0){return!solutionCb||solutionCb(mgens)}if(!fnTypesIn||fnTypesIn.length===0){return false}const ql=queryElems.length;const fl=fnTypesIn.length;if(ql===1&&queryElems[0].generics.length===0&&queryElems[0].bindings.size===0){const queryElem=queryElems[0];for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgens)){continue}if(fnType.id<0&&queryElem.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==queryElem.id){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,queryElem.id);if(!solutionCb||solutionCb(mgensScratch)){return true}}else if(!solutionCb||solutionCb(mgens?new Map(mgens):null)){return true}}for(const fnType of fnTypesIn){if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens)){continue}if(fnType.id<0){if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){continue}const mgensScratch=new Map(mgens);mgensScratch.set(fnType.id,0);if(unifyFunctionTypes(whereClause[(-fnType.id)-1],queryElems,whereClause,mgensScratch,solutionCb)){return true}}else if(unifyFunctionTypes([...fnType.generics,...Array.from(fnType.bindings.values()).flat()],queryElems,whereClause,mgens?new Map(mgens):null,solutionCb)){return true}}return false}const fnTypes=fnTypesIn.slice();const flast=fl-1;const qlast=ql-1;const queryElem=queryElems[qlast];let queryElemsTmp=null;for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgens)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==queryElem.id){continue}mgensScratch.set(fnType.id,queryElem.id)}else{mgensScratch=mgens}fnTypes[i]=fnTypes[flast];fnTypes.length=flast;if(!queryElemsTmp){queryElemsTmp=queryElems.slice(0,qlast)}const passesUnification=unifyFunctionTypes(fnTypes,queryElemsTmp,whereClause,mgensScratch,mgensScratch=>{if(fnType.generics.length===0&&queryElem.generics.length===0&&fnType.bindings.size===0&&queryElem.bindings.size===0){return!solutionCb||solutionCb(mgensScratch)}const solution=unifyFunctionTypeCheckBindings(fnType,queryElem,whereClause,mgensScratch);if(!solution){return false}const simplifiedGenerics=solution.simplifiedGenerics;for(const simplifiedMgens of solution.mgens){const passesUnification=unifyFunctionTypes(simplifiedGenerics,queryElem.generics,whereClause,simplifiedMgens,solutionCb);if(passesUnification){return true}}return false});if(passesUnification){return true}fnTypes[flast]=fnTypes[i];fnTypes[i]=fnType;fnTypes.length=fl}for(let i=flast;i>=0;i-=1){const fnType=fnTypes[i];if(!unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens)){continue}let mgensScratch;if(fnType.id<0){mgensScratch=new Map(mgens);if(mgensScratch.has(fnType.id)&&mgensScratch.get(fnType.id)!==0){continue}mgensScratch.set(fnType.id,0)}else{mgensScratch=mgens}const generics=fnType.id<0?whereClause[(-fnType.id)-1]:fnType.generics;const bindings=fnType.bindings?Array.from(fnType.bindings.values()).flat():[];const passesUnification=unifyFunctionTypes(fnTypes.toSpliced(i,1,...generics,...bindings),queryElems,whereClause,mgensScratch,solutionCb);if(passesUnification){return true}}return false}function unifyFunctionTypeIsMatchCandidate(fnType,queryElem,whereClause,mgensIn){if(!typePassesFilter(queryElem.typeFilter,fnType.ty)){return false}if(fnType.id<0&&queryElem.id<0){if(mgensIn){if(mgensIn.has(fnType.id)&&mgensIn.get(fnType.id)!==queryElem.id){return false}for(const[fid,qid]of mgensIn.entries()){if(fnType.id!==fid&&queryElem.id===qid){return false}if(fnType.id===fid&&queryElem.id!==qid){return false}}}return true}else{if(queryElem.id===typeNameIdOfArrayOrSlice&&(fnType.id===typeNameIdOfSlice||fnType.id===typeNameIdOfArray)){}else if(queryElem.id===typeNameIdOfTupleOrUnit&&(fnType.id===typeNameIdOfTuple||fnType.id===typeNameIdOfUnit)){}else if(fnType.id!==queryElem.id||queryElem.id===null){return false}if((fnType.generics.length+fnType.bindings.size)===0&&queryElem.generics.length!==0){return false}if(fnType.bindings.size0){const fnTypePath=fnType.path!==undefined&&fnType.path!==null?fnType.path.split("::"):[];if(queryElemPathLength>fnTypePath.length){return false}let i=0;for(const path of fnTypePath){if(path===queryElem.pathWithoutLast[i]){i+=1;if(i>=queryElemPathLength){break}}}if(i0){let mgensSolutionSet=[mgensIn];for(const[name,constraints]of queryElem.bindings.entries()){if(mgensSolutionSet.length===0){return false}if(!fnType.bindings.has(name)){return false}const fnTypeBindings=fnType.bindings.get(name);mgensSolutionSet=mgensSolutionSet.flatMap(mgens=>{const newSolutions=[];unifyFunctionTypes(fnTypeBindings,constraints,whereClause,mgens,newMgens=>{newSolutions.push(newMgens);return false});return newSolutions})}if(mgensSolutionSet.length===0){return false}const binds=Array.from(fnType.bindings.entries()).flatMap(entry=>{const[name,constraints]=entry;if(queryElem.bindings.has(name)){return[]}else{return constraints}});if(simplifiedGenerics.length>0){simplifiedGenerics=[...simplifiedGenerics,...binds]}else{simplifiedGenerics=binds}return{simplifiedGenerics,mgens:mgensSolutionSet}}return{simplifiedGenerics,mgens:[mgensIn]}}function unifyFunctionTypeIsUnboxCandidate(fnType,queryElem,whereClause,mgens){if(fnType.id<0&&queryElem.id>=0){if(!whereClause){return false}if(mgens&&mgens.has(fnType.id)&&mgens.get(fnType.id)!==0){return false}const mgensTmp=new Map(mgens);mgensTmp.set(fnType.id,null);return checkIfInList(whereClause[(-fnType.id)-1],queryElem,whereClause,mgensTmp)}else if(fnType.generics.length>0||fnType.bindings.size>0){const simplifiedGenerics=[...fnType.generics,...Array.from(fnType.bindings.values()).flat(),];return checkIfInList(simplifiedGenerics,queryElem,whereClause,mgens)}return false}function checkIfInList(list,elem,whereClause,mgens){for(const entry of list){if(checkType(entry,elem,whereClause,mgens)){return true}}return false}function checkType(row,elem,whereClause,mgens){if(row.bindings.size===0&&elem.bindings.size===0){if(elem.id<0){return row.id<0||checkIfInList(row.generics,elem,whereClause,mgens)}if(row.id>0&&elem.id>0&&elem.pathWithoutLast.length===0&&typePassesFilter(elem.typeFilter,row.ty)&&elem.generics.length===0&&elem.id!==typeNameIdOfArrayOrSlice&&elem.id!==typeNameIdOfTupleOrUnit){return row.id===elem.id||checkIfInList(row.generics,elem,whereClause,mgens)}}return unifyFunctionTypes([row],[elem],whereClause,mgens)}function checkPath(contains,ty){if(contains.length===0){return 0}const maxPathEditDistance=Math.floor(contains.reduce((acc,next)=>acc+next.length,0)/3);let ret_dist=maxPathEditDistance+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;pathiter:for(let i=length-clength;i>=0;i-=1){let dist_total=0;for(let x=0;xmaxPathEditDistance){continue pathiter}dist_total+=dist}}ret_dist=Math.min(ret_dist,Math.round(dist_total/clength))}return ret_dist>maxPathEditDistance?null:ret_dist}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,deprecated:item.deprecated,implDisambiguator:item.implDisambiguator,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES.has(filterCrates)&&ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of ALIASES){if(crateAliasesIndex.has(lowerQuery)){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=crateAliasesIndex.get(lowerQuery);for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,dist,path_dist,maxEditDistance){if(dist<=maxEditDistance||index!==-1){if(results.has(fullId)){const result=results.get(fullId);if(result.dontValidate||result.dist<=dist){return}}results.set(fullId,{id:id,index:index,dontValidate:parsedQuery.literalSearch,dist:dist,path_dist:path_dist,})}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned,maxEditDistance){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let path_dist=0;const fullId=row.id;const tfpDist=compareTypeFingerprints(fullId,parsedQuery.typeFingerprint);if(tfpDist!==null){const in_args=row.type&&row.type.inputs&&checkIfInList(row.type.inputs,elem,row.type.where_clause);const returned=row.type&&row.type.output&&checkIfInList(row.type.output,elem,row.type.where_clause);if(in_args){results_in_args.max_dist=Math.max(results_in_args.max_dist||0,tfpDist);const maxDist=results_in_args.sizenormalizedIndex&&normalizedIndex!==-1)){index=normalizedIndex}if(elem.fullPath.length>1){path_dist=checkPath(elem.pathWithoutLast,row);if(path_dist===null){return}}if(parsedQuery.literalSearch){if(row.word===elem.pathLast){addIntoResults(results_others,fullId,pos,index,0,path_dist)}return}const dist=editDistance(row.normalizedName,elem.normalizedPathLast,maxEditDistance);if(index===-1&&dist>maxEditDistance){return}addIntoResults(results_others,fullId,pos,index,dist,path_dist,maxEditDistance)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)||!row.type){return}const tfpDist=compareTypeFingerprints(row.id,parsedQuery.typeFingerprint);if(tfpDist===null){return}if(results.size>=MAX_RESULTS&&tfpDist>results.max_dist){return}if(!unifyFunctionTypes(row.type.inputs,parsedQuery.elems,row.type.where_clause,null,mgens=>{return unifyFunctionTypes(row.type.output,parsedQuery.returned,row.type.where_clause,mgens)})){return}results.max_dist=Math.max(results.max_dist||0,tfpDist);addIntoResults(results,row.id,pos,0,tfpDist,0,Number.MAX_VALUE)}function innerRunQuery(){const queryLen=parsedQuery.elems.reduce((acc,next)=>acc+next.pathLast.length,0)+parsedQuery.returned.reduce((acc,next)=>acc+next.pathLast.length,0);const maxEditDistance=Math.floor(queryLen/3);const genericSymbols=new Map();function convertNameToId(elem,isAssocType){if(typeNameIdMap.has(elem.normalizedPathLast)&&(isAssocType||!typeNameIdMap.get(elem.normalizedPathLast).assocOnly)){elem.id=typeNameIdMap.get(elem.normalizedPathLast).id}else if(!parsedQuery.literalSearch){let match=null;let matchDist=maxEditDistance+1;let matchName="";for(const[name,{id,assocOnly}]of typeNameIdMap){const dist=editDistance(name,elem.normalizedPathLast,maxEditDistance);if(dist<=matchDist&&dist<=maxEditDistance&&(isAssocType||!assocOnly)){if(dist===matchDist&&matchName>name){continue}match=id;matchDist=dist;matchName=name}}if(match!==null){parsedQuery.correction=matchName}elem.id=match}if((elem.id===null&&parsedQuery.totalElems>1&&elem.typeFilter===-1&&elem.generics.length===0&&elem.bindings.size===0)||elem.typeFilter===TY_GENERIC){if(genericSymbols.has(elem.name)){elem.id=genericSymbols.get(elem.name)}else{elem.id=-(genericSymbols.size+1);genericSymbols.set(elem.name,elem.id)}if(elem.typeFilter===-1&&elem.name.length>=3){const maxPartDistance=Math.floor(elem.name.length/3);let matchDist=maxPartDistance+1;let matchName="";for(const name of typeNameIdMap.keys()){const dist=editDistance(name,elem.name,maxPartDistance);if(dist<=matchDist&&dist<=maxPartDistance){if(dist===matchDist&&matchName>name){continue}matchDist=dist;matchName=name}}if(matchName!==""){parsedQuery.proposeCorrectionFrom=elem.name;parsedQuery.proposeCorrectionTo=matchName}}elem.typeFilter=TY_GENERIC}if(elem.generics.length>0&&elem.typeFilter===TY_GENERIC){parsedQuery.error=["Generic type parameter ",elem.name," does not accept generic parameters",]}for(const elem2 of elem.generics){convertNameToId(elem2)}elem.bindings=new Map(Array.from(elem.bindings.entries()).map(entry=>{const[name,constraints]=entry;if(!typeNameIdMap.has(name)){parsedQuery.error=["Type parameter ",name," does not exist",];return[null,[]]}for(const elem2 of constraints){convertNameToId(elem2)}return[typeNameIdMap.get(name).id,constraints]}))}const fps=new Set();for(const elem of parsedQuery.elems){convertNameToId(elem);buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}for(const elem of parsedQuery.returned){convertNameToId(elem);buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}if(parsedQuery.foundElems===1&&parsedQuery.returned.length===0){if(parsedQuery.elems.length===1){const elem=parsedQuery.elems[0];for(let i=0,nSearchIndex=searchIndex.length;i0){const sortQ=(a,b)=>{const ag=a.generics.length===0&&a.bindings.size===0;const bg=b.generics.length===0&&b.bindings.size===0;if(ag!==bg){return ag-bg}const ai=a.id>0;const bi=b.id>0;return ai-bi};parsedQuery.elems.sort(sortQ);parsedQuery.returned.sort(sortQ);for(let i=0,nSearchIndex=searchIndex.length;i");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){const extraClass=display?" active":"";const output=document.createElement("div");if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];const longType=longItemTypes[item.ty];const typeName=longType.length!==0?`${longType}`:"?";const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";resultName.insertAdjacentHTML("beforeend",`${typeName}`);link.appendChild(resultName);let alias=" ";if(item.is_alias){alias=`
    \ +${item.alias} - see \ +
    `}resultName.insertAdjacentHTML("beforeend",`
    ${alias}\ +${item.displayPath}${name}\ +
    `);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)})}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
    "+"Try on DuckDuckGo?

    "+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const ret_others=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=addTab(results.returned,results.query,false);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates=" in 
    "}let output=`

    Results${crates}

    `;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}`}else{error[index]=value}});output+=`

    Query parser error: "${error.join("")}".

    `;output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+"
    ";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
    "}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
    "+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
    ";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+="

    "+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.

    `}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+="

    "+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.

    `}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}function search(forced){const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));showResults(execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>buildItemSearchType(type,lowercasePaths)):EMPTY_GENERICS_ARRAY}const EMPTY_BINDINGS_MAP=new Map();const EMPTY_GENERICS_ARRAY=[];let TYPES_POOL=new Map();function buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=EMPTY_GENERICS_ARRAY;bindings=EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths);if(type.length>BINDINGS_DATA&&type[BINDINGS_DATA].length>0){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[buildItemSearchType(assocType,lowercasePaths,true).id,buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,generics,bindings,}}const cr=TYPES_POOL.get(result.id);if(cr){if(cr.generics.length===result.generics.length&&cr.generics!==result.generics&&cr.generics.every((x,i)=>result.generics[i]===x)){result.generics=cr.generics}if(cr.bindings.size===result.bindings.size&&cr.bindings!==result.bindings){let ok=true;for(const[k,v]of cr.bindings.entries()){const v2=result.bindings.get(v);if(!v2){ok=false;break}if(v!==v2&&v.length===v2.length&&v.every((x,i)=>v2[i]===x)){result.bindings.set(k,v)}else if(v!==v2){ok=false;break}}if(ok){result.bindings=cr.bindings}}if(cr.ty===result.ty&&cr.path===result.path&&cr.bindings===result.bindings&&cr.generics===result.generics&&cr.ty===result.ty){return cr}}TYPES_POOL.set(result.id,result);return result}function buildFunctionSearchType(itemFunctionDecoder,lowercasePaths){const c=itemFunctionDecoder.string.charCodeAt(itemFunctionDecoder.offset);itemFunctionDecoder.offset+=1;const[zero,ua,la,ob,cb]=["0","@","`","{","}"].map(c=>c.charCodeAt(0));if(c===la){return null}if(c>=zero&&c>1];itemFunctionDecoder.offset+=1;return sign?-value:value}const functionSearchType=decodeList();const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths)]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths)]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;i16){itemFunctionDecoder.backrefQueue.pop()}return ret}function buildFunctionTypeFingerprint(type,output,fps){let input=type.id;if(input===typeNameIdOfArray||input===typeNameIdOfSlice){input=typeNameIdOfArrayOrSlice}if(input===typeNameIdOfTuple||input===typeNameIdOfUnit){input=typeNameIdOfTupleOrUnit}const hashint1=k=>{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:EMPTY_GENERICS_ARRAY,bindings:EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}function compareTypeFingerprints(fullId,queryFingerprint){const fh0=functionTypeFingerprint[fullId*4];const fh1=functionTypeFingerprint[(fullId*4)+1];const fh2=functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return functionTypeFingerprint[(fullId*4)+3]}function buildIndex(rawSearchIndex){searchIndex=[];typeNameIdMap=new Map();const charA="A".charCodeAt(0);let currentIndex=0;let id=0;typeNameIdOfArray=buildTypeMapIndex("array");typeNameIdOfSlice=buildTypeMapIndex("slice");typeNameIdOfTuple=buildTypeMapIndex("tuple");typeNameIdOfUnit=buildTypeMapIndex("unit");typeNameIdOfArrayOrSlice=buildTypeMapIndex("[]");typeNameIdOfTupleOrUnit=buildTypeMapIndex("()");for(const crate of rawSearchIndex.values()){id+=crate.t.length+1}functionTypeFingerprint=new Uint32Array((id+1)*4);id=0;for(const[crate,crateCorpus]of rawSearchIndex){const crateRow={crate:crate,ty:3,name:crate,path:"",desc:crateCorpus.doc,parent:undefined,type:null,id:id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),deprecated:null,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemDescs=crateCorpus.d;const itemParentIdxs=crateCorpus.i;const itemFunctionDecoder={string:crateCorpus.f,offset:0,backrefQueue:[],};const deprecatedItems=new Set(crateCorpus.c);const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}lowercasePaths.push({ty:ty,name:name.toLowerCase(),path:path});paths[i]={ty:ty,name:name,path:path}}lastPath="";len=itemTypes.length;for(let i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type,id:id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),deprecated:deprecatedItems.has(i),implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length}TYPES_POOL=new Map()}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file diff --git a/static.files/src-script-39ed315d46fb705f.js b/static.files/src-script-39ed315d46fb705f.js deleted file mode 100644 index ef74f361e..000000000 --- a/static.files/src-script-39ed315d46fb705f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(function(){const rootPath=getVar("root-path");const NAME_OFFSET=0;const DIRS_OFFSET=1;const FILES_OFFSET=2;const RUSTDOC_MOBILE_BREAKPOINT=700;function closeSidebarIfMobile(){if(window.innerWidth{removeClass(document.documentElement,"src-sidebar-expanded");getToggleLabel().innerText=">";updateLocalStorage("source-sidebar-show","false")};window.rustdocShowSourceSidebar=()=>{addClass(document.documentElement,"src-sidebar-expanded");getToggleLabel().innerText="<";updateLocalStorage("source-sidebar-show","true")};function toggleSidebar(){const child=this.parentNode.children[0];if(child.innerText===">"){window.rustdocShowSourceSidebar()}else{window.rustdocCloseSourceSidebar()}}function createSidebarToggle(){const sidebarToggle=document.createElement("div");sidebarToggle.id="src-sidebar-toggle";const inner=document.createElement("button");if(getCurrentValue("source-sidebar-show")==="true"){inner.innerText="<"}else{inner.innerText=">"}inner.onclick=toggleSidebar;sidebarToggle.appendChild(inner);return sidebarToggle}function createSrcSidebar(){const container=document.querySelector("nav.sidebar");const sidebarToggle=createSidebarToggle();container.insertBefore(sidebarToggle,container.firstChild);const sidebar=document.createElement("div");sidebar.id="src-sidebar";let hasFoundFile=false;const title=document.createElement("div");title.className="title";title.innerText="Files";sidebar.appendChild(title);for(const[key,source]of srcIndex){source[NAME_OFFSET]=key;hasFoundFile=createDirEntry(source,sidebar,"",hasFoundFile)}container.appendChild(sidebar);const selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}}function highlightSrcLines(){const match=window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);if(!match){return}let from=parseInt(match[1],10);let to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to{onEachLazy(e.getElementsByTagName("a"),i_e=>{removeClass(i_e,"line-highlighted")})});for(let i=from;i<=to;++i){elem=document.getElementById(i);if(!elem){break}addClass(elem,"line-highlighted")}}const handleSrcHighlight=(function(){let prev_line_id=0;const set_fragment=name=>{const x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSrcLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return ev=>{let cur_line_id=parseInt(ev.target.id,10);if(isNaN(cur_line_id)||ev.ctrlKey||ev.altKey||ev.metaKey){return}ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){const tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());window.addEventListener("hashchange",highlightSrcLines);onEachLazy(document.getElementsByClassName("src-line-numbers"),el=>{el.addEventListener("click",handleSrcHighlight)});highlightSrcLines();window.createSrcSidebar=createSrcSidebar})() \ No newline at end of file diff --git a/static.files/src-script-e66d777a5a92e9b2.js b/static.files/src-script-e66d777a5a92e9b2.js new file mode 100644 index 000000000..d0aebb851 --- /dev/null +++ b/static.files/src-script-e66d777a5a92e9b2.js @@ -0,0 +1 @@ +"use strict";(function(){const rootPath=getVar("root-path");const NAME_OFFSET=0;const DIRS_OFFSET=1;const FILES_OFFSET=2;const RUSTDOC_MOBILE_BREAKPOINT=700;function closeSidebarIfMobile(){if(window.innerWidth{removeClass(document.documentElement,"src-sidebar-expanded");updateLocalStorage("source-sidebar-show","false")};window.rustdocShowSourceSidebar=()=>{addClass(document.documentElement,"src-sidebar-expanded");updateLocalStorage("source-sidebar-show","true")};window.rustdocToggleSrcSidebar=()=>{if(document.documentElement.classList.contains("src-sidebar-expanded")){window.rustdocCloseSourceSidebar()}else{window.rustdocShowSourceSidebar()}};function createSrcSidebar(){const container=document.querySelector("nav.sidebar");const sidebar=document.createElement("div");sidebar.id="src-sidebar";let hasFoundFile=false;for(const[key,source]of srcIndex){source[NAME_OFFSET]=key;hasFoundFile=createDirEntry(source,sidebar,"",hasFoundFile)}container.appendChild(sidebar);const selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}}function highlightSrcLines(){const match=window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);if(!match){return}let from=parseInt(match[1],10);let to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to{onEachLazy(e.getElementsByTagName("a"),i_e=>{removeClass(i_e,"line-highlighted")})});for(let i=from;i<=to;++i){elem=document.getElementById(i);if(!elem){break}addClass(elem,"line-highlighted")}}const handleSrcHighlight=(function(){let prev_line_id=0;const set_fragment=name=>{const x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSrcLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return ev=>{let cur_line_id=parseInt(ev.target.id,10);if(isNaN(cur_line_id)||ev.ctrlKey||ev.altKey||ev.metaKey){return}ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){const tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());window.addEventListener("hashchange",highlightSrcLines);onEachLazy(document.getElementsByClassName("src-line-numbers"),el=>{el.addEventListener("click",handleSrcHighlight)});highlightSrcLines();window.createSrcSidebar=createSrcSidebar})() \ No newline at end of file diff --git a/static.files/storage-4c98445ec4002617.js b/static.files/storage-4c98445ec4002617.js new file mode 100644 index 000000000..b378b8561 --- /dev/null +++ b/static.files/storage-4c98445ec4002617.js @@ -0,0 +1 @@ +"use strict";const builtinThemes=["light","dark","ayu"];const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func){for(const elem of arr){if(func(elem)){return true}}return false}function onEachLazy(lazyArray,func){return onEach(Array.prototype.slice.call(lazyArray),func)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.querySelector("head > meta[name='rustdoc-vars']");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){const themeNames=getVar("themes").split(",").filter(t=>t);themeNames.push(...builtinThemes);if(themeNames.indexOf(newThemeName)===-1){return}if(saveTheme){updateLocalStorage("theme",newThemeName)}document.documentElement.setAttribute("data-theme",newThemeName);if(builtinThemes.indexOf(newThemeName)!==-1){if(window.currentTheme){window.currentTheme.parentNode.removeChild(window.currentTheme);window.currentTheme=null}}else{const newHref=getVar("root-path")+encodeURIComponent(newThemeName)+getVar("resource-suffix")+".css";if(!window.currentTheme){if(document.readyState==="loading"){document.write(``);window.currentTheme=document.getElementById("themeStyle")}else{window.currentTheme=document.createElement("link");window.currentTheme.rel="stylesheet";window.currentTheme.id="themeStyle";window.currentTheme.href=newHref;document.documentElement.appendChild(window.currentTheme)}}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"src-sidebar-expanded")}if(getSettingValue("hide-sidebar")==="true"){addClass(document.documentElement,"hide-sidebar")}function updateSidebarWidth(){const desktopSidebarWidth=getSettingValue("desktop-sidebar-width");if(desktopSidebarWidth&&desktopSidebarWidth!=="null"){document.documentElement.style.setProperty("--desktop-sidebar-width",desktopSidebarWidth+"px")}const srcSidebarWidth=getSettingValue("src-sidebar-width");if(srcSidebarWidth&&srcSidebarWidth!=="null"){document.documentElement.style.setProperty("--src-sidebar-width",srcSidebarWidth+"px")}}updateSidebarWidth();window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0);setTimeout(updateSidebarWidth,0)}}) \ No newline at end of file diff --git a/static.files/storage-f2adc0d6ca4d09fb.js b/static.files/storage-f2adc0d6ca4d09fb.js deleted file mode 100644 index 17233608a..000000000 --- a/static.files/storage-f2adc0d6ca4d09fb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";const builtinThemes=["light","dark","ayu"];const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func){for(const elem of arr){if(func(elem)){return true}}return false}function onEachLazy(lazyArray,func){return onEach(Array.prototype.slice.call(lazyArray),func)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.querySelector("head > meta[name='rustdoc-vars']");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){if(saveTheme){updateLocalStorage("theme",newThemeName)}document.documentElement.setAttribute("data-theme",newThemeName);if(builtinThemes.indexOf(newThemeName)!==-1){if(window.currentTheme){window.currentTheme.parentNode.removeChild(window.currentTheme);window.currentTheme=null}}else{const newHref=getVar("root-path")+newThemeName+getVar("resource-suffix")+".css";if(!window.currentTheme){if(document.readyState==="loading"){document.write(``);window.currentTheme=document.getElementById("themeStyle")}else{window.currentTheme=document.createElement("link");window.currentTheme.rel="stylesheet";window.currentTheme.id="themeStyle";window.currentTheme.href=newHref;document.documentElement.appendChild(window.currentTheme)}}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"src-sidebar-expanded")}if(getSettingValue("hide-sidebar")==="true"){addClass(document.documentElement,"hide-sidebar")}function updateSidebarWidth(){const desktopSidebarWidth=getSettingValue("desktop-sidebar-width");if(desktopSidebarWidth&&desktopSidebarWidth!=="null"){document.documentElement.style.setProperty("--desktop-sidebar-width",desktopSidebarWidth+"px")}const srcSidebarWidth=getSettingValue("src-sidebar-width");if(srcSidebarWidth&&srcSidebarWidth!=="null"){document.documentElement.style.setProperty("--src-sidebar-width",srcSidebarWidth+"px")}}updateSidebarWidth();window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0);setTimeout(updateSidebarWidth,0)}}) \ No newline at end of file diff --git a/trait.impl/core/clone/trait.Clone.js b/trait.impl/core/clone/trait.Clone.js index 032a0bbfe..b8716ea8d 100644 --- a/trait.impl/core/clone/trait.Clone.js +++ b/trait.impl/core/clone/trait.Clone.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Clone for Attoseconds"],["impl Clone for NPY_DATETIMEUNIT"],["impl Clone for Seconds"],["impl Clone for npy_clongdouble"],["impl Clone for NPY_SEARCHSIDE"],["impl Clone for NPY_BYTEORDER_CHAR"],["impl Clone for Months"],["impl Clone for PyArrayMultiIterObject"],["impl Clone for NPY_TYPECHAR"],["impl Clone for PyArray_Descr"],["impl Clone for Hours"],["impl Clone for Picoseconds"],["impl Clone for NpyAuxData"],["impl Clone for PyArray_ArrayDescr"],["impl Clone for PyArrayInterface"],["impl Clone for npy_datetimestruct"],["impl Clone for NPY_SORTKIND"],["impl Clone for Femtoseconds"],["impl Clone for PyArray_DatetimeDTypeMetaData"],["impl<U: Clone + Unit> Clone for Datetime<U>"],["impl Clone for PyArrayMapIterObject"],["impl Clone for Minutes"],["impl Clone for PyArrayNeighborhoodIterObject"],["impl Clone for Microseconds"],["impl Clone for NPY_TYPEKINDCHAR"],["impl Clone for PyArrayObject"],["impl Clone for Weeks"],["impl<U: Clone + Unit> Clone for Timedelta<U>"],["impl Clone for NPY_CASTING"],["impl Clone for Nanoseconds"],["impl Clone for PyArrayFlagsObject"],["impl Clone for NPY_SCALARKIND"],["impl<const N: usize> Clone for PyFixedUnicode<N>"],["impl Clone for NpyIter"],["impl Clone for npy_cfloat"],["impl Clone for Years"],["impl Clone for PyArray_DatetimeMetaData"],["impl Clone for PyUFuncObject"],["impl Clone for npy_cdouble"],["impl Clone for PyArray_Dims"],["impl<const N: usize> Clone for PyFixedString<N>"],["impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl Clone for npy_timedeltastruct"],["impl Clone for PyArray_ArrFuncs"],["impl Clone for NPY_ORDER"],["impl Clone for NPY_CLIPMODE"],["impl Clone for NPY_TYPES"],["impl Clone for PyArrayIterObject"],["impl Clone for npy_stride_sort_item"],["impl Clone for Milliseconds"],["impl Clone for PyArray_Chunk"],["impl Clone for NPY_SELECTKIND"],["impl Clone for Days"]] +"numpy":[["impl Clone for PyArrayFlagsObject"],["impl Clone for NPY_SCALARKIND"],["impl Clone for Picoseconds"],["impl Clone for PyArray_DatetimeMetaData"],["impl Clone for Weeks"],["impl Clone for NPY_BYTEORDER_CHAR"],["impl Clone for Femtoseconds"],["impl Clone for PyArrayMultiIterObject"],["impl Clone for NPY_SEARCHSIDE"],["impl Clone for Days"],["impl Clone for Years"],["impl Clone for PyArray_ArrayDescr"],["impl Clone for Seconds"],["impl Clone for PyArray_Dims"],["impl Clone for PyArray_ArrFuncs"],["impl Clone for PyUFuncObject"],["impl Clone for NPY_TYPEKINDCHAR"],["impl Clone for NPY_DATETIMEUNIT"],["impl<U: Clone + Unit> Clone for Datetime<U>"],["impl Clone for NPY_ORDER"],["impl Clone for NPY_CLIPMODE"],["impl Clone for PyArrayMapIterObject"],["impl Clone for NPY_CASTING"],["impl Clone for PyArray_DatetimeDTypeMetaData"],["impl Clone for Microseconds"],["impl Clone for npy_clongdouble"],["impl Clone for PyArray_Chunk"],["impl Clone for Milliseconds"],["impl Clone for Hours"],["impl Clone for Nanoseconds"],["impl Clone for NPY_TYPECHAR"],["impl Clone for PyArrayIterObject"],["impl Clone for Months"],["impl<const N: usize> Clone for PyFixedUnicode<N>"],["impl Clone for NPY_TYPES"],["impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl Clone for PyArray_Descr"],["impl Clone for PyArrayObject"],["impl Clone for npy_timedeltastruct"],["impl Clone for npy_datetimestruct"],["impl Clone for PyArrayNeighborhoodIterObject"],["impl Clone for npy_cdouble"],["impl<U: Clone + Unit> Clone for Timedelta<U>"],["impl Clone for npy_stride_sort_item"],["impl Clone for npy_cfloat"],["impl Clone for Minutes"],["impl Clone for NpyIter"],["impl Clone for NpyAuxData"],["impl<const N: usize> Clone for PyFixedString<N>"],["impl Clone for NPY_SORTKIND"],["impl Clone for NPY_SELECTKIND"],["impl Clone for PyArrayInterface"],["impl Clone for Attoseconds"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/cmp/trait.Eq.js b/trait.impl/core/cmp/trait.Eq.js index 5ee23ba76..5cee4ad9c 100644 --- a/trait.impl/core/cmp/trait.Eq.js +++ b/trait.impl/core/cmp/trait.Eq.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Eq for Hours"],["impl<U: Eq + Unit> Eq for Datetime<U>"],["impl Eq for Microseconds"],["impl<U: Eq + Unit> Eq for Timedelta<U>"],["impl Eq for Minutes"],["impl Eq for Picoseconds"],["impl Eq for Months"],["impl<const N: usize> Eq for PyFixedString<N>"],["impl Eq for Weeks"],["impl Eq for Years"],["impl Eq for Days"],["impl Eq for NPY_SCALARKIND"],["impl Eq for Seconds"],["impl Eq for NPY_SORTKIND"],["impl Eq for NPY_SEARCHSIDE"],["impl Eq for NPY_CLIPMODE"],["impl Eq for Milliseconds"],["impl Eq for NPY_CASTING"],["impl<const N: usize> Eq for PyFixedUnicode<N>"],["impl Eq for NPY_TYPES"],["impl Eq for NPY_DATETIMEUNIT"],["impl Eq for Attoseconds"],["impl Eq for NPY_SELECTKIND"],["impl Eq for Femtoseconds"],["impl Eq for NPY_ORDER"],["impl Eq for NPY_BYTEORDER_CHAR"],["impl Eq for Nanoseconds"]] +"numpy":[["impl Eq for NPY_SORTKIND"],["impl<U: Eq + Unit> Eq for Datetime<U>"],["impl Eq for Days"],["impl Eq for NPY_BYTEORDER_CHAR"],["impl Eq for Femtoseconds"],["impl Eq for Milliseconds"],["impl Eq for NPY_SELECTKIND"],["impl Eq for Attoseconds"],["impl Eq for Seconds"],["impl Eq for NPY_ORDER"],["impl Eq for NPY_SCALARKIND"],["impl Eq for Hours"],["impl Eq for Nanoseconds"],["impl Eq for Weeks"],["impl<const N: usize> Eq for PyFixedString<N>"],["impl Eq for Picoseconds"],["impl Eq for NPY_DATETIMEUNIT"],["impl Eq for Microseconds"],["impl Eq for Years"],["impl Eq for NPY_SEARCHSIDE"],["impl<const N: usize> Eq for PyFixedUnicode<N>"],["impl Eq for NPY_CASTING"],["impl Eq for NPY_CLIPMODE"],["impl Eq for NPY_TYPES"],["impl Eq for Minutes"],["impl Eq for Months"],["impl<U: Eq + Unit> Eq for Timedelta<U>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/cmp/trait.Ord.js b/trait.impl/core/cmp/trait.Ord.js index 93c7d1212..f278d48d3 100644 --- a/trait.impl/core/cmp/trait.Ord.js +++ b/trait.impl/core/cmp/trait.Ord.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Ord for Milliseconds"],["impl Ord for Seconds"],["impl Ord for Femtoseconds"],["impl Ord for Days"],["impl Ord for Attoseconds"],["impl Ord for Nanoseconds"],["impl<U: Ord + Unit> Ord for Timedelta<U>"],["impl Ord for Months"],["impl Ord for Hours"],["impl<U: Ord + Unit> Ord for Datetime<U>"],["impl Ord for Picoseconds"],["impl Ord for Years"],["impl Ord for Microseconds"],["impl Ord for Weeks"],["impl Ord for NPY_TYPES"],["impl<const N: usize> Ord for PyFixedUnicode<N>"],["impl Ord for Minutes"],["impl<const N: usize> Ord for PyFixedString<N>"]] +"numpy":[["impl Ord for Nanoseconds"],["impl Ord for Seconds"],["impl<const N: usize> Ord for PyFixedUnicode<N>"],["impl<U: Ord + Unit> Ord for Datetime<U>"],["impl Ord for Hours"],["impl Ord for Weeks"],["impl Ord for Minutes"],["impl Ord for Microseconds"],["impl<const N: usize> Ord for PyFixedString<N>"],["impl Ord for Days"],["impl Ord for Picoseconds"],["impl Ord for Months"],["impl Ord for Attoseconds"],["impl Ord for Milliseconds"],["impl<U: Ord + Unit> Ord for Timedelta<U>"],["impl Ord for NPY_TYPES"],["impl Ord for Years"],["impl Ord for Femtoseconds"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/cmp/trait.PartialEq.js b/trait.impl/core/cmp/trait.PartialEq.js index be810d311..2fde448aa 100644 --- a/trait.impl/core/cmp/trait.PartialEq.js +++ b/trait.impl/core/cmp/trait.PartialEq.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl PartialEq for Hours"],["impl PartialEq for NPY_DATETIMEUNIT"],["impl PartialEq for Minutes"],["impl PartialEq for Nanoseconds"],["impl PartialEq for Microseconds"],["impl PartialEq for NPY_ORDER"],["impl PartialEq for NPY_TYPES"],["impl PartialEq for Attoseconds"],["impl PartialEq for Weeks"],["impl PartialEq for NPY_SEARCHSIDE"],["impl PartialEq for Femtoseconds"],["impl PartialEq for NPY_SORTKIND"],["impl<U: PartialEq + Unit> PartialEq for Timedelta<U>"],["impl PartialEq for Milliseconds"],["impl PartialEq for NPY_SCALARKIND"],["impl<const N: usize> PartialEq for PyFixedUnicode<N>"],["impl<const N: usize> PartialEq for PyFixedString<N>"],["impl PartialEq for Picoseconds"],["impl PartialEq for NPY_BYTEORDER_CHAR"],["impl PartialEq for Seconds"],["impl PartialEq for NPY_CLIPMODE"],["impl<U: PartialEq + Unit> PartialEq for Datetime<U>"],["impl PartialEq for NPY_CASTING"],["impl PartialEq for Months"],["impl PartialEq for NPY_SELECTKIND"],["impl PartialEq for Days"],["impl PartialEq for Years"]] +"numpy":[["impl PartialEq for NPY_SORTKIND"],["impl PartialEq for Months"],["impl PartialEq for Milliseconds"],["impl PartialEq for Days"],["impl<const N: usize> PartialEq for PyFixedString<N>"],["impl PartialEq for Attoseconds"],["impl PartialEq for Nanoseconds"],["impl PartialEq for NPY_TYPES"],["impl PartialEq for Femtoseconds"],["impl PartialEq for Weeks"],["impl PartialEq for NPY_DATETIMEUNIT"],["impl PartialEq for NPY_CLIPMODE"],["impl PartialEq for Minutes"],["impl PartialEq for Seconds"],["impl PartialEq for NPY_CASTING"],["impl PartialEq for Hours"],["impl PartialEq for NPY_ORDER"],["impl PartialEq for Picoseconds"],["impl PartialEq for NPY_SEARCHSIDE"],["impl<const N: usize> PartialEq for PyFixedUnicode<N>"],["impl PartialEq for NPY_SCALARKIND"],["impl<U: PartialEq + Unit> PartialEq for Timedelta<U>"],["impl PartialEq for NPY_SELECTKIND"],["impl PartialEq for NPY_BYTEORDER_CHAR"],["impl PartialEq for Microseconds"],["impl PartialEq for Years"],["impl<U: PartialEq + Unit> PartialEq for Datetime<U>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/cmp/trait.PartialOrd.js b/trait.impl/core/cmp/trait.PartialOrd.js index e1e0935fd..a36ee2378 100644 --- a/trait.impl/core/cmp/trait.PartialOrd.js +++ b/trait.impl/core/cmp/trait.PartialOrd.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl PartialOrd for Microseconds"],["impl PartialOrd for Femtoseconds"],["impl PartialOrd for Months"],["impl PartialOrd for NPY_TYPES"],["impl PartialOrd for Nanoseconds"],["impl<const N: usize> PartialOrd for PyFixedUnicode<N>"],["impl<const N: usize> PartialOrd for PyFixedString<N>"],["impl PartialOrd for Minutes"],["impl PartialOrd for Hours"],["impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>"],["impl PartialOrd for Days"],["impl PartialOrd for Milliseconds"],["impl PartialOrd for Weeks"],["impl PartialOrd for Picoseconds"],["impl PartialOrd for Attoseconds"],["impl PartialOrd for Years"],["impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>"],["impl PartialOrd for Seconds"]] +"numpy":[["impl PartialOrd for Days"],["impl PartialOrd for Weeks"],["impl PartialOrd for Seconds"],["impl PartialOrd for Minutes"],["impl<const N: usize> PartialOrd for PyFixedString<N>"],["impl PartialOrd for Femtoseconds"],["impl PartialOrd for Picoseconds"],["impl PartialOrd for Years"],["impl PartialOrd for Milliseconds"],["impl PartialOrd for Months"],["impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>"],["impl PartialOrd for Attoseconds"],["impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>"],["impl PartialOrd for NPY_TYPES"],["impl PartialOrd for Nanoseconds"],["impl PartialOrd for Microseconds"],["impl PartialOrd for Hours"],["impl<const N: usize> PartialOrd for PyFixedUnicode<N>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/convert/trait.AsRef.js b/trait.impl/core/convert/trait.AsRef.js index a191cbfc6..1a56033f4 100644 --- a/trait.impl/core/convert/trait.AsRef.js +++ b/trait.impl/core/convert/trait.AsRef.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl AsRef<PyAny> for PyUntypedArray"],["impl<T, D> AsRef<PyAny> for PyArray<T, D>"],["impl AsRef<PyAny> for PyArrayDescr"]] +"numpy":[["impl AsRef<PyAny> for PyArrayDescr"],["impl AsRef<PyAny> for PyUntypedArray"],["impl<T, D> AsRef<PyAny> for PyArray<T, D>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/convert/trait.From.js b/trait.impl/core/convert/trait.From.js index c40122b93..4273bfcd0 100644 --- a/trait.impl/core/convert/trait.From.js +++ b/trait.impl/core/convert/trait.From.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl From<&PyArrayDescr> for Py<PyArrayDescr>"],["impl<U: Unit> From<i64> for Datetime<U>"],["impl<U: Unit> From<Datetime<U>> for i64"],["impl<const N: usize> From<[u8; N]> for PyFixedString<N>"],["impl<'a, T, D> From<&'a PyArray<T, D>> for &'a PyAny"],["impl<U: Unit> From<Timedelta<U>> for i64"],["impl From<FromVecError> for PyErr"],["impl From<BorrowError> for PyErr"],["impl<'a> From<&'a PyUntypedArray> for &'a PyAny"],["impl From<&PyUntypedArray> for Py<PyUntypedArray>"],["impl<'a> From<&'a PyArrayDescr> for &'a PyAny"],["impl From<NotContiguousError> for PyErr"],["impl<const N: usize> From<[u32; N]> for PyFixedUnicode<N>"],["impl<U: Unit> From<i64> for Timedelta<U>"],["impl<T, D> From<&PyArray<T, D>> for Py<PyArray<T, D>>"]] +"numpy":[["impl From<&PyArrayDescr> for Py<PyArrayDescr>"],["impl<'a, T, D> From<&'a PyArray<T, D>> for &'a PyAny"],["impl<'a> From<&'a PyArrayDescr> for &'a PyAny"],["impl<'a> From<&'a PyUntypedArray> for &'a PyAny"],["impl<U: Unit> From<Datetime<U>> for i64"],["impl<U: Unit> From<i64> for Timedelta<U>"],["impl From<BorrowError> for PyErr"],["impl From<NotContiguousError> for PyErr"],["impl<U: Unit> From<i64> for Datetime<U>"],["impl<U: Unit> From<Timedelta<U>> for i64"],["impl<T, D> From<&PyArray<T, D>> for Py<PyArray<T, D>>"],["impl From<FromVecError> for PyErr"],["impl<const N: usize> From<[u8; N]> for PyFixedString<N>"],["impl<const N: usize> From<[u32; N]> for PyFixedUnicode<N>"],["impl From<&PyUntypedArray> for Py<PyUntypedArray>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/error/trait.Error.js b/trait.impl/core/error/trait.Error.js index d6f57192c..43f7cee2e 100644 --- a/trait.impl/core/error/trait.Error.js +++ b/trait.impl/core/error/trait.Error.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Error for BorrowError"],["impl Error for NotContiguousError"],["impl Error for FromVecError"]] +"numpy":[["impl Error for NotContiguousError"],["impl Error for BorrowError"],["impl Error for FromVecError"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/fmt/trait.Debug.js b/trait.impl/core/fmt/trait.Debug.js index 7370feaf6..4eb39efa7 100644 --- a/trait.impl/core/fmt/trait.Debug.js +++ b/trait.impl/core/fmt/trait.Debug.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Debug for Months"],["impl Debug for Femtoseconds"],["impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl Debug for Years"],["impl Debug for NPY_DATETIMEUNIT"],["impl Debug for NPY_TYPES"],["impl Debug for TypeMustMatch"],["impl Debug for NPY_TYPEKINDCHAR"],["impl Debug for AllowTypeChange"],["impl<const N: usize> Debug for PyFixedUnicode<N>"],["impl Debug for Attoseconds"],["impl Debug for FromVecError"],["impl Debug for Days"],["impl Debug for PyArrayDescr"],["impl Debug for BorrowError"],["impl Debug for npy_cfloat"],["impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl Debug for PyUntypedArray"],["impl Debug for Weeks"],["impl Debug for npy_datetimestruct"],["impl Debug for Nanoseconds"],["impl Debug for npy_clongdouble"],["impl Debug for NPY_ORDER"],["impl<U: Unit> Debug for Datetime<U>"],["impl Debug for NotContiguousError"],["impl Debug for NPY_TYPECHAR"],["impl Debug for Minutes"],["impl<T, D> Debug for PyArray<T, D>"],["impl<'py, T, D, C> Debug for PyArrayLike<'py, T, D, C>
    where\n T: Element + Debug,\n D: Dimension + Debug,\n C: Coerce + Debug,
    "],["impl Debug for NPY_SELECTKIND"],["impl Debug for NPY_SCALARKIND"],["impl Debug for NPY_SORTKIND"],["impl Debug for Picoseconds"],["impl Debug for npy_timedeltastruct"],["impl Debug for Microseconds"],["impl Debug for npy_stride_sort_item"],["impl<U: Unit> Debug for Timedelta<U>"],["impl Debug for Seconds"],["impl Debug for NpyIter"],["impl Debug for NPY_BYTEORDER_CHAR"],["impl Debug for NPY_CASTING"],["impl Debug for Hours"],["impl<const N: usize> Debug for PyFixedString<N>"],["impl Debug for NPY_SEARCHSIDE"],["impl Debug for Milliseconds"],["impl Debug for npy_cdouble"]] +"numpy":[["impl Debug for npy_datetimestruct"],["impl Debug for NPY_SORTKIND"],["impl Debug for Microseconds"],["impl Debug for Weeks"],["impl Debug for Months"],["impl<const N: usize> Debug for PyFixedString<N>"],["impl<T, D> Debug for PyArray<T, D>"],["impl<U: Unit> Debug for Datetime<U>"],["impl Debug for Nanoseconds"],["impl Debug for Attoseconds"],["impl Debug for BorrowError"],["impl Debug for npy_clongdouble"],["impl Debug for Milliseconds"],["impl Debug for Femtoseconds"],["impl Debug for FromVecError"],["impl Debug for Years"],["impl Debug for NPY_SELECTKIND"],["impl Debug for PyUntypedArray"],["impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl Debug for NPY_SCALARKIND"],["impl Debug for TypeMustMatch"],["impl Debug for NpyIter"],["impl Debug for Days"],["impl Debug for NPY_DATETIMEUNIT"],["impl Debug for NPY_BYTEORDER_CHAR"],["impl Debug for npy_cfloat"],["impl Debug for Picoseconds"],["impl Debug for NPY_SEARCHSIDE"],["impl Debug for NPY_ORDER"],["impl Debug for NPY_TYPEKINDCHAR"],["impl Debug for NPY_TYPECHAR"],["impl Debug for NPY_CASTING"],["impl Debug for Seconds"],["impl Debug for AllowTypeChange"],["impl Debug for npy_cdouble"],["impl<U: Unit> Debug for Timedelta<U>"],["impl<'py, T, D, C> Debug for PyArrayLike<'py, T, D, C>
    where\n T: Element + Debug,\n D: Dimension + Debug,\n C: Coerce + Debug,
    "],["impl Debug for npy_stride_sort_item"],["impl Debug for PyArrayDescr"],["impl Debug for NPY_TYPES"],["impl Debug for NotContiguousError"],["impl Debug for npy_timedeltastruct"],["impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<const N: usize> Debug for PyFixedUnicode<N>"],["impl Debug for Hours"],["impl Debug for Minutes"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/fmt/trait.Display.js b/trait.impl/core/fmt/trait.Display.js index aa94a2b92..ca2a377a0 100644 --- a/trait.impl/core/fmt/trait.Display.js +++ b/trait.impl/core/fmt/trait.Display.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<const N: usize> Display for PyFixedString<N>"],["impl Display for NotContiguousError"],["impl Display for PyArrayDescr"],["impl Display for BorrowError"],["impl<const N: usize> Display for PyFixedUnicode<N>"],["impl<T, D> Display for PyArray<T, D>"],["impl Display for PyUntypedArray"],["impl Display for FromVecError"]] +"numpy":[["impl Display for BorrowError"],["impl Display for PyArrayDescr"],["impl Display for NotContiguousError"],["impl<T, D> Display for PyArray<T, D>"],["impl<const N: usize> Display for PyFixedString<N>"],["impl Display for FromVecError"],["impl<const N: usize> Display for PyFixedUnicode<N>"],["impl Display for PyUntypedArray"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/hash/trait.Hash.js b/trait.impl/core/hash/trait.Hash.js index e2204e7e5..ef0387420 100644 --- a/trait.impl/core/hash/trait.Hash.js +++ b/trait.impl/core/hash/trait.Hash.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Hash for NPY_ORDER"],["impl Hash for NPY_SORTKIND"],["impl Hash for NPY_BYTEORDER_CHAR"],["impl Hash for NPY_SCALARKIND"],["impl Hash for NPY_CASTING"],["impl Hash for NPY_CLIPMODE"],["impl Hash for Femtoseconds"],["impl<const N: usize> Hash for PyFixedString<N>"],["impl Hash for NPY_TYPES"],["impl Hash for Attoseconds"],["impl Hash for Seconds"],["impl Hash for Picoseconds"],["impl Hash for Milliseconds"],["impl Hash for Years"],["impl Hash for Days"],["impl Hash for Minutes"],["impl<U: Hash + Unit> Hash for Timedelta<U>"],["impl Hash for Hours"],["impl Hash for Months"],["impl Hash for NPY_DATETIMEUNIT"],["impl Hash for NPY_SELECTKIND"],["impl Hash for Microseconds"],["impl<U: Hash + Unit> Hash for Datetime<U>"],["impl Hash for Weeks"],["impl Hash for NPY_SEARCHSIDE"],["impl Hash for Nanoseconds"],["impl<const N: usize> Hash for PyFixedUnicode<N>"]] +"numpy":[["impl Hash for NPY_SELECTKIND"],["impl Hash for NPY_CLIPMODE"],["impl Hash for Years"],["impl<const N: usize> Hash for PyFixedString<N>"],["impl Hash for Hours"],["impl Hash for Femtoseconds"],["impl Hash for Months"],["impl Hash for Milliseconds"],["impl Hash for NPY_SORTKIND"],["impl<U: Hash + Unit> Hash for Timedelta<U>"],["impl Hash for Attoseconds"],["impl Hash for NPY_CASTING"],["impl Hash for Days"],["impl Hash for NPY_BYTEORDER_CHAR"],["impl<const N: usize> Hash for PyFixedUnicode<N>"],["impl Hash for NPY_DATETIMEUNIT"],["impl Hash for NPY_SEARCHSIDE"],["impl Hash for NPY_TYPES"],["impl<U: Hash + Unit> Hash for Datetime<U>"],["impl Hash for Nanoseconds"],["impl Hash for Microseconds"],["impl Hash for Weeks"],["impl Hash for Seconds"],["impl Hash for Minutes"],["impl Hash for NPY_SCALARKIND"],["impl Hash for Picoseconds"],["impl Hash for NPY_ORDER"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/marker/trait.Copy.js b/trait.impl/core/marker/trait.Copy.js index 217c4b64c..d367f85fc 100644 --- a/trait.impl/core/marker/trait.Copy.js +++ b/trait.impl/core/marker/trait.Copy.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Copy for NpyAuxData"],["impl Copy for PyArrayMultiIterObject"],["impl Copy for NPY_SORTKIND"],["impl Copy for Femtoseconds"],["impl Copy for NPY_SEARCHSIDE"],["impl Copy for Months"],["impl Copy for Milliseconds"],["impl Copy for Microseconds"],["impl Copy for PyArray_DatetimeMetaData"],["impl Copy for NPY_TYPECHAR"],["impl Copy for Minutes"],["impl Copy for Attoseconds"],["impl Copy for NpyIter"],["impl Copy for PyArrayInterface"],["impl Copy for PyArrayIterObject"],["impl Copy for Years"],["impl Copy for npy_stride_sort_item"],["impl Copy for PyArray_ArrayDescr"],["impl Copy for Weeks"],["impl Copy for npy_cdouble"],["impl Copy for Nanoseconds"],["impl Copy for Hours"],["impl Copy for NPY_SCALARKIND"],["impl Copy for NPY_DATETIMEUNIT"],["impl Copy for NPY_ORDER"],["impl<U: Copy + Unit> Copy for Datetime<U>"],["impl Copy for PyArray_ArrFuncs"],["impl Copy for PyArray_Descr"],["impl Copy for PyArray_Dims"],["impl Copy for npy_timedeltastruct"],["impl Copy for NPY_TYPES"],["impl Copy for Picoseconds"],["impl Copy for NPY_TYPEKINDCHAR"],["impl Copy for NPY_SELECTKIND"],["impl Copy for PyUFuncObject"],["impl Copy for npy_clongdouble"],["impl<const N: usize> Copy for PyFixedString<N>"],["impl Copy for Seconds"],["impl<const N: usize> Copy for PyFixedUnicode<N>"],["impl Copy for NPY_CLIPMODE"],["impl Copy for NPY_BYTEORDER_CHAR"],["impl Copy for PyArrayMapIterObject"],["impl Copy for PyArrayFlagsObject"],["impl Copy for npy_cfloat"],["impl Copy for NPY_CASTING"],["impl<U: Copy + Unit> Copy for Timedelta<U>"],["impl Copy for PyArrayObject"],["impl Copy for PyArrayNeighborhoodIterObject"],["impl Copy for PyArray_Chunk"],["impl Copy for PyArray_DatetimeDTypeMetaData"],["impl Copy for npy_datetimestruct"],["impl Copy for Days"]] +"numpy":[["impl Copy for PyArray_ArrFuncs"],["impl Copy for Nanoseconds"],["impl Copy for Microseconds"],["impl Copy for PyArrayMultiIterObject"],["impl<const N: usize> Copy for PyFixedUnicode<N>"],["impl Copy for NPY_ORDER"],["impl Copy for PyArray_DatetimeMetaData"],["impl Copy for PyArray_Dims"],["impl Copy for NPY_BYTEORDER_CHAR"],["impl Copy for NpyIter"],["impl Copy for NpyAuxData"],["impl Copy for PyArray_ArrayDescr"],["impl Copy for NPY_CLIPMODE"],["impl Copy for Femtoseconds"],["impl Copy for npy_stride_sort_item"],["impl Copy for PyArray_DatetimeDTypeMetaData"],["impl Copy for npy_timedeltastruct"],["impl Copy for PyArrayInterface"],["impl Copy for npy_clongdouble"],["impl Copy for Seconds"],["impl Copy for Days"],["impl Copy for npy_cfloat"],["impl Copy for NPY_TYPECHAR"],["impl Copy for PyArray_Chunk"],["impl Copy for NPY_SEARCHSIDE"],["impl Copy for npy_datetimestruct"],["impl Copy for NPY_DATETIMEUNIT"],["impl Copy for NPY_TYPES"],["impl Copy for PyUFuncObject"],["impl Copy for Minutes"],["impl Copy for Weeks"],["impl Copy for NPY_SORTKIND"],["impl Copy for Months"],["impl Copy for NPY_SELECTKIND"],["impl Copy for PyArrayMapIterObject"],["impl Copy for Attoseconds"],["impl Copy for NPY_SCALARKIND"],["impl Copy for Milliseconds"],["impl Copy for NPY_CASTING"],["impl Copy for PyArrayObject"],["impl Copy for npy_cdouble"],["impl Copy for PyArray_Descr"],["impl Copy for NPY_TYPEKINDCHAR"],["impl Copy for Picoseconds"],["impl<const N: usize> Copy for PyFixedString<N>"],["impl Copy for PyArrayFlagsObject"],["impl Copy for PyArrayIterObject"],["impl<U: Copy + Unit> Copy for Timedelta<U>"],["impl<U: Copy + Unit> Copy for Datetime<U>"],["impl Copy for Years"],["impl Copy for PyArrayNeighborhoodIterObject"],["impl Copy for Hours"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/marker/trait.Freeze.js b/trait.impl/core/marker/trait.Freeze.js index 6a04fc538..f1402bc78 100644 --- a/trait.impl/core/marker/trait.Freeze.js +++ b/trait.impl/core/marker/trait.Freeze.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<T, D> !Freeze for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl Freeze for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Freeze for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C> Freeze for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> Freeze for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> Freeze for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl Freeze for Years",1,["numpy::datetime::units::Years"]],["impl Freeze for Months",1,["numpy::datetime::units::Months"]],["impl Freeze for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Freeze for Days",1,["numpy::datetime::units::Days"]],["impl Freeze for Hours",1,["numpy::datetime::units::Hours"]],["impl Freeze for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Freeze for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Freeze for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Freeze for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Freeze for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Freeze for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Freeze for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Freeze for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Freeze for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Freeze for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl !Freeze for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Freeze for FromVecError",1,["numpy::error::FromVecError"]],["impl Freeze for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Freeze for BorrowError",1,["numpy::error::BorrowError"]],["impl !Freeze for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl Freeze for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Freeze for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Freeze for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Freeze for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Freeze for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Freeze for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Freeze for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Freeze for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Freeze for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Freeze for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Freeze for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Freeze for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Freeze for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Freeze for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Freeze for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Freeze for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Freeze for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Freeze for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Freeze for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Freeze for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Freeze for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Freeze for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Freeze for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Freeze for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Freeze for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Freeze for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Freeze for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Freeze for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Freeze for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Freeze for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Freeze for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Freeze for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Freeze for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Freeze for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Freeze for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Freeze for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl !Freeze for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> Freeze for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Freeze for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !Freeze for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] +"numpy":[["impl<T, D> !Freeze for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl Freeze for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Freeze for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C> Freeze for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> Freeze for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> Freeze for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl Freeze for Years",1,["numpy::datetime::units::Years"]],["impl Freeze for Months",1,["numpy::datetime::units::Months"]],["impl Freeze for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Freeze for Days",1,["numpy::datetime::units::Days"]],["impl Freeze for Hours",1,["numpy::datetime::units::Hours"]],["impl Freeze for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Freeze for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Freeze for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Freeze for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Freeze for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Freeze for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Freeze for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Freeze for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Freeze for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Freeze for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl !Freeze for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Freeze for FromVecError",1,["numpy::error::FromVecError"]],["impl Freeze for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Freeze for BorrowError",1,["numpy::error::BorrowError"]],["impl !Freeze for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl Freeze for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Freeze for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Freeze for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Freeze for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Freeze for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Freeze for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Freeze for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Freeze for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Freeze for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Freeze for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Freeze for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Freeze for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Freeze for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Freeze for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Freeze for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Freeze for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Freeze for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Freeze for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Freeze for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Freeze for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Freeze for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Freeze for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Freeze for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Freeze for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Freeze for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Freeze for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Freeze for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Freeze for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Freeze for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Freeze for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Freeze for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Freeze for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Freeze for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Freeze for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Freeze for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Freeze for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl !Freeze for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> Freeze for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Freeze for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !Freeze for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/marker/trait.Send.js b/trait.impl/core/marker/trait.Send.js index 9f8cb5dee..9adaf6c28 100644 --- a/trait.impl/core/marker/trait.Send.js +++ b/trait.impl/core/marker/trait.Send.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<T, D> !Send for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl Send for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Send for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C = TypeMustMatch> !Send for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> !Send for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> !Send for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl Send for Years",1,["numpy::datetime::units::Years"]],["impl Send for Months",1,["numpy::datetime::units::Months"]],["impl Send for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Send for Days",1,["numpy::datetime::units::Days"]],["impl Send for Hours",1,["numpy::datetime::units::Hours"]],["impl Send for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Send for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Send for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Send for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Send for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Send for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Send for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Send for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Send for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Send for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl !Send for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Send for FromVecError",1,["numpy::error::FromVecError"]],["impl Send for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Send for BorrowError",1,["numpy::error::BorrowError"]],["impl Send for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl !Send for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Send for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Send for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Send for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Send for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Send for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Send for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Send for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Send for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Send for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl !Send for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Send for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Send for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Send for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Send for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Send for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl !Send for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Send for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Send for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Send for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Send for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Send for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Send for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Send for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Send for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Send for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Send for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Send for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Send for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Send for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Send for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Send for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Send for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Send for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Send for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl<const N: usize> Send for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Send for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !Send for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Send for PyArrayAPI"],["impl Send for PyUFuncAPI"]] +"numpy":[["impl<T, D> !Send for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl Send for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Send for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C = TypeMustMatch> !Send for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> !Send for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> !Send for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl Send for Years",1,["numpy::datetime::units::Years"]],["impl Send for Months",1,["numpy::datetime::units::Months"]],["impl Send for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Send for Days",1,["numpy::datetime::units::Days"]],["impl Send for Hours",1,["numpy::datetime::units::Hours"]],["impl Send for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Send for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Send for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Send for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Send for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Send for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Send for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Send for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Send for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Send for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl !Send for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Send for FromVecError",1,["numpy::error::FromVecError"]],["impl Send for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Send for BorrowError",1,["numpy::error::BorrowError"]],["impl Send for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl !Send for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Send for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Send for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Send for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Send for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Send for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Send for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Send for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Send for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Send for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl !Send for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Send for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Send for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Send for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Send for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Send for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl !Send for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Send for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Send for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Send for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Send for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Send for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Send for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Send for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Send for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Send for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Send for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Send for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Send for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Send for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Send for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Send for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Send for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Send for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Send for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl<const N: usize> Send for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Send for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !Send for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Send for PyUFuncAPI"],["impl Send for PyArrayAPI"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/marker/trait.StructuralEq.js b/trait.impl/core/marker/trait.StructuralEq.js deleted file mode 100644 index 8707b5ea9..000000000 --- a/trait.impl/core/marker/trait.StructuralEq.js +++ /dev/null @@ -1,3 +0,0 @@ -(function() {var implementors = { -"numpy":[["impl StructuralEq for Attoseconds"],["impl StructuralEq for NPY_BYTEORDER_CHAR"],["impl StructuralEq for Picoseconds"],["impl StructuralEq for NPY_TYPES"],["impl StructuralEq for Seconds"],["impl StructuralEq for Days"],["impl StructuralEq for Microseconds"],["impl StructuralEq for NPY_DATETIMEUNIT"],["impl StructuralEq for NPY_CASTING"],["impl<U: Unit> StructuralEq for Datetime<U>"],["impl StructuralEq for NPY_SORTKIND"],["impl StructuralEq for NPY_SEARCHSIDE"],["impl<U: Unit> StructuralEq for Timedelta<U>"],["impl StructuralEq for Weeks"],["impl StructuralEq for Months"],["impl StructuralEq for Femtoseconds"],["impl StructuralEq for Milliseconds"],["impl StructuralEq for Years"],["impl<const N: usize> StructuralEq for PyFixedUnicode<N>"],["impl StructuralEq for Nanoseconds"],["impl StructuralEq for NPY_SELECTKIND"],["impl<const N: usize> StructuralEq for PyFixedString<N>"],["impl StructuralEq for NPY_SCALARKIND"],["impl StructuralEq for NPY_ORDER"],["impl StructuralEq for Hours"],["impl StructuralEq for NPY_CLIPMODE"],["impl StructuralEq for Minutes"]] -};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/marker/trait.StructuralPartialEq.js b/trait.impl/core/marker/trait.StructuralPartialEq.js index 6c4182cbf..30997c485 100644 --- a/trait.impl/core/marker/trait.StructuralPartialEq.js +++ b/trait.impl/core/marker/trait.StructuralPartialEq.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl StructuralPartialEq for Nanoseconds"],["impl<const N: usize> StructuralPartialEq for PyFixedUnicode<N>"],["impl StructuralPartialEq for NPY_CLIPMODE"],["impl<U: Unit> StructuralPartialEq for Timedelta<U>"],["impl StructuralPartialEq for Hours"],["impl StructuralPartialEq for Microseconds"],["impl StructuralPartialEq for NPY_ORDER"],["impl StructuralPartialEq for NPY_BYTEORDER_CHAR"],["impl StructuralPartialEq for Weeks"],["impl StructuralPartialEq for Days"],["impl<U: Unit> StructuralPartialEq for Datetime<U>"],["impl StructuralPartialEq for Months"],["impl StructuralPartialEq for NPY_SEARCHSIDE"],["impl StructuralPartialEq for NPY_CASTING"],["impl StructuralPartialEq for NPY_SELECTKIND"],["impl StructuralPartialEq for Milliseconds"],["impl StructuralPartialEq for Minutes"],["impl StructuralPartialEq for NPY_DATETIMEUNIT"],["impl StructuralPartialEq for NPY_SORTKIND"],["impl StructuralPartialEq for NPY_TYPES"],["impl StructuralPartialEq for Picoseconds"],["impl StructuralPartialEq for Seconds"],["impl StructuralPartialEq for Attoseconds"],["impl<const N: usize> StructuralPartialEq for PyFixedString<N>"],["impl StructuralPartialEq for Years"],["impl StructuralPartialEq for NPY_SCALARKIND"],["impl StructuralPartialEq for Femtoseconds"]] +"numpy":[["impl StructuralPartialEq for Femtoseconds"],["impl StructuralPartialEq for Hours"],["impl StructuralPartialEq for NPY_BYTEORDER_CHAR"],["impl StructuralPartialEq for NPY_CLIPMODE"],["impl StructuralPartialEq for Milliseconds"],["impl StructuralPartialEq for Nanoseconds"],["impl StructuralPartialEq for Attoseconds"],["impl StructuralPartialEq for NPY_TYPES"],["impl StructuralPartialEq for Weeks"],["impl<const N: usize> StructuralPartialEq for PyFixedUnicode<N>"],["impl StructuralPartialEq for NPY_SEARCHSIDE"],["impl StructuralPartialEq for Days"],["impl StructuralPartialEq for Years"],["impl StructuralPartialEq for NPY_SORTKIND"],["impl StructuralPartialEq for NPY_SCALARKIND"],["impl StructuralPartialEq for Picoseconds"],["impl StructuralPartialEq for NPY_CASTING"],["impl StructuralPartialEq for Microseconds"],["impl<U: Unit> StructuralPartialEq for Timedelta<U>"],["impl StructuralPartialEq for Seconds"],["impl<U: Unit> StructuralPartialEq for Datetime<U>"],["impl StructuralPartialEq for NPY_ORDER"],["impl StructuralPartialEq for Minutes"],["impl StructuralPartialEq for NPY_SELECTKIND"],["impl StructuralPartialEq for Months"],["impl StructuralPartialEq for NPY_DATETIMEUNIT"],["impl<const N: usize> StructuralPartialEq for PyFixedString<N>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/marker/trait.Sync.js b/trait.impl/core/marker/trait.Sync.js index a3c3cd0ed..996c736cb 100644 --- a/trait.impl/core/marker/trait.Sync.js +++ b/trait.impl/core/marker/trait.Sync.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<T, D> !Sync for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl Sync for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Sync for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C = TypeMustMatch> !Sync for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> !Sync for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> !Sync for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl Sync for Years",1,["numpy::datetime::units::Years"]],["impl Sync for Months",1,["numpy::datetime::units::Months"]],["impl Sync for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Sync for Days",1,["numpy::datetime::units::Days"]],["impl Sync for Hours",1,["numpy::datetime::units::Hours"]],["impl Sync for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Sync for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Sync for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Sync for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Sync for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Sync for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Sync for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Sync for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Sync for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Sync for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl !Sync for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Sync for FromVecError",1,["numpy::error::FromVecError"]],["impl Sync for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Sync for BorrowError",1,["numpy::error::BorrowError"]],["impl Sync for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl !Sync for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Sync for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Sync for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Sync for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Sync for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Sync for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Sync for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Sync for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Sync for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Sync for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl !Sync for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Sync for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Sync for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Sync for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Sync for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Sync for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl !Sync for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Sync for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Sync for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Sync for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Sync for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Sync for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Sync for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Sync for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Sync for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Sync for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Sync for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Sync for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Sync for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Sync for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Sync for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Sync for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Sync for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Sync for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Sync for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl<const N: usize> Sync for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Sync for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !Sync for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Sync for PyArrayAPI"],["impl Sync for PyUFuncAPI"]] +"numpy":[["impl<T, D> !Sync for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl Sync for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Sync for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C = TypeMustMatch> !Sync for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> !Sync for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> !Sync for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl Sync for Years",1,["numpy::datetime::units::Years"]],["impl Sync for Months",1,["numpy::datetime::units::Months"]],["impl Sync for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Sync for Days",1,["numpy::datetime::units::Days"]],["impl Sync for Hours",1,["numpy::datetime::units::Hours"]],["impl Sync for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Sync for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Sync for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Sync for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Sync for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Sync for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Sync for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Sync for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Sync for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Sync for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl !Sync for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Sync for FromVecError",1,["numpy::error::FromVecError"]],["impl Sync for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Sync for BorrowError",1,["numpy::error::BorrowError"]],["impl Sync for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl !Sync for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Sync for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Sync for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Sync for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Sync for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Sync for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Sync for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Sync for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Sync for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Sync for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl !Sync for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Sync for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Sync for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Sync for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Sync for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Sync for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl !Sync for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Sync for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Sync for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Sync for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Sync for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Sync for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Sync for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Sync for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Sync for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Sync for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Sync for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Sync for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Sync for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Sync for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Sync for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Sync for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Sync for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Sync for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Sync for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl<const N: usize> Sync for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Sync for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !Sync for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Sync for PyUFuncAPI"],["impl Sync for PyArrayAPI"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/marker/trait.Unpin.js b/trait.impl/core/marker/trait.Unpin.js index 7caa3db55..1cd63c69d 100644 --- a/trait.impl/core/marker/trait.Unpin.js +++ b/trait.impl/core/marker/trait.Unpin.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<T, D> Unpin for PyArray<T, D>
    where\n D: Unpin,\n T: Unpin,
    ",1,["numpy::array::PyArray"]],["impl Unpin for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Unpin for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C> Unpin for PyArrayLike<'py, T, D, C>
    where\n C: Unpin,\n D: Unpin,\n T: Unpin,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> Unpin for PyReadonlyArray<'py, T, D>
    where\n D: Unpin,\n T: Unpin,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> Unpin for PyReadwriteArray<'py, T, D>
    where\n D: Unpin,\n T: Unpin,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl Unpin for Years",1,["numpy::datetime::units::Years"]],["impl Unpin for Months",1,["numpy::datetime::units::Months"]],["impl Unpin for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Unpin for Days",1,["numpy::datetime::units::Days"]],["impl Unpin for Hours",1,["numpy::datetime::units::Hours"]],["impl Unpin for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Unpin for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Unpin for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Unpin for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Unpin for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Unpin for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Unpin for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Unpin for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Unpin for Datetime<U>
    where\n U: Unpin,
    ",1,["numpy::datetime::Datetime"]],["impl<U> Unpin for Timedelta<U>
    where\n U: Unpin,
    ",1,["numpy::datetime::Timedelta"]],["impl Unpin for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Unpin for FromVecError",1,["numpy::error::FromVecError"]],["impl Unpin for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Unpin for BorrowError",1,["numpy::error::BorrowError"]],["impl Unpin for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl Unpin for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Unpin for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Unpin for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Unpin for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Unpin for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Unpin for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Unpin for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Unpin for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Unpin for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Unpin for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Unpin for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Unpin for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Unpin for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Unpin for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Unpin for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Unpin for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Unpin for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Unpin for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Unpin for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Unpin for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Unpin for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Unpin for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Unpin for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Unpin for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Unpin for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Unpin for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Unpin for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Unpin for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Unpin for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Unpin for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Unpin for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Unpin for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Unpin for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Unpin for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Unpin for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Unpin for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl Unpin for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> Unpin for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Unpin for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl Unpin for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] +"numpy":[["impl<T, D> Unpin for PyArray<T, D>
    where\n D: Unpin,\n T: Unpin,
    ",1,["numpy::array::PyArray"]],["impl Unpin for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl Unpin for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C> Unpin for PyArrayLike<'py, T, D, C>
    where\n C: Unpin,\n D: Unpin,\n T: Unpin,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> Unpin for PyReadonlyArray<'py, T, D>
    where\n D: Unpin,\n T: Unpin,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> Unpin for PyReadwriteArray<'py, T, D>
    where\n D: Unpin,\n T: Unpin,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl Unpin for Years",1,["numpy::datetime::units::Years"]],["impl Unpin for Months",1,["numpy::datetime::units::Months"]],["impl Unpin for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Unpin for Days",1,["numpy::datetime::units::Days"]],["impl Unpin for Hours",1,["numpy::datetime::units::Hours"]],["impl Unpin for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Unpin for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Unpin for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Unpin for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Unpin for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Unpin for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Unpin for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Unpin for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> Unpin for Datetime<U>
    where\n U: Unpin,
    ",1,["numpy::datetime::Datetime"]],["impl<U> Unpin for Timedelta<U>
    where\n U: Unpin,
    ",1,["numpy::datetime::Timedelta"]],["impl Unpin for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Unpin for FromVecError",1,["numpy::error::FromVecError"]],["impl Unpin for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Unpin for BorrowError",1,["numpy::error::BorrowError"]],["impl Unpin for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl Unpin for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Unpin for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Unpin for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Unpin for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Unpin for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Unpin for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Unpin for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Unpin for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Unpin for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Unpin for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Unpin for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Unpin for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Unpin for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Unpin for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Unpin for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Unpin for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Unpin for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Unpin for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Unpin for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl Unpin for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl Unpin for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl Unpin for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl Unpin for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl Unpin for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl Unpin for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Unpin for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl Unpin for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Unpin for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Unpin for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl Unpin for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl Unpin for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Unpin for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Unpin for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Unpin for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl Unpin for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl Unpin for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl Unpin for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> Unpin for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Unpin for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl Unpin for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/ops/deref/trait.Deref.js b/trait.impl/core/ops/deref/trait.Deref.js index 7375caa25..f9d8349d2 100644 --- a/trait.impl/core/ops/deref/trait.Deref.js +++ b/trait.impl/core/ops/deref/trait.Deref.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl Deref for PyArrayDescr"],["impl Deref for PyUntypedArray"],["impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where\n T: Element,\n D: Dimension,\n C: Coerce,
    "],["impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<T, D> Deref for PyArray<T, D>"]] +"numpy":[["impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl Deref for PyArrayDescr"],["impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where\n T: Element,\n D: Dimension,\n C: Coerce,
    "],["impl<T, D> Deref for PyArray<T, D>"],["impl Deref for PyUntypedArray"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/ops/drop/trait.Drop.js b/trait.impl/core/ops/drop/trait.Drop.js index 5cbe392c6..e92437e9d 100644 --- a/trait.impl/core/ops/drop/trait.Drop.js +++ b/trait.impl/core/ops/drop/trait.Drop.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "]] +"numpy":[["impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js b/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js index c98ac8f30..251820445 100644 --- a/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js +++ b/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<T, D> !RefUnwindSafe for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl RefUnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl RefUnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C = TypeMustMatch> !RefUnwindSafe for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> !RefUnwindSafe for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> !RefUnwindSafe for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl RefUnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl RefUnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl RefUnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl RefUnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl RefUnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl RefUnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl RefUnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl RefUnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl RefUnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl RefUnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl RefUnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl RefUnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl RefUnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> RefUnwindSafe for Datetime<U>
    where\n U: RefUnwindSafe,
    ",1,["numpy::datetime::Datetime"]],["impl<U> RefUnwindSafe for Timedelta<U>
    where\n U: RefUnwindSafe,
    ",1,["numpy::datetime::Timedelta"]],["impl !RefUnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl RefUnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl RefUnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl RefUnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl !RefUnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl RefUnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl RefUnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl RefUnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl RefUnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl RefUnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl RefUnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl RefUnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl RefUnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl RefUnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl RefUnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl RefUnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl RefUnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl RefUnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl RefUnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl RefUnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl RefUnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl RefUnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl RefUnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl RefUnwindSafe for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl RefUnwindSafe for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl RefUnwindSafe for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl RefUnwindSafe for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl RefUnwindSafe for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl RefUnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl RefUnwindSafe for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl RefUnwindSafe for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl RefUnwindSafe for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl RefUnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl RefUnwindSafe for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl RefUnwindSafe for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl RefUnwindSafe for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl RefUnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl RefUnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl RefUnwindSafe for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl RefUnwindSafe for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl RefUnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl !RefUnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> RefUnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> RefUnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !RefUnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] +"numpy":[["impl<T, D> !RefUnwindSafe for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl RefUnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl RefUnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C = TypeMustMatch> !RefUnwindSafe for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> !RefUnwindSafe for PyReadonlyArray<'py, T, D>",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> !RefUnwindSafe for PyReadwriteArray<'py, T, D>",1,["numpy::borrow::PyReadwriteArray"]],["impl RefUnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl RefUnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl RefUnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl RefUnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl RefUnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl RefUnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl RefUnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl RefUnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl RefUnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl RefUnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl RefUnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl RefUnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl RefUnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> RefUnwindSafe for Datetime<U>
    where\n U: RefUnwindSafe,
    ",1,["numpy::datetime::Datetime"]],["impl<U> RefUnwindSafe for Timedelta<U>
    where\n U: RefUnwindSafe,
    ",1,["numpy::datetime::Timedelta"]],["impl !RefUnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl RefUnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl RefUnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl RefUnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl !RefUnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl RefUnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl RefUnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl RefUnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl RefUnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl RefUnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl RefUnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl RefUnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl RefUnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl RefUnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl RefUnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl RefUnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl RefUnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl RefUnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl RefUnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl RefUnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl RefUnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl RefUnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl RefUnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl RefUnwindSafe for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl RefUnwindSafe for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl RefUnwindSafe for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl RefUnwindSafe for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl RefUnwindSafe for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl RefUnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl RefUnwindSafe for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl RefUnwindSafe for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl RefUnwindSafe for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl RefUnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl RefUnwindSafe for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl RefUnwindSafe for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl RefUnwindSafe for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl RefUnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl RefUnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl RefUnwindSafe for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl RefUnwindSafe for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl RefUnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl !RefUnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> RefUnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> RefUnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl !RefUnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js b/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js index 9c2a1a813..389cca614 100644 --- a/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js +++ b/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<T, D> UnwindSafe for PyArray<T, D>
    where\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::array::PyArray"]],["impl UnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl UnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where\n C: UnwindSafe,\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
    where\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
    where\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl UnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl UnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl UnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl UnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl UnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl UnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl UnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl UnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl UnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl UnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl UnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl UnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl UnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> UnwindSafe for Datetime<U>
    where\n U: UnwindSafe,
    ",1,["numpy::datetime::Datetime"]],["impl<U> UnwindSafe for Timedelta<U>
    where\n U: UnwindSafe,
    ",1,["numpy::datetime::Timedelta"]],["impl UnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl UnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl UnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl UnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl UnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl UnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl UnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl UnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl UnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl UnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl UnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl UnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl UnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl UnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl UnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl UnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl UnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl UnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl UnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl UnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl UnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl UnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl UnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl UnwindSafe for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl UnwindSafe for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl UnwindSafe for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl UnwindSafe for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl UnwindSafe for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl UnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl UnwindSafe for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl UnwindSafe for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl UnwindSafe for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl UnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl UnwindSafe for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl UnwindSafe for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl UnwindSafe for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl UnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl UnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl UnwindSafe for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl UnwindSafe for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl UnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl UnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> UnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> UnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl UnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] +"numpy":[["impl<T, D> UnwindSafe for PyArray<T, D>
    where\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::array::PyArray"]],["impl UnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl UnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where\n C: UnwindSafe,\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
    where\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
    where\n D: UnwindSafe,\n T: UnwindSafe,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl UnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl UnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl UnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl UnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl UnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl UnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl UnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl UnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl UnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl UnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl UnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl UnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl UnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl<U> UnwindSafe for Datetime<U>
    where\n U: UnwindSafe,
    ",1,["numpy::datetime::Datetime"]],["impl<U> UnwindSafe for Timedelta<U>
    where\n U: UnwindSafe,
    ",1,["numpy::datetime::Timedelta"]],["impl UnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl UnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl UnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl UnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl UnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl UnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl UnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl UnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl UnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl UnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl UnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl UnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl UnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl UnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl UnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl UnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl UnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl UnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl UnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl UnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl UnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl UnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl UnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl UnwindSafe for npy_cdouble",1,["numpy::npyffi::types::npy_cdouble"]],["impl UnwindSafe for npy_cfloat",1,["numpy::npyffi::types::npy_cfloat"]],["impl UnwindSafe for npy_clongdouble",1,["numpy::npyffi::types::npy_clongdouble"]],["impl UnwindSafe for NPY_ORDER",1,["numpy::npyffi::types::NPY_ORDER"]],["impl UnwindSafe for NPY_SCALARKIND",1,["numpy::npyffi::types::NPY_SCALARKIND"]],["impl UnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["impl UnwindSafe for NPY_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl UnwindSafe for NPY_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["impl UnwindSafe for NPY_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl UnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl UnwindSafe for NPY_CASTING",1,["numpy::npyffi::types::NPY_CASTING"]],["impl UnwindSafe for NPY_CLIPMODE",1,["numpy::npyffi::types::NPY_CLIPMODE"]],["impl UnwindSafe for npy_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl UnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl UnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl UnwindSafe for NPY_TYPECHAR",1,["numpy::npyffi::types::NPY_TYPECHAR"]],["impl UnwindSafe for NPY_TYPEKINDCHAR",1,["numpy::npyffi::types::NPY_TYPEKINDCHAR"]],["impl UnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["impl UnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl<const N: usize> UnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> UnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]],["impl UnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/pyo3/conversion/trait.AsPyPointer.js b/trait.impl/pyo3/conversion/trait.AsPyPointer.js index 2e3296766..9e10aa27d 100644 --- a/trait.impl/pyo3/conversion/trait.AsPyPointer.js +++ b/trait.impl/pyo3/conversion/trait.AsPyPointer.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl AsPyPointer for PyArrayDescr"],["impl AsPyPointer for PyUntypedArray"],["impl<T, D> AsPyPointer for PyArray<T, D>"]] +"numpy":[["impl AsPyPointer for PyUntypedArray"],["impl<T, D> AsPyPointer for PyArray<T, D>"],["impl AsPyPointer for PyArrayDescr"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/pyo3/conversion/trait.FromPyObject.js b/trait.impl/pyo3/conversion/trait.FromPyObject.js index bbce65ffc..cb3b7b316 100644 --- a/trait.impl/pyo3/conversion/trait.FromPyObject.js +++ b/trait.impl/pyo3/conversion/trait.FromPyObject.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadonlyArray<'py, T, D>"],["impl<'py> FromPyObject<'py> for &'py PyUntypedArray"],["impl<'py, T, D, C> FromPyObject<'py> for PyArrayLike<'py, T, D, C>
    where\n T: Element + 'py,\n D: Dimension + 'py,\n C: Coerce,\n Vec<T>: FromPyObject<'py>,
    "],["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>"],["impl<'py> FromPyObject<'py> for &'py PyArrayDescr"],["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for &'py PyArray<T, D>"]] +"numpy":[["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>"],["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadonlyArray<'py, T, D>"],["impl<'py> FromPyObject<'py> for &'py PyUntypedArray"],["impl<'py, T, D, C> FromPyObject<'py> for PyArrayLike<'py, T, D, C>
    where\n T: Element + 'py,\n D: Dimension + 'py,\n C: Coerce,\n Vec<T>: FromPyObject<'py>,
    "],["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for &'py PyArray<T, D>"],["impl<'py> FromPyObject<'py> for &'py PyArrayDescr"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/pyo3/conversion/trait.IntoPy.js b/trait.impl/pyo3/conversion/trait.IntoPy.js index a6ad0f6b3..9c84624c9 100644 --- a/trait.impl/pyo3/conversion/trait.IntoPy.js +++ b/trait.impl/pyo3/conversion/trait.IntoPy.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl IntoPy<Py<PyUntypedArray>> for &PyUntypedArray"],["impl<T, D> IntoPy<Py<PyAny>> for PyArray<T, D>"],["impl IntoPy<Py<PyArrayDescr>> for &PyArrayDescr"],["impl<T, D> IntoPy<Py<PyArray<T, D>>> for &PyArray<T, D>"],["impl IntoPy<Py<PyAny>> for PyUntypedArray"]] +"numpy":[["impl IntoPy<Py<PyAny>> for PyUntypedArray"],["impl IntoPy<Py<PyUntypedArray>> for &PyUntypedArray"],["impl<T, D> IntoPy<Py<PyArray<T, D>>> for &PyArray<T, D>"],["impl IntoPy<Py<PyArrayDescr>> for &PyArrayDescr"],["impl<T, D> IntoPy<Py<PyAny>> for PyArray<T, D>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/pyo3/conversion/trait.ToPyObject.js b/trait.impl/pyo3/conversion/trait.ToPyObject.js index 072def68c..12dc30669 100644 --- a/trait.impl/pyo3/conversion/trait.ToPyObject.js +++ b/trait.impl/pyo3/conversion/trait.ToPyObject.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl ToPyObject for PyUntypedArray"],["impl<T, D> ToPyObject for PyArray<T, D>"],["impl ToPyObject for PyArrayDescr"]] +"numpy":[["impl ToPyObject for PyUntypedArray"],["impl ToPyObject for PyArrayDescr"],["impl<T, D> ToPyObject for PyArray<T, D>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/pyo3/instance/trait.PyNativeType.js b/trait.impl/pyo3/instance/trait.PyNativeType.js index a6cdb0ab8..17563ef50 100644 --- a/trait.impl/pyo3/instance/trait.PyNativeType.js +++ b/trait.impl/pyo3/instance/trait.PyNativeType.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl PyNativeType for PyArrayDescr"],["impl PyNativeType for PyUntypedArray"],["impl<T, D> PyNativeType for PyArray<T, D>"]] +"numpy":[["impl PyNativeType for PyArrayDescr"],["impl<T, D> PyNativeType for PyArray<T, D>"],["impl PyNativeType for PyUntypedArray"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/pyo3/type_object/trait.PyTypeInfo.js b/trait.impl/pyo3/type_object/trait.PyTypeInfo.js index f25716728..ec934509b 100644 --- a/trait.impl/pyo3/type_object/trait.PyTypeInfo.js +++ b/trait.impl/pyo3/type_object/trait.PyTypeInfo.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>"],["impl PyTypeInfo for PyUntypedArray"],["impl PyTypeInfo for PyArrayDescr"]] +"numpy":[["impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>"],["impl PyTypeInfo for PyArrayDescr"],["impl PyTypeInfo for PyUntypedArray"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/pyo3/types/trait.DerefToPyAny.js b/trait.impl/pyo3/types/trait.DerefToPyAny.js index 89a932880..6bae06b19 100644 --- a/trait.impl/pyo3/types/trait.DerefToPyAny.js +++ b/trait.impl/pyo3/types/trait.DerefToPyAny.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"numpy":[["impl DerefToPyAny for PyUntypedArray"],["impl<T, D> DerefToPyAny for PyArray<T, D>"],["impl DerefToPyAny for PyArrayDescr"]] +"numpy":[["impl DerefToPyAny for PyArrayDescr"],["impl<T, D> DerefToPyAny for PyArray<T, D>"],["impl DerefToPyAny for PyUntypedArray"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/type.impl/core/option/enum.Option.js b/type.impl/core/option/enum.Option.js index 4ed0fb7c0..d4b8161da 100644 --- a/type.impl/core/option/enum.Option.js +++ b/type.impl/core/option/enum.Option.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl<T> Option<T>

    1.0.0 (const: 1.48.0) · source

    pub const fn is_some(&self) -> bool

    Returns true if the option is a Some value.

    \n
    Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_some(), true);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_some(), false);
    \n
    1.70.0 · source

    pub fn is_some_and(self, f: impl FnOnce(T) -> bool) -> bool

    Returns true if the option is a Some and the value inside of it matches a predicate.

    \n
    Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_some_and(|x| x > 1), true);\n\nlet x: Option<u32> = Some(0);\nassert_eq!(x.is_some_and(|x| x > 1), false);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_some_and(|x| x > 1), false);
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn is_none(&self) -> bool

    Returns true if the option is a None value.

    \n
    Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_none(), false);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_none(), true);
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn as_ref(&self) -> Option<&T>

    Converts from &Option<T> to Option<&T>.

    \n
    Examples
    \n

    Calculates the length of an Option<String> as an Option<usize>\nwithout moving the String. The map method takes the self argument by value,\nconsuming the original, so this technique uses as_ref to first take an Option to a\nreference to the value inside the original.

    \n\n
    let text: Option<String> = Some(\"Hello, world!\".to_string());\n// First, cast `Option<String>` to `Option<&String>` with `as_ref`,\n// then consume *that* with `map`, leaving `text` on the stack.\nlet text_length: Option<usize> = text.as_ref().map(|s| s.len());\nprintln!(\"still can print text: {text:?}\");
    \n
    1.0.0 (const: unstable) · source

    pub fn as_mut(&mut self) -> Option<&mut T>

    Converts from &mut Option<T> to Option<&mut T>.

    \n
    Examples
    \n
    let mut x = Some(2);\nmatch x.as_mut() {\n    Some(v) => *v = 42,\n    None => {},\n}\nassert_eq!(x, Some(42));
    \n
    1.33.0 (const: unstable) · source

    pub fn as_pin_ref(self: Pin<&Option<T>>) -> Option<Pin<&T>>

    Converts from Pin<&Option<T>> to Option<Pin<&T>>.

    \n
    1.33.0 (const: unstable) · source

    pub fn as_pin_mut(self: Pin<&mut Option<T>>) -> Option<Pin<&mut T>>

    Converts from Pin<&mut Option<T>> to Option<Pin<&mut T>>.

    \n
    1.75.0 · source

    pub fn as_slice(&self) -> &[T]

    Returns a slice of the contained value, if any. If this is None, an\nempty slice is returned. This can be useful to have a single type of\niterator over an Option or slice.

    \n

    Note: Should you have an Option<&T> and wish to get a slice of T,\nyou can unpack it via opt.map_or(&[], std::slice::from_ref).

    \n
    Examples
    \n
    assert_eq!(\n    [Some(1234).as_slice(), None.as_slice()],\n    [&[1234][..], &[][..]],\n);
    \n

    The inverse of this function is (discounting\nborrowing) [_]::first:

    \n\n
    for i in [Some(1234_u16), None] {\n    assert_eq!(i.as_ref(), i.as_slice().first());\n}
    \n
    1.75.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice of the contained value, if any. If this is\nNone, an empty slice is returned. This can be useful to have a\nsingle type of iterator over an Option or slice.

    \n

    Note: Should you have an Option<&mut T> instead of a\n&mut Option<T>, which this method takes, you can obtain a mutable\nslice via opt.map_or(&mut [], std::slice::from_mut).

    \n
    Examples
    \n
    assert_eq!(\n    [Some(1234).as_mut_slice(), None.as_mut_slice()],\n    [&mut [1234][..], &mut [][..]],\n);
    \n

    The result is a mutable slice of zero or one items that points into\nour original Option:

    \n\n
    let mut x = Some(1234);\nx.as_mut_slice()[0] += 1;\nassert_eq!(x, Some(1235));
    \n

    The inverse of this method (discounting borrowing)\nis [_]::first_mut:

    \n\n
    assert_eq!(Some(123).as_mut_slice().first_mut(), Some(&mut 123))
    \n
    1.0.0 (const: unstable) · source

    pub fn expect(self, msg: &str) -> T

    Returns the contained Some value, consuming the self value.

    \n
    Panics
    \n

    Panics if the value is a None with a custom panic message provided by\nmsg.

    \n
    Examples
    \n
    let x = Some(\"value\");\nassert_eq!(x.expect(\"fruits are healthy\"), \"value\");
    \n\n
    let x: Option<&str> = None;\nx.expect(\"fruits are healthy\"); // panics with `fruits are healthy`
    \n
    Recommended Message Style
    \n

    We recommend that expect messages are used to describe the reason you\nexpect the Option should be Some.

    \n\n
    let item = slice.get(0)\n    .expect(\"slice should not be empty\");
    \n

    Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

    \n

    For more detail on expect message styles and the reasoning behind our\nrecommendation please refer to the section on “Common Message\nStyles” in the std::error module docs.

    \n
    1.0.0 (const: unstable) · source

    pub fn unwrap(self) -> T

    Returns the contained Some value, consuming the self value.

    \n

    Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the None\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

    \n
    Panics
    \n

    Panics if the self value equals None.

    \n
    Examples
    \n
    let x = Some(\"air\");\nassert_eq!(x.unwrap(), \"air\");
    \n\n
    let x: Option<&str> = None;\nassert_eq!(x.unwrap(), \"air\"); // fails
    \n
    1.0.0 · source

    pub fn unwrap_or(self, default: T) -> T

    Returns the contained Some value or a provided default.

    \n

    Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

    \n
    Examples
    \n
    assert_eq!(Some(\"car\").unwrap_or(\"bike\"), \"car\");\nassert_eq!(None.unwrap_or(\"bike\"), \"bike\");
    \n
    1.0.0 · source

    pub fn unwrap_or_else<F>(self, f: F) -> T
    where\n F: FnOnce() -> T,

    Returns the contained Some value or computes it from a closure.

    \n
    Examples
    \n
    let k = 10;\nassert_eq!(Some(4).unwrap_or_else(|| 2 * k), 4);\nassert_eq!(None.unwrap_or_else(|| 2 * k), 20);
    \n
    1.0.0 · source

    pub fn unwrap_or_default(self) -> T
    where\n T: Default,

    Returns the contained Some value or a default.

    \n

    Consumes the self argument then, if Some, returns the contained\nvalue, otherwise if None, returns the default value for that\ntype.

    \n
    Examples
    \n
    let x: Option<u32> = None;\nlet y: Option<u32> = Some(12);\n\nassert_eq!(x.unwrap_or_default(), 0);\nassert_eq!(y.unwrap_or_default(), 12);
    \n
    1.58.0 (const: unstable) · source

    pub unsafe fn unwrap_unchecked(self) -> T

    Returns the contained Some value, consuming the self value,\nwithout checking that the value is not None.

    \n
    Safety
    \n

    Calling this method on None is undefined behavior.

    \n
    Examples
    \n
    let x = Some(\"air\");\nassert_eq!(unsafe { x.unwrap_unchecked() }, \"air\");
    \n\n
    let x: Option<&str> = None;\nassert_eq!(unsafe { x.unwrap_unchecked() }, \"air\"); // Undefined behavior!
    \n
    1.0.0 · source

    pub fn map<U, F>(self, f: F) -> Option<U>
    where\n F: FnOnce(T) -> U,

    Maps an Option<T> to Option<U> by applying a function to a contained value (if Some) or returns None (if None).

    \n
    Examples
    \n

    Calculates the length of an Option<String> as an\nOption<usize>, consuming the original:

    \n\n
    let maybe_some_string = Some(String::from(\"Hello, World!\"));\n// `Option::map` takes self *by value*, consuming `maybe_some_string`\nlet maybe_some_len = maybe_some_string.map(|s| s.len());\nassert_eq!(maybe_some_len, Some(13));\n\nlet x: Option<&str> = None;\nassert_eq!(x.map(|s| s.len()), None);
    \n
    1.76.0 · source

    pub fn inspect<F>(self, f: F) -> Option<T>
    where\n F: FnOnce(&T),

    Calls the provided closure with a reference to the contained value (if Some).

    \n
    Examples
    \n
    let v = vec![1, 2, 3, 4, 5];\n\n// prints \"got: 4\"\nlet x: Option<&usize> = v.get(3).inspect(|x| println!(\"got: {x}\"));\n\n// prints nothing\nlet x: Option<&usize> = v.get(5).inspect(|x| println!(\"got: {x}\"));
    \n
    1.0.0 · source

    pub fn map_or<U, F>(self, default: U, f: F) -> U
    where\n F: FnOnce(T) -> U,

    Returns the provided default result (if none),\nor applies a function to the contained value (if any).

    \n

    Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

    \n
    Examples
    \n
    let x = Some(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Option<&str> = None;\nassert_eq!(x.map_or(42, |v| v.len()), 42);
    \n
    1.0.0 · source

    pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
    where\n D: FnOnce() -> U,\n F: FnOnce(T) -> U,

    Computes a default function result (if none), or\napplies a different function to the contained value (if any).

    \n
    Basic examples
    \n
    let k = 21;\n\nlet x = Some(\"foo\");\nassert_eq!(x.map_or_else(|| 2 * k, |v| v.len()), 3);\n\nlet x: Option<&str> = None;\nassert_eq!(x.map_or_else(|| 2 * k, |v| v.len()), 42);
    \n
    Handling a Result-based fallback
    \n

    A somewhat common occurrence when dealing with optional values\nin combination with Result<T, E> is the case where one wants to invoke\na fallible fallback if the option is not present. This example\nparses a command line argument (if present), or the contents of a file to\nan integer. However, unlike accessing the command line argument, reading\nthe file is fallible, so it must be wrapped with Ok.

    \n\n
    let v: u64 = std::env::args()\n   .nth(1)\n   .map_or_else(|| std::fs::read_to_string(\"/etc/someconfig.conf\"), Ok)?\n   .parse()?;
    \n
    1.0.0 · source

    pub fn ok_or<E>(self, err: E) -> Result<T, E>

    Transforms the Option<T> into a Result<T, E>, mapping Some(v) to\nOk(v) and None to Err(err).

    \n

    Arguments passed to ok_or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use ok_or_else, which is\nlazily evaluated.

    \n
    Examples
    \n
    let x = Some(\"foo\");\nassert_eq!(x.ok_or(0), Ok(\"foo\"));\n\nlet x: Option<&str> = None;\nassert_eq!(x.ok_or(0), Err(0));
    \n
    1.0.0 · source

    pub fn ok_or_else<E, F>(self, err: F) -> Result<T, E>
    where\n F: FnOnce() -> E,

    Transforms the Option<T> into a Result<T, E>, mapping Some(v) to\nOk(v) and None to Err(err()).

    \n
    Examples
    \n
    let x = Some(\"foo\");\nassert_eq!(x.ok_or_else(|| 0), Ok(\"foo\"));\n\nlet x: Option<&str> = None;\nassert_eq!(x.ok_or_else(|| 0), Err(0));
    \n
    1.40.0 · source

    pub fn as_deref(&self) -> Option<&<T as Deref>::Target>
    where\n T: Deref,

    Converts from Option<T> (or &Option<T>) to Option<&T::Target>.

    \n

    Leaves the original Option in-place, creating a new one with a reference\nto the original one, additionally coercing the contents via Deref.

    \n
    Examples
    \n
    let x: Option<String> = Some(\"hey\".to_owned());\nassert_eq!(x.as_deref(), Some(\"hey\"));\n\nlet x: Option<String> = None;\nassert_eq!(x.as_deref(), None);
    \n
    1.40.0 · source

    pub fn as_deref_mut(&mut self) -> Option<&mut <T as Deref>::Target>
    where\n T: DerefMut,

    Converts from Option<T> (or &mut Option<T>) to Option<&mut T::Target>.

    \n

    Leaves the original Option in-place, creating a new one containing a mutable reference to\nthe inner type’s Deref::Target type.

    \n
    Examples
    \n
    let mut x: Option<String> = Some(\"hey\".to_owned());\nassert_eq!(x.as_deref_mut().map(|x| {\n    x.make_ascii_uppercase();\n    x\n}), Some(\"HEY\".to_owned().as_mut_str()));
    \n
    1.0.0 (const: unstable) · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the possibly contained value.

    \n
    Examples
    \n
    let x = Some(4);\nassert_eq!(x.iter().next(), Some(&4));\n\nlet x: Option<u32> = None;\nassert_eq!(x.iter().next(), None);
    \n
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns a mutable iterator over the possibly contained value.

    \n
    Examples
    \n
    let mut x = Some(4);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 42,\n    None => {},\n}\nassert_eq!(x, Some(42));\n\nlet mut x: Option<u32> = None;\nassert_eq!(x.iter_mut().next(), None);
    \n
    1.0.0 · source

    pub fn and<U>(self, optb: Option<U>) -> Option<U>

    Returns None if the option is None, otherwise returns optb.

    \n

    Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

    \n
    Examples
    \n
    let x = Some(2);\nlet y: Option<&str> = None;\nassert_eq!(x.and(y), None);\n\nlet x: Option<u32> = None;\nlet y = Some(\"foo\");\nassert_eq!(x.and(y), None);\n\nlet x = Some(2);\nlet y = Some(\"foo\");\nassert_eq!(x.and(y), Some(\"foo\"));\n\nlet x: Option<u32> = None;\nlet y: Option<&str> = None;\nassert_eq!(x.and(y), None);
    \n
    1.0.0 · source

    pub fn and_then<U, F>(self, f: F) -> Option<U>
    where\n F: FnOnce(T) -> Option<U>,

    Returns None if the option is None, otherwise calls f with the\nwrapped value and returns the result.

    \n

    Some languages call this operation flatmap.

    \n
    Examples
    \n
    fn sq_then_to_string(x: u32) -> Option<String> {\n    x.checked_mul(x).map(|sq| sq.to_string())\n}\n\nassert_eq!(Some(2).and_then(sq_then_to_string), Some(4.to_string()));\nassert_eq!(Some(1_000_000).and_then(sq_then_to_string), None); // overflowed!\nassert_eq!(None.and_then(sq_then_to_string), None);
    \n

    Often used to chain fallible operations that may return None.

    \n\n
    let arr_2d = [[\"A0\", \"A1\"], [\"B0\", \"B1\"]];\n\nlet item_0_1 = arr_2d.get(0).and_then(|row| row.get(1));\nassert_eq!(item_0_1, Some(&\"A1\"));\n\nlet item_2_0 = arr_2d.get(2).and_then(|row| row.get(0));\nassert_eq!(item_2_0, None);
    \n
    1.27.0 · source

    pub fn filter<P>(self, predicate: P) -> Option<T>
    where\n P: FnOnce(&T) -> bool,

    Returns None if the option is None, otherwise calls predicate\nwith the wrapped value and returns:

    \n
      \n
    • Some(t) if predicate returns true (where t is the wrapped\nvalue), and
    • \n
    • None if predicate returns false.
    • \n
    \n

    This function works similar to Iterator::filter(). You can imagine\nthe Option<T> being an iterator over one or zero elements. filter()\nlets you decide which elements to keep.

    \n
    Examples
    \n
    fn is_even(n: &i32) -> bool {\n    n % 2 == 0\n}\n\nassert_eq!(None.filter(is_even), None);\nassert_eq!(Some(3).filter(is_even), None);\nassert_eq!(Some(4).filter(is_even), Some(4));
    \n
    1.0.0 · source

    pub fn or(self, optb: Option<T>) -> Option<T>

    Returns the option if it contains a value, otherwise returns optb.

    \n

    Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

    \n
    Examples
    \n
    let x = Some(2);\nlet y = None;\nassert_eq!(x.or(y), Some(2));\n\nlet x = None;\nlet y = Some(100);\nassert_eq!(x.or(y), Some(100));\n\nlet x = Some(2);\nlet y = Some(100);\nassert_eq!(x.or(y), Some(2));\n\nlet x: Option<u32> = None;\nlet y = None;\nassert_eq!(x.or(y), None);
    \n
    1.0.0 · source

    pub fn or_else<F>(self, f: F) -> Option<T>
    where\n F: FnOnce() -> Option<T>,

    Returns the option if it contains a value, otherwise calls f and\nreturns the result.

    \n
    Examples
    \n
    fn nobody() -> Option<&'static str> { None }\nfn vikings() -> Option<&'static str> { Some(\"vikings\") }\n\nassert_eq!(Some(\"barbarians\").or_else(vikings), Some(\"barbarians\"));\nassert_eq!(None.or_else(vikings), Some(\"vikings\"));\nassert_eq!(None.or_else(nobody), None);
    \n
    1.37.0 · source

    pub fn xor(self, optb: Option<T>) -> Option<T>

    Returns Some if exactly one of self, optb is Some, otherwise returns None.

    \n
    Examples
    \n
    let x = Some(2);\nlet y: Option<u32> = None;\nassert_eq!(x.xor(y), Some(2));\n\nlet x: Option<u32> = None;\nlet y = Some(2);\nassert_eq!(x.xor(y), Some(2));\n\nlet x = Some(2);\nlet y = Some(2);\nassert_eq!(x.xor(y), None);\n\nlet x: Option<u32> = None;\nlet y: Option<u32> = None;\nassert_eq!(x.xor(y), None);
    \n
    1.53.0 · source

    pub fn insert(&mut self, value: T) -> &mut T

    Inserts value into the option, then returns a mutable reference to it.

    \n

    If the option already contains a value, the old value is dropped.

    \n

    See also Option::get_or_insert, which doesn’t update the value if\nthe option already contains Some.

    \n
    Example
    \n
    let mut opt = None;\nlet val = opt.insert(1);\nassert_eq!(*val, 1);\nassert_eq!(opt.unwrap(), 1);\nlet val = opt.insert(2);\nassert_eq!(*val, 2);\n*val = 3;\nassert_eq!(opt.unwrap(), 3);
    \n
    1.20.0 · source

    pub fn get_or_insert(&mut self, value: T) -> &mut T

    Inserts value into the option if it is None, then\nreturns a mutable reference to the contained value.

    \n

    See also Option::insert, which updates the value even if\nthe option already contains Some.

    \n
    Examples
    \n
    let mut x = None;\n\n{\n    let y: &mut u32 = x.get_or_insert(5);\n    assert_eq!(y, &5);\n\n    *y = 7;\n}\n\nassert_eq!(x, Some(7));
    \n
    source

    pub fn get_or_insert_default(&mut self) -> &mut T
    where\n T: Default,

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

    Inserts the default value into the option if it is None, then\nreturns a mutable reference to the contained value.

    \n
    Examples
    \n
    #![feature(option_get_or_insert_default)]\n\nlet mut x = None;\n\n{\n    let y: &mut u32 = x.get_or_insert_default();\n    assert_eq!(y, &0);\n\n    *y = 7;\n}\n\nassert_eq!(x, Some(7));
    \n
    1.20.0 · source

    pub fn get_or_insert_with<F>(&mut self, f: F) -> &mut T
    where\n F: FnOnce() -> T,

    Inserts a value computed from f into the option if it is None,\nthen returns a mutable reference to the contained value.

    \n
    Examples
    \n
    let mut x = None;\n\n{\n    let y: &mut u32 = x.get_or_insert_with(|| 5);\n    assert_eq!(y, &5);\n\n    *y = 7;\n}\n\nassert_eq!(x, Some(7));
    \n
    1.0.0 (const: unstable) · source

    pub fn take(&mut self) -> Option<T>

    Takes the value out of the option, leaving a None in its place.

    \n
    Examples
    \n
    let mut x = Some(2);\nlet y = x.take();\nassert_eq!(x, None);\nassert_eq!(y, Some(2));\n\nlet mut x: Option<u32> = None;\nlet y = x.take();\nassert_eq!(x, None);\nassert_eq!(y, None);
    \n
    source

    pub fn take_if<P>(&mut self, predicate: P) -> Option<T>
    where\n P: FnOnce(&mut T) -> bool,

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

    Takes the value out of the option, but only if the predicate evaluates to\ntrue on a mutable reference to the value.

    \n

    In other words, replaces self with None if the predicate returns true.\nThis method operates similar to Option::take but conditional.

    \n
    Examples
    \n
    #![feature(option_take_if)]\n\nlet mut x = Some(42);\n\nlet prev = x.take_if(|v| if *v == 42 {\n    *v += 1;\n    false\n} else {\n    false\n});\nassert_eq!(x, Some(43));\nassert_eq!(prev, None);\n\nlet prev = x.take_if(|v| *v == 43);\nassert_eq!(x, None);\nassert_eq!(prev, Some(43));
    \n
    1.31.0 (const: unstable) · source

    pub fn replace(&mut self, value: T) -> Option<T>

    Replaces the actual value in the option by the value given in parameter,\nreturning the old value if present,\nleaving a Some in its place without deinitializing either one.

    \n
    Examples
    \n
    let mut x = Some(2);\nlet old = x.replace(5);\nassert_eq!(x, Some(5));\nassert_eq!(old, Some(2));\n\nlet mut x = None;\nlet old = x.replace(3);\nassert_eq!(x, Some(3));\nassert_eq!(old, None);
    \n
    1.46.0 · source

    pub fn zip<U>(self, other: Option<U>) -> Option<(T, U)>

    Zips self with another Option.

    \n

    If self is Some(s) and other is Some(o), this method returns Some((s, o)).\nOtherwise, None is returned.

    \n
    Examples
    \n
    let x = Some(1);\nlet y = Some(\"hi\");\nlet z = None::<u8>;\n\nassert_eq!(x.zip(y), Some((1, \"hi\")));\nassert_eq!(x.zip(z), None);
    \n
    source

    pub fn zip_with<U, F, R>(self, other: Option<U>, f: F) -> Option<R>
    where\n F: FnOnce(T, U) -> R,

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

    Zips self and another Option with function f.

    \n

    If self is Some(s) and other is Some(o), this method returns Some(f(s, o)).\nOtherwise, None is returned.

    \n
    Examples
    \n
    #![feature(option_zip)]\n\n#[derive(Debug, PartialEq)]\nstruct Point {\n    x: f64,\n    y: f64,\n}\n\nimpl Point {\n    fn new(x: f64, y: f64) -> Self {\n        Self { x, y }\n    }\n}\n\nlet x = Some(17.5);\nlet y = Some(42.7);\n\nassert_eq!(x.zip_with(y, Point::new), Some(Point { x: 17.5, y: 42.7 }));\nassert_eq!(x.zip_with(None, Point::new), None);
    \n
    ",0,"numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> PartialOrd for Option<T>
    where\n T: PartialOrd,

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.37.0 · source§

    impl<T, U> Product<Option<U>> for Option<T>
    where\n T: Product<U>,

    source§

    fn product<I>(iter: I) -> Option<T>
    where\n I: Iterator<Item = Option<U>>,

    Takes each element in the Iterator: if it is a None, no further\nelements are taken, and the None is returned. Should no None\noccur, the product of all elements is returned.

    \n
    Examples
    \n

    This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns None:

    \n\n
    let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Option<usize> = nums.iter().map(|w| w.parse::<usize>().ok()).product();\nassert_eq!(total, Some(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Option<usize> = nums.iter().map(|w| w.parse::<usize>().ok()).product();\nassert_eq!(total, None);
    \n
    ","Product>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    source§

    impl<T> FromResidual for Option<T>

    source§

    fn from_residual(residual: Option<Infallible>) -> Option<T>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    source§

    impl<T> FromResidual<Yeet<()>> for Option<T>

    source§

    fn from_residual(_: Yeet<()>) -> Option<T>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    source§

    impl<T> Try for Option<T>

    §

    type Output = T

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value produced by ? when not short-circuiting.
    §

    type Residual = Option<Infallible>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
    source§

    fn from_output(output: <Option<T> as Try>::Output) -> Option<T>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from its Output type. Read more
    source§

    fn branch(\n self\n) -> ControlFlow<<Option<T> as Try>::Residual, <Option<T> as Try>::Output>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
    ","Try","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Clone for Option<T>
    where\n T: Clone,

    source§

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

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, source: &Option<T>)

    Performs copy-assignment from source. Read more
    ","Clone","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<A, V> FromIterator<Option<A>> for Option<V>
    where\n V: FromIterator<A>,

    source§

    fn from_iter<I>(iter: I) -> Option<V>
    where\n I: IntoIterator<Item = Option<A>>,

    Takes each element in the Iterator: if it is None,\nno further elements are taken, and the None is\nreturned. Should no None occur, a container of type\nV containing the values of each Option is returned.

    \n
    Examples
    \n

    Here is an example which increments every integer in a vector.\nWe use the checked variant of add that returns None when the\ncalculation would result in an overflow.

    \n\n
    let items = vec![0_u16, 1, 2];\n\nlet res: Option<Vec<u16>> = items\n    .iter()\n    .map(|x| x.checked_add(1))\n    .collect();\n\nassert_eq!(res, Some(vec![1, 2, 3]));
    \n

    As you can see, this will return the expected, valid items.

    \n

    Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

    \n\n
    let items = vec![2_u16, 1, 0];\n\nlet res: Option<Vec<u16>> = items\n    .iter()\n    .map(|x| x.checked_sub(1))\n    .collect();\n\nassert_eq!(res, None);
    \n

    Since the last element is zero, it would underflow. Thus, the resulting\nvalue is None.

    \n

    Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first None.

    \n\n
    let items = vec![3_u16, 2, 1, 10];\n\nlet mut shared = 0;\n\nlet res: Option<Vec<u16>> = items\n    .iter()\n    .map(|x| { shared += x; x.checked_sub(2) })\n    .collect();\n\nassert_eq!(res, None);\nassert_eq!(shared, 6);
    \n

    Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

    \n
    ","FromIterator>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> StructuralEq for Option<T>

    ","StructuralEq","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Eq for Option<T>
    where\n T: Eq,

    ","Eq","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Hash for Option<T>
    where\n T: Hash,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Ord for Option<T>
    where\n T: Ord,

    source§

    fn cmp(&self, other: &Option<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> PartialEq for Option<T>
    where\n T: PartialEq,

    source§

    fn eq(&self, other: &Option<T>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> IntoIterator for Option<T>

    source§

    fn into_iter(self) -> IntoIter<T>

    Returns a consuming iterator over the possibly contained value.

    \n
    Examples
    \n
    let x = Some(\"string\");\nlet v: Vec<&str> = x.into_iter().collect();\nassert_eq!(v, [\"string\"]);\n\nlet x = None;\nlet v: Vec<&str> = x.into_iter().collect();\nassert!(v.is_empty());
    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T>

    Which kind of iterator are we turning this into?
    ","IntoIterator","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.37.0 · source§

    impl<T, U> Sum<Option<U>> for Option<T>
    where\n T: Sum<U>,

    source§

    fn sum<I>(iter: I) -> Option<T>
    where\n I: Iterator<Item = Option<U>>,

    Takes each element in the Iterator: if it is a None, no further\nelements are taken, and the None is returned. Should no None\noccur, the sum of all elements is returned.

    \n
    Examples
    \n

    This sums up the position of the character ‘a’ in a vector of strings,\nif a word did not have the character ‘a’ the operation returns None:

    \n\n
    let words = vec![\"have\", \"a\", \"great\", \"day\"];\nlet total: Option<usize> = words.iter().map(|w| w.find('a')).sum();\nassert_eq!(total, Some(5));\nlet words = vec![\"have\", \"a\", \"good\", \"day\"];\nlet total: Option<usize> = words.iter().map(|w| w.find('a')).sum();\nassert_eq!(total, None);
    \n
    ","Sum>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> StructuralPartialEq for Option<T>

    ","StructuralPartialEq","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Debug for Option<T>
    where\n T: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.12.0 · source§

    impl<T> From<T> for Option<T>

    source§

    fn from(val: T) -> Option<T>

    Moves val into a new Some.

    \n
    Examples
    \n
    let o: Option<u8> = Option::from(67);\n\nassert_eq!(Some(67), o);
    \n
    ","From","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Copy for Option<T>
    where\n T: Copy,

    ","Copy","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Default for Option<T>

    source§

    fn default() -> Option<T>

    Returns None.

    \n
    Examples
    \n
    let opt: Option<u32> = Option::default();\nassert!(opt.is_none());
    \n
    ","Default","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<T> ToPyObject for Option<T>
    where\n T: ToPyObject,

    Option::Some<T> is converted like T.\nOption::None is converted to Python None.

    \n
    §

    fn to_object(&self, py: Python<'_>) -> Py<PyAny>

    Converts self into a Python object.
    ","ToPyObject","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<T> IntoPy<Py<PyAny>> for Option<T>
    where\n T: IntoPy<Py<PyAny>>,

    §

    fn into_py(self, py: Python<'_>) -> Py<PyAny>

    Performs the conversion.
    ","IntoPy>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<Value> IterOptionKind for Option<Value>

    §

    fn iter_tag(&self) -> IterOptionTag

    ","IterOptionKind","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<Value> AsyncIterOptionKind for Option<Value>

    §

    fn async_iter_tag(&self) -> AsyncIterOptionTag

    ","AsyncIterOptionKind","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<T> AsPyPointer for Option<T>
    where\n T: AsPyPointer,

    Convert None into a null pointer.

    \n
    §

    fn as_ptr(&self) -> *mut PyObject

    Returns the underlying FFI pointer as a borrowed pointer.
    ","AsPyPointer","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<'py, T> FromPyObject<'py> for Option<T>
    where\n T: FromPyObject<'py>,

    §

    fn extract_bound(obj: &Bound<'py, PyAny>) -> Result<Option<T>, PyErr>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"]] +"numpy":[["
    source§

    impl<T> Option<T>

    1.0.0 (const: 1.48.0) · source

    pub const fn is_some(&self) -> bool

    Returns true if the option is a Some value.

    \n
    §Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_some(), true);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_some(), false);
    \n
    1.70.0 · source

    pub fn is_some_and(self, f: impl FnOnce(T) -> bool) -> bool

    Returns true if the option is a Some and the value inside of it matches a predicate.

    \n
    §Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_some_and(|x| x > 1), true);\n\nlet x: Option<u32> = Some(0);\nassert_eq!(x.is_some_and(|x| x > 1), false);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_some_and(|x| x > 1), false);
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn is_none(&self) -> bool

    Returns true if the option is a None value.

    \n
    §Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_none(), false);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_none(), true);
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn as_ref(&self) -> Option<&T>

    Converts from &Option<T> to Option<&T>.

    \n
    §Examples
    \n

    Calculates the length of an Option<String> as an Option<usize>\nwithout moving the String. The map method takes the self argument by value,\nconsuming the original, so this technique uses as_ref to first take an Option to a\nreference to the value inside the original.

    \n\n
    let text: Option<String> = Some(\"Hello, world!\".to_string());\n// First, cast `Option<String>` to `Option<&String>` with `as_ref`,\n// then consume *that* with `map`, leaving `text` on the stack.\nlet text_length: Option<usize> = text.as_ref().map(|s| s.len());\nprintln!(\"still can print text: {text:?}\");
    \n
    1.0.0 (const: unstable) · source

    pub fn as_mut(&mut self) -> Option<&mut T>

    Converts from &mut Option<T> to Option<&mut T>.

    \n
    §Examples
    \n
    let mut x = Some(2);\nmatch x.as_mut() {\n    Some(v) => *v = 42,\n    None => {},\n}\nassert_eq!(x, Some(42));
    \n
    1.33.0 (const: unstable) · source

    pub fn as_pin_ref(self: Pin<&Option<T>>) -> Option<Pin<&T>>

    Converts from Pin<&Option<T>> to Option<Pin<&T>>.

    \n
    1.33.0 (const: unstable) · source

    pub fn as_pin_mut(self: Pin<&mut Option<T>>) -> Option<Pin<&mut T>>

    Converts from Pin<&mut Option<T>> to Option<Pin<&mut T>>.

    \n
    1.75.0 · source

    pub fn as_slice(&self) -> &[T]

    Returns a slice of the contained value, if any. If this is None, an\nempty slice is returned. This can be useful to have a single type of\niterator over an Option or slice.

    \n

    Note: Should you have an Option<&T> and wish to get a slice of T,\nyou can unpack it via opt.map_or(&[], std::slice::from_ref).

    \n
    §Examples
    \n
    assert_eq!(\n    [Some(1234).as_slice(), None.as_slice()],\n    [&[1234][..], &[][..]],\n);
    \n

    The inverse of this function is (discounting\nborrowing) [_]::first:

    \n\n
    for i in [Some(1234_u16), None] {\n    assert_eq!(i.as_ref(), i.as_slice().first());\n}
    \n
    1.75.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice of the contained value, if any. If this is\nNone, an empty slice is returned. This can be useful to have a\nsingle type of iterator over an Option or slice.

    \n

    Note: Should you have an Option<&mut T> instead of a\n&mut Option<T>, which this method takes, you can obtain a mutable\nslice via opt.map_or(&mut [], std::slice::from_mut).

    \n
    §Examples
    \n
    assert_eq!(\n    [Some(1234).as_mut_slice(), None.as_mut_slice()],\n    [&mut [1234][..], &mut [][..]],\n);
    \n

    The result is a mutable slice of zero or one items that points into\nour original Option:

    \n\n
    let mut x = Some(1234);\nx.as_mut_slice()[0] += 1;\nassert_eq!(x, Some(1235));
    \n

    The inverse of this method (discounting borrowing)\nis [_]::first_mut:

    \n\n
    assert_eq!(Some(123).as_mut_slice().first_mut(), Some(&mut 123))
    \n
    1.0.0 (const: unstable) · source

    pub fn expect(self, msg: &str) -> T

    Returns the contained Some value, consuming the self value.

    \n
    §Panics
    \n

    Panics if the value is a None with a custom panic message provided by\nmsg.

    \n
    §Examples
    \n
    let x = Some(\"value\");\nassert_eq!(x.expect(\"fruits are healthy\"), \"value\");
    \n\n
    let x: Option<&str> = None;\nx.expect(\"fruits are healthy\"); // panics with `fruits are healthy`
    \n
    §Recommended Message Style
    \n

    We recommend that expect messages are used to describe the reason you\nexpect the Option should be Some.

    \n\n
    let item = slice.get(0)\n    .expect(\"slice should not be empty\");
    \n

    Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

    \n

    For more detail on expect message styles and the reasoning behind our\nrecommendation please refer to the section on “Common Message\nStyles” in the std::error module docs.

    \n
    1.0.0 (const: unstable) · source

    pub fn unwrap(self) -> T

    Returns the contained Some value, consuming the self value.

    \n

    Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the None\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

    \n
    §Panics
    \n

    Panics if the self value equals None.

    \n
    §Examples
    \n
    let x = Some(\"air\");\nassert_eq!(x.unwrap(), \"air\");
    \n\n
    let x: Option<&str> = None;\nassert_eq!(x.unwrap(), \"air\"); // fails
    \n
    1.0.0 · source

    pub fn unwrap_or(self, default: T) -> T

    Returns the contained Some value or a provided default.

    \n

    Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

    \n
    §Examples
    \n
    assert_eq!(Some(\"car\").unwrap_or(\"bike\"), \"car\");\nassert_eq!(None.unwrap_or(\"bike\"), \"bike\");
    \n
    1.0.0 · source

    pub fn unwrap_or_else<F>(self, f: F) -> T
    where\n F: FnOnce() -> T,

    Returns the contained Some value or computes it from a closure.

    \n
    §Examples
    \n
    let k = 10;\nassert_eq!(Some(4).unwrap_or_else(|| 2 * k), 4);\nassert_eq!(None.unwrap_or_else(|| 2 * k), 20);
    \n
    1.0.0 · source

    pub fn unwrap_or_default(self) -> T
    where\n T: Default,

    Returns the contained Some value or a default.

    \n

    Consumes the self argument then, if Some, returns the contained\nvalue, otherwise if None, returns the default value for that\ntype.

    \n
    §Examples
    \n
    let x: Option<u32> = None;\nlet y: Option<u32> = Some(12);\n\nassert_eq!(x.unwrap_or_default(), 0);\nassert_eq!(y.unwrap_or_default(), 12);
    \n
    1.58.0 (const: unstable) · source

    pub unsafe fn unwrap_unchecked(self) -> T

    Returns the contained Some value, consuming the self value,\nwithout checking that the value is not None.

    \n
    §Safety
    \n

    Calling this method on None is undefined behavior.

    \n
    §Examples
    \n
    let x = Some(\"air\");\nassert_eq!(unsafe { x.unwrap_unchecked() }, \"air\");
    \n\n
    let x: Option<&str> = None;\nassert_eq!(unsafe { x.unwrap_unchecked() }, \"air\"); // Undefined behavior!
    \n
    1.0.0 · source

    pub fn map<U, F>(self, f: F) -> Option<U>
    where\n F: FnOnce(T) -> U,

    Maps an Option<T> to Option<U> by applying a function to a contained value (if Some) or returns None (if None).

    \n
    §Examples
    \n

    Calculates the length of an Option<String> as an\nOption<usize>, consuming the original:

    \n\n
    let maybe_some_string = Some(String::from(\"Hello, World!\"));\n// `Option::map` takes self *by value*, consuming `maybe_some_string`\nlet maybe_some_len = maybe_some_string.map(|s| s.len());\nassert_eq!(maybe_some_len, Some(13));\n\nlet x: Option<&str> = None;\nassert_eq!(x.map(|s| s.len()), None);
    \n
    1.76.0 · source

    pub fn inspect<F>(self, f: F) -> Option<T>
    where\n F: FnOnce(&T),

    Calls the provided closure with a reference to the contained value (if Some).

    \n
    §Examples
    \n
    let v = vec![1, 2, 3, 4, 5];\n\n// prints \"got: 4\"\nlet x: Option<&usize> = v.get(3).inspect(|x| println!(\"got: {x}\"));\n\n// prints nothing\nlet x: Option<&usize> = v.get(5).inspect(|x| println!(\"got: {x}\"));
    \n
    1.0.0 · source

    pub fn map_or<U, F>(self, default: U, f: F) -> U
    where\n F: FnOnce(T) -> U,

    Returns the provided default result (if none),\nor applies a function to the contained value (if any).

    \n

    Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

    \n
    §Examples
    \n
    let x = Some(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Option<&str> = None;\nassert_eq!(x.map_or(42, |v| v.len()), 42);
    \n
    1.0.0 · source

    pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
    where\n D: FnOnce() -> U,\n F: FnOnce(T) -> U,

    Computes a default function result (if none), or\napplies a different function to the contained value (if any).

    \n
    §Basic examples
    \n
    let k = 21;\n\nlet x = Some(\"foo\");\nassert_eq!(x.map_or_else(|| 2 * k, |v| v.len()), 3);\n\nlet x: Option<&str> = None;\nassert_eq!(x.map_or_else(|| 2 * k, |v| v.len()), 42);
    \n
    §Handling a Result-based fallback
    \n

    A somewhat common occurrence when dealing with optional values\nin combination with Result<T, E> is the case where one wants to invoke\na fallible fallback if the option is not present. This example\nparses a command line argument (if present), or the contents of a file to\nan integer. However, unlike accessing the command line argument, reading\nthe file is fallible, so it must be wrapped with Ok.

    \n\n
    let v: u64 = std::env::args()\n   .nth(1)\n   .map_or_else(|| std::fs::read_to_string(\"/etc/someconfig.conf\"), Ok)?\n   .parse()?;
    \n
    1.0.0 · source

    pub fn ok_or<E>(self, err: E) -> Result<T, E>

    Transforms the Option<T> into a Result<T, E>, mapping Some(v) to\nOk(v) and None to Err(err).

    \n

    Arguments passed to ok_or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use ok_or_else, which is\nlazily evaluated.

    \n
    §Examples
    \n
    let x = Some(\"foo\");\nassert_eq!(x.ok_or(0), Ok(\"foo\"));\n\nlet x: Option<&str> = None;\nassert_eq!(x.ok_or(0), Err(0));
    \n
    1.0.0 · source

    pub fn ok_or_else<E, F>(self, err: F) -> Result<T, E>
    where\n F: FnOnce() -> E,

    Transforms the Option<T> into a Result<T, E>, mapping Some(v) to\nOk(v) and None to Err(err()).

    \n
    §Examples
    \n
    let x = Some(\"foo\");\nassert_eq!(x.ok_or_else(|| 0), Ok(\"foo\"));\n\nlet x: Option<&str> = None;\nassert_eq!(x.ok_or_else(|| 0), Err(0));
    \n
    1.40.0 · source

    pub fn as_deref(&self) -> Option<&<T as Deref>::Target>
    where\n T: Deref,

    Converts from Option<T> (or &Option<T>) to Option<&T::Target>.

    \n

    Leaves the original Option in-place, creating a new one with a reference\nto the original one, additionally coercing the contents via Deref.

    \n
    §Examples
    \n
    let x: Option<String> = Some(\"hey\".to_owned());\nassert_eq!(x.as_deref(), Some(\"hey\"));\n\nlet x: Option<String> = None;\nassert_eq!(x.as_deref(), None);
    \n
    1.40.0 · source

    pub fn as_deref_mut(&mut self) -> Option<&mut <T as Deref>::Target>
    where\n T: DerefMut,

    Converts from Option<T> (or &mut Option<T>) to Option<&mut T::Target>.

    \n

    Leaves the original Option in-place, creating a new one containing a mutable reference to\nthe inner type’s Deref::Target type.

    \n
    §Examples
    \n
    let mut x: Option<String> = Some(\"hey\".to_owned());\nassert_eq!(x.as_deref_mut().map(|x| {\n    x.make_ascii_uppercase();\n    x\n}), Some(\"HEY\".to_owned().as_mut_str()));
    \n
    1.0.0 (const: unstable) · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the possibly contained value.

    \n
    §Examples
    \n
    let x = Some(4);\nassert_eq!(x.iter().next(), Some(&4));\n\nlet x: Option<u32> = None;\nassert_eq!(x.iter().next(), None);
    \n
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns a mutable iterator over the possibly contained value.

    \n
    §Examples
    \n
    let mut x = Some(4);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 42,\n    None => {},\n}\nassert_eq!(x, Some(42));\n\nlet mut x: Option<u32> = None;\nassert_eq!(x.iter_mut().next(), None);
    \n
    1.0.0 · source

    pub fn and<U>(self, optb: Option<U>) -> Option<U>

    Returns None if the option is None, otherwise returns optb.

    \n

    Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

    \n
    §Examples
    \n
    let x = Some(2);\nlet y: Option<&str> = None;\nassert_eq!(x.and(y), None);\n\nlet x: Option<u32> = None;\nlet y = Some(\"foo\");\nassert_eq!(x.and(y), None);\n\nlet x = Some(2);\nlet y = Some(\"foo\");\nassert_eq!(x.and(y), Some(\"foo\"));\n\nlet x: Option<u32> = None;\nlet y: Option<&str> = None;\nassert_eq!(x.and(y), None);
    \n
    1.0.0 · source

    pub fn and_then<U, F>(self, f: F) -> Option<U>
    where\n F: FnOnce(T) -> Option<U>,

    Returns None if the option is None, otherwise calls f with the\nwrapped value and returns the result.

    \n

    Some languages call this operation flatmap.

    \n
    §Examples
    \n
    fn sq_then_to_string(x: u32) -> Option<String> {\n    x.checked_mul(x).map(|sq| sq.to_string())\n}\n\nassert_eq!(Some(2).and_then(sq_then_to_string), Some(4.to_string()));\nassert_eq!(Some(1_000_000).and_then(sq_then_to_string), None); // overflowed!\nassert_eq!(None.and_then(sq_then_to_string), None);
    \n

    Often used to chain fallible operations that may return None.

    \n\n
    let arr_2d = [[\"A0\", \"A1\"], [\"B0\", \"B1\"]];\n\nlet item_0_1 = arr_2d.get(0).and_then(|row| row.get(1));\nassert_eq!(item_0_1, Some(&\"A1\"));\n\nlet item_2_0 = arr_2d.get(2).and_then(|row| row.get(0));\nassert_eq!(item_2_0, None);
    \n
    1.27.0 · source

    pub fn filter<P>(self, predicate: P) -> Option<T>
    where\n P: FnOnce(&T) -> bool,

    Returns None if the option is None, otherwise calls predicate\nwith the wrapped value and returns:

    \n
      \n
    • Some(t) if predicate returns true (where t is the wrapped\nvalue), and
    • \n
    • None if predicate returns false.
    • \n
    \n

    This function works similar to Iterator::filter(). You can imagine\nthe Option<T> being an iterator over one or zero elements. filter()\nlets you decide which elements to keep.

    \n
    §Examples
    \n
    fn is_even(n: &i32) -> bool {\n    n % 2 == 0\n}\n\nassert_eq!(None.filter(is_even), None);\nassert_eq!(Some(3).filter(is_even), None);\nassert_eq!(Some(4).filter(is_even), Some(4));
    \n
    1.0.0 · source

    pub fn or(self, optb: Option<T>) -> Option<T>

    Returns the option if it contains a value, otherwise returns optb.

    \n

    Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

    \n
    §Examples
    \n
    let x = Some(2);\nlet y = None;\nassert_eq!(x.or(y), Some(2));\n\nlet x = None;\nlet y = Some(100);\nassert_eq!(x.or(y), Some(100));\n\nlet x = Some(2);\nlet y = Some(100);\nassert_eq!(x.or(y), Some(2));\n\nlet x: Option<u32> = None;\nlet y = None;\nassert_eq!(x.or(y), None);
    \n
    1.0.0 · source

    pub fn or_else<F>(self, f: F) -> Option<T>
    where\n F: FnOnce() -> Option<T>,

    Returns the option if it contains a value, otherwise calls f and\nreturns the result.

    \n
    §Examples
    \n
    fn nobody() -> Option<&'static str> { None }\nfn vikings() -> Option<&'static str> { Some(\"vikings\") }\n\nassert_eq!(Some(\"barbarians\").or_else(vikings), Some(\"barbarians\"));\nassert_eq!(None.or_else(vikings), Some(\"vikings\"));\nassert_eq!(None.or_else(nobody), None);
    \n
    1.37.0 · source

    pub fn xor(self, optb: Option<T>) -> Option<T>

    Returns Some if exactly one of self, optb is Some, otherwise returns None.

    \n
    §Examples
    \n
    let x = Some(2);\nlet y: Option<u32> = None;\nassert_eq!(x.xor(y), Some(2));\n\nlet x: Option<u32> = None;\nlet y = Some(2);\nassert_eq!(x.xor(y), Some(2));\n\nlet x = Some(2);\nlet y = Some(2);\nassert_eq!(x.xor(y), None);\n\nlet x: Option<u32> = None;\nlet y: Option<u32> = None;\nassert_eq!(x.xor(y), None);
    \n
    1.53.0 · source

    pub fn insert(&mut self, value: T) -> &mut T

    Inserts value into the option, then returns a mutable reference to it.

    \n

    If the option already contains a value, the old value is dropped.

    \n

    See also Option::get_or_insert, which doesn’t update the value if\nthe option already contains Some.

    \n
    §Example
    \n
    let mut opt = None;\nlet val = opt.insert(1);\nassert_eq!(*val, 1);\nassert_eq!(opt.unwrap(), 1);\nlet val = opt.insert(2);\nassert_eq!(*val, 2);\n*val = 3;\nassert_eq!(opt.unwrap(), 3);
    \n
    1.20.0 · source

    pub fn get_or_insert(&mut self, value: T) -> &mut T

    Inserts value into the option if it is None, then\nreturns a mutable reference to the contained value.

    \n

    See also Option::insert, which updates the value even if\nthe option already contains Some.

    \n
    §Examples
    \n
    let mut x = None;\n\n{\n    let y: &mut u32 = x.get_or_insert(5);\n    assert_eq!(y, &5);\n\n    *y = 7;\n}\n\nassert_eq!(x, Some(7));
    \n
    source

    pub fn get_or_insert_default(&mut self) -> &mut T
    where\n T: Default,

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

    Inserts the default value into the option if it is None, then\nreturns a mutable reference to the contained value.

    \n
    §Examples
    \n
    #![feature(option_get_or_insert_default)]\n\nlet mut x = None;\n\n{\n    let y: &mut u32 = x.get_or_insert_default();\n    assert_eq!(y, &0);\n\n    *y = 7;\n}\n\nassert_eq!(x, Some(7));
    \n
    1.20.0 · source

    pub fn get_or_insert_with<F>(&mut self, f: F) -> &mut T
    where\n F: FnOnce() -> T,

    Inserts a value computed from f into the option if it is None,\nthen returns a mutable reference to the contained value.

    \n
    §Examples
    \n
    let mut x = None;\n\n{\n    let y: &mut u32 = x.get_or_insert_with(|| 5);\n    assert_eq!(y, &5);\n\n    *y = 7;\n}\n\nassert_eq!(x, Some(7));
    \n
    1.0.0 (const: unstable) · source

    pub fn take(&mut self) -> Option<T>

    Takes the value out of the option, leaving a None in its place.

    \n
    §Examples
    \n
    let mut x = Some(2);\nlet y = x.take();\nassert_eq!(x, None);\nassert_eq!(y, Some(2));\n\nlet mut x: Option<u32> = None;\nlet y = x.take();\nassert_eq!(x, None);\nassert_eq!(y, None);
    \n
    source

    pub fn take_if<P>(&mut self, predicate: P) -> Option<T>
    where\n P: FnOnce(&mut T) -> bool,

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

    Takes the value out of the option, but only if the predicate evaluates to\ntrue on a mutable reference to the value.

    \n

    In other words, replaces self with None if the predicate returns true.\nThis method operates similar to Option::take but conditional.

    \n
    §Examples
    \n
    #![feature(option_take_if)]\n\nlet mut x = Some(42);\n\nlet prev = x.take_if(|v| if *v == 42 {\n    *v += 1;\n    false\n} else {\n    false\n});\nassert_eq!(x, Some(43));\nassert_eq!(prev, None);\n\nlet prev = x.take_if(|v| *v == 43);\nassert_eq!(x, None);\nassert_eq!(prev, Some(43));
    \n
    1.31.0 (const: unstable) · source

    pub fn replace(&mut self, value: T) -> Option<T>

    Replaces the actual value in the option by the value given in parameter,\nreturning the old value if present,\nleaving a Some in its place without deinitializing either one.

    \n
    §Examples
    \n
    let mut x = Some(2);\nlet old = x.replace(5);\nassert_eq!(x, Some(5));\nassert_eq!(old, Some(2));\n\nlet mut x = None;\nlet old = x.replace(3);\nassert_eq!(x, Some(3));\nassert_eq!(old, None);
    \n
    1.46.0 · source

    pub fn zip<U>(self, other: Option<U>) -> Option<(T, U)>

    Zips self with another Option.

    \n

    If self is Some(s) and other is Some(o), this method returns Some((s, o)).\nOtherwise, None is returned.

    \n
    §Examples
    \n
    let x = Some(1);\nlet y = Some(\"hi\");\nlet z = None::<u8>;\n\nassert_eq!(x.zip(y), Some((1, \"hi\")));\nassert_eq!(x.zip(z), None);
    \n
    source

    pub fn zip_with<U, F, R>(self, other: Option<U>, f: F) -> Option<R>
    where\n F: FnOnce(T, U) -> R,

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

    Zips self and another Option with function f.

    \n

    If self is Some(s) and other is Some(o), this method returns Some(f(s, o)).\nOtherwise, None is returned.

    \n
    §Examples
    \n
    #![feature(option_zip)]\n\n#[derive(Debug, PartialEq)]\nstruct Point {\n    x: f64,\n    y: f64,\n}\n\nimpl Point {\n    fn new(x: f64, y: f64) -> Self {\n        Self { x, y }\n    }\n}\n\nlet x = Some(17.5);\nlet y = Some(42.7);\n\nassert_eq!(x.zip_with(y, Point::new), Some(Point { x: 17.5, y: 42.7 }));\nassert_eq!(x.zip_with(None, Point::new), None);
    \n
    ",0,"numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> PartialOrd for Option<T>
    where\n T: PartialOrd,

    source§

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

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

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

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

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

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

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

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

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

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<A, V> FromIterator<Option<A>> for Option<V>
    where\n V: FromIterator<A>,

    source§

    fn from_iter<I>(iter: I) -> Option<V>
    where\n I: IntoIterator<Item = Option<A>>,

    Takes each element in the Iterator: if it is None,\nno further elements are taken, and the None is\nreturned. Should no None occur, a container of type\nV containing the values of each Option is returned.

    \n
    §Examples
    \n

    Here is an example which increments every integer in a vector.\nWe use the checked variant of add that returns None when the\ncalculation would result in an overflow.

    \n\n
    let items = vec![0_u16, 1, 2];\n\nlet res: Option<Vec<u16>> = items\n    .iter()\n    .map(|x| x.checked_add(1))\n    .collect();\n\nassert_eq!(res, Some(vec![1, 2, 3]));
    \n

    As you can see, this will return the expected, valid items.

    \n

    Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

    \n\n
    let items = vec![2_u16, 1, 0];\n\nlet res: Option<Vec<u16>> = items\n    .iter()\n    .map(|x| x.checked_sub(1))\n    .collect();\n\nassert_eq!(res, None);
    \n

    Since the last element is zero, it would underflow. Thus, the resulting\nvalue is None.

    \n

    Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first None.

    \n\n
    let items = vec![3_u16, 2, 1, 10];\n\nlet mut shared = 0;\n\nlet res: Option<Vec<u16>> = items\n    .iter()\n    .map(|x| { shared += x; x.checked_sub(2) })\n    .collect();\n\nassert_eq!(res, None);\nassert_eq!(shared, 6);
    \n

    Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

    \n
    ","FromIterator>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Hash for Option<T>
    where\n T: Hash,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Clone for Option<T>
    where\n T: Clone,

    source§

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

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, source: &Option<T>)

    Performs copy-assignment from source. Read more
    ","Clone","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> IntoIterator for Option<T>

    source§

    fn into_iter(self) -> IntoIter<T>

    Returns a consuming iterator over the possibly contained value.

    \n
    §Examples
    \n
    let x = Some(\"string\");\nlet v: Vec<&str> = x.into_iter().collect();\nassert_eq!(v, [\"string\"]);\n\nlet x = None;\nlet v: Vec<&str> = x.into_iter().collect();\nassert!(v.is_empty());
    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T>

    Which kind of iterator are we turning this into?
    ","IntoIterator","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> StructuralPartialEq for Option<T>

    ","StructuralPartialEq","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Debug for Option<T>
    where\n T: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Eq for Option<T>
    where\n T: Eq,

    ","Eq","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.37.0 · source§

    impl<T, U> Sum<Option<U>> for Option<T>
    where\n T: Sum<U>,

    source§

    fn sum<I>(iter: I) -> Option<T>
    where\n I: Iterator<Item = Option<U>>,

    Takes each element in the Iterator: if it is a None, no further\nelements are taken, and the None is returned. Should no None\noccur, the sum of all elements is returned.

    \n
    §Examples
    \n

    This sums up the position of the character ‘a’ in a vector of strings,\nif a word did not have the character ‘a’ the operation returns None:

    \n\n
    let words = vec![\"have\", \"a\", \"great\", \"day\"];\nlet total: Option<usize> = words.iter().map(|w| w.find('a')).sum();\nassert_eq!(total, Some(5));\nlet words = vec![\"have\", \"a\", \"good\", \"day\"];\nlet total: Option<usize> = words.iter().map(|w| w.find('a')).sum();\nassert_eq!(total, None);
    \n
    ","Sum>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Ord for Option<T>
    where\n T: Ord,

    source§

    fn cmp(&self, other: &Option<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Copy for Option<T>
    where\n T: Copy,

    ","Copy","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> PartialEq for Option<T>
    where\n T: PartialEq,

    source§

    fn eq(&self, other: &Option<T>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    source§

    impl<T> FromResidual<Yeet<()>> for Option<T>

    source§

    fn from_residual(_: Yeet<()>) -> Option<T>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    source§

    impl<T> FromResidual for Option<T>

    source§

    fn from_residual(residual: Option<Infallible>) -> Option<T>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.37.0 · source§

    impl<T, U> Product<Option<U>> for Option<T>
    where\n T: Product<U>,

    source§

    fn product<I>(iter: I) -> Option<T>
    where\n I: Iterator<Item = Option<U>>,

    Takes each element in the Iterator: if it is a None, no further\nelements are taken, and the None is returned. Should no None\noccur, the product of all elements is returned.

    \n
    §Examples
    \n

    This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns None:

    \n\n
    let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Option<usize> = nums.iter().map(|w| w.parse::<usize>().ok()).product();\nassert_eq!(total, Some(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Option<usize> = nums.iter().map(|w| w.parse::<usize>().ok()).product();\nassert_eq!(total, None);
    \n
    ","Product>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.12.0 · source§

    impl<T> From<T> for Option<T>

    source§

    fn from(val: T) -> Option<T>

    Moves val into a new Some.

    \n
    §Examples
    \n
    let o: Option<u8> = Option::from(67);\n\nassert_eq!(Some(67), o);
    \n
    ","From","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    source§

    impl<T> Try for Option<T>

    §

    type Output = T

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value produced by ? when not short-circuiting.
    §

    type Residual = Option<Infallible>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
    source§

    fn from_output(output: <Option<T> as Try>::Output) -> Option<T>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from its Output type. Read more
    source§

    fn branch(\n self\n) -> ControlFlow<<Option<T> as Try>::Residual, <Option<T> as Try>::Output>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
    ","Try","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    1.0.0 · source§

    impl<T> Default for Option<T>

    source§

    fn default() -> Option<T>

    Returns None.

    \n
    §Examples
    \n
    let opt: Option<u32> = Option::default();\nassert!(opt.is_none());
    \n
    ","Default","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<T> AsPyPointer for Option<T>
    where\n T: AsPyPointer,

    Convert None into a null pointer.

    \n
    §

    fn as_ptr(&self) -> *mut PyObject

    Returns the underlying FFI pointer as a borrowed pointer.
    ","AsPyPointer","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<'py, T> FromPyObject<'py> for Option<T>
    where\n T: FromPyObject<'py>,

    §

    fn extract_bound(obj: &Bound<'py, PyAny>) -> Result<Option<T>, PyErr>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<T> ToPyObject for Option<T>
    where\n T: ToPyObject,

    Option::Some<T> is converted like T.\nOption::None is converted to Python None.

    \n
    §

    fn to_object(&self, py: Python<'_>) -> Py<PyAny>

    Converts self into a Python object.
    ","ToPyObject","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"],["
    §

    impl<T> IntoPy<Py<PyAny>> for Option<T>
    where\n T: IntoPy<Py<PyAny>>,

    §

    fn into_py(self, py: Python<'_>) -> Py<PyAny>

    Performs the conversion.
    ","IntoPy>","numpy::npyffi::objects::PyArray_GetItemFunc","numpy::npyffi::objects::PyArray_SetItemFunc","numpy::npyffi::objects::PyArray_CopySwapNFunc","numpy::npyffi::objects::PyArray_CopySwapFunc","numpy::npyffi::objects::PyArray_NonzeroFunc","numpy::npyffi::objects::PyArray_CompareFunc","numpy::npyffi::objects::PyArray_ArgFunc","numpy::npyffi::objects::PyArray_DotFunc","numpy::npyffi::objects::PyArray_VectorUnaryFunc","numpy::npyffi::objects::PyArray_ScanFunc","numpy::npyffi::objects::PyArray_FromStrFunc","numpy::npyffi::objects::PyArray_FillFunc","numpy::npyffi::objects::PyArray_SortFunc","numpy::npyffi::objects::PyArray_ArgSortFunc","numpy::npyffi::objects::PyArray_PartitionFunc","numpy::npyffi::objects::PyArray_ArgPartitionFunc","numpy::npyffi::objects::PyArray_FillWithScalarFunc","numpy::npyffi::objects::PyArray_ScalarKindFunc","numpy::npyffi::objects::PyArray_FastClipFunc","numpy::npyffi::objects::PyArray_FastPutmaskFunc","numpy::npyffi::objects::PyArray_FastTakeFunc","numpy::npyffi::objects::PyUFuncGenericFunction","numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc","numpy::npyffi::objects::PyUFunc_TypeResolutionFunc","numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc","numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc","numpy::npyffi::objects::NpyIter_IterNextFunc","numpy::npyffi::objects::NpyIter_GetMultiIndexFunc","numpy::npyffi::objects::PyDataMem_EventHookFunc","numpy::npyffi::objects::npy_iter_get_dataptr_t","numpy::npyffi::objects::NpyAuxData_FreeFunc","numpy::npyffi::objects::NpyAuxData_CloneFunc"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/ndarray/dimension/dim/struct.Dim.js b/type.impl/ndarray/dimension/dim/struct.Dim.js index f00a507e9..a710b7c02 100644 --- a/type.impl/ndarray/dimension/dim/struct.Dim.js +++ b/type.impl/ndarray/dimension/dim/struct.Dim.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl Dim<IxDynImpl>

    source

    pub fn zeros(n: usize) -> Dim<IxDynImpl>

    Create a new dimension value with n axes, all zeros

    \n
    ",0,"numpy::IxDyn"],["
    source§

    impl Index<usize> for Dim<[usize; 4]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 4]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix4"],["
    source§

    impl Index<usize> for Dim<[usize; 1]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 1]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix1"],["
    source§

    impl Index<usize> for Dim<[usize; 5]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 5]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix5"],["
    source§

    impl Index<usize> for Dim<[usize; 2]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 2]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix2"],["
    source§

    impl Index<usize> for Dim<[usize; 6]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 6]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix6"],["
    source§

    impl Index<usize> for Dim<IxDynImpl>

    §

    type Output = <IxDynImpl as Index<usize>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<IxDynImpl> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::IxDyn"],["
    source§

    impl Index<usize> for Dim<[usize; 3]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 3]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix3"],["
    source§

    impl<I> Copy for Dim<I>
    where\n I: Copy + ?Sized,

    ","Copy","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 1]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl Dimension for Dim<[usize; 2]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 1]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 3]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 2]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 2]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix2"],["
    source§

    impl Dimension for Dim<[usize; 6]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 5]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<IxDynImpl>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 6]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 6]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix6"],["
    source§

    impl Dimension for Dim<[usize; 4]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 3]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 5]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 4]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 4]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix4"],["
    source§

    impl Dimension for Dim<IxDynImpl>

    IxDyn is a “dynamic” index, pretty hard to use when indexing,\nand memory wasteful, but it allows an arbitrary and dynamic number of axes.

    \n
    source§

    const NDIM: Option<usize> = None

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = Dim<IxDynImpl>

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<IxDynImpl>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<IxDynImpl>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<IxDynImpl> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<IxDynImpl>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    ","Dimension","numpy::IxDyn"],["
    source§

    impl Dimension for Dim<[usize; 5]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 4]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 6]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 5]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 5]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix5"],["
    source§

    impl Dimension for Dim<[usize; 3]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 2]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 4]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 3]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 3]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix3"],["
    source§

    impl Dimension for Dim<[usize; 1]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = usize

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 0]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 2]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 1]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 1]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 1]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 1]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl<D> DimAdd<D> for Dim<IxDynImpl>
    where\n D: Dimension,

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd","numpy::IxDyn"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl<I> Debug for Dim<I>
    where\n I: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> Default for Dim<I>
    where\n I: Default + ?Sized,

    source§

    fn default() -> Dim<I>

    Returns the “default value” for a type. Read more
    ","Default","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl Sub<usize> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: usize) -> Dim<[usize; 1]>

    Performs the - operation. Read more
    ","Sub","numpy::Ix1"],["
    source§

    impl<I> Sub for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: Dim<I>) -> Dim<I>

    Performs the - operation. Read more
    ","Sub","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl RemoveAxis for Dim<[usize; 2]>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<[usize; 1]>

    ","RemoveAxis","numpy::Ix2"],["
    source§

    impl RemoveAxis for Dim<[usize; 3]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 3]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix3"],["
    source§

    impl RemoveAxis for Dim<[usize; 6]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 6]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix6"],["
    source§

    impl RemoveAxis for Dim<[usize; 5]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 5]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix5"],["
    source§

    impl RemoveAxis for Dim<[usize; 4]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 4]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix4"],["
    source§

    impl RemoveAxis for Dim<IxDynImpl>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<IxDynImpl>

    ","RemoveAxis","numpy::IxDyn"],["
    source§

    impl RemoveAxis for Dim<[usize; 1]>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<[usize; 0]>

    ","RemoveAxis","numpy::Ix1"],["
    source§

    impl<I> Eq for Dim<I>
    where\n I: Eq + ?Sized,

    ","Eq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> Clone for Dim<I>
    where\n I: Clone + ?Sized,

    source§

    fn clone(&self) -> Dim<I>

    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
    ","Clone","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> Hash for Dim<I>
    where\n I: Hash + ?Sized,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    ","Hash","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl Zero for Dim<[usize; 4]>

    source§

    fn zero() -> Dim<[usize; 4]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix4"],["
    source§

    impl Zero for Dim<[usize; 1]>

    source§

    fn zero() -> Dim<[usize; 1]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix1"],["
    source§

    impl Zero for Dim<[usize; 2]>

    source§

    fn zero() -> Dim<[usize; 2]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix2"],["
    source§

    impl Zero for Dim<[usize; 3]>

    source§

    fn zero() -> Dim<[usize; 3]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix3"],["
    source§

    impl Zero for Dim<[usize; 5]>

    source§

    fn zero() -> Dim<[usize; 5]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix5"],["
    source§

    impl Zero for Dim<[usize; 6]>

    source§

    fn zero() -> Dim<[usize; 6]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix6"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 2]>

    ","NdIndex>","numpy::Ix2"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 6]>

    ","NdIndex>","numpy::Ix6"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 4]>

    ","NdIndex>","numpy::Ix4"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 1]>

    ","NdIndex>","numpy::Ix1"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 3]>

    ","NdIndex>","numpy::Ix3"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 5]>

    ","NdIndex>","numpy::Ix5"],["
    source§

    impl IndexMut<usize> for Dim<IxDynImpl>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<IxDynImpl> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::IxDyn"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 1]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 1]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix1"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 3]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 3]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix3"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 6]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 6]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix6"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 2]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 2]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix2"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 4]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 4]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix4"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 5]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 5]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix5"],["
    source§

    impl<'a, I> SubAssign<&'a Dim<I>> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn sub_assign(&mut self, rhs: &Dim<I>)

    Performs the -= operation. Read more
    ","SubAssign<&'a Dim>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl SubAssign<usize> for Dim<[usize; 1]>

    source§

    fn sub_assign(&mut self, rhs: usize)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Ix1"],["
    source§

    impl<I> SubAssign for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn sub_assign(&mut self, rhs: Dim<I>)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> AddAssign for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn add_assign(&mut self, rhs: Dim<I>)

    Performs the += operation. Read more
    ","AddAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<'a, I> AddAssign<&'a Dim<I>> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn add_assign(&mut self, rhs: &Dim<I>)

    Performs the += operation. Read more
    ","AddAssign<&'a Dim>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl AddAssign<usize> for Dim<[usize; 1]>

    source§

    fn add_assign(&mut self, rhs: usize)

    Performs the += operation. Read more
    ","AddAssign","numpy::Ix1"],["
    source§

    impl<I> Mul<usize> for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: usize) -> Dim<I>

    Performs the * operation. Read more
    ","Mul","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> Mul for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: Dim<I>) -> Dim<I>

    Performs the * operation. Read more
    ","Mul","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl Add<usize> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: usize) -> Dim<[usize; 1]>

    Performs the + operation. Read more
    ","Add","numpy::Ix1"],["
    source§

    impl<I> Add for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: Dim<I>) -> Dim<I>

    Performs the + operation. Read more
    ","Add","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> PartialEq<I> for Dim<I>
    where\n I: PartialEq + ?Sized,

    source§

    fn eq(&self, rhs: &I) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> PartialEq for Dim<I>
    where\n I: PartialEq + ?Sized,

    source§

    fn eq(&self, other: &Dim<I>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> StructuralPartialEq for Dim<I>
    where\n I: ?Sized,

    ","StructuralPartialEq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> MulAssign<usize> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn mul_assign(&mut self, rhs: usize)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> MulAssign for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn mul_assign(&mut self, rhs: Dim<I>)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<'a, I> MulAssign<&'a Dim<I>> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn mul_assign(&mut self, rhs: &Dim<I>)

    Performs the *= operation. Read more
    ","MulAssign<&'a Dim>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> StructuralEq for Dim<I>
    where\n I: ?Sized,

    ","StructuralEq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"]] +"numpy":[["
    source§

    impl Dim<IxDynImpl>

    source

    pub fn zeros(n: usize) -> Dim<IxDynImpl>

    Create a new dimension value with n axes, all zeros

    \n
    ",0,"numpy::IxDyn"],["
    source§

    impl<I> Hash for Dim<I>
    where\n I: Hash + ?Sized,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    ","Hash","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl Index<usize> for Dim<[usize; 6]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 6]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix6"],["
    source§

    impl Index<usize> for Dim<[usize; 4]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 4]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix4"],["
    source§

    impl Index<usize> for Dim<[usize; 5]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 5]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix5"],["
    source§

    impl Index<usize> for Dim<IxDynImpl>

    §

    type Output = <IxDynImpl as Index<usize>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<IxDynImpl> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::IxDyn"],["
    source§

    impl Index<usize> for Dim<[usize; 1]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 1]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix1"],["
    source§

    impl Index<usize> for Dim<[usize; 3]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 3]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix3"],["
    source§

    impl Index<usize> for Dim<[usize; 2]>

    §

    type Output = usize

    The returned type after indexing.
    source§

    fn index(&self, index: usize) -> &<Dim<[usize; 2]> as Index<usize>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","numpy::Ix2"],["
    source§

    impl<I> MulAssign for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn mul_assign(&mut self, rhs: Dim<I>)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<'a, I> MulAssign<&'a Dim<I>> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn mul_assign(&mut self, rhs: &Dim<I>)

    Performs the *= operation. Read more
    ","MulAssign<&'a Dim>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> MulAssign<usize> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn mul_assign(&mut self, rhs: usize)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<'a, I> SubAssign<&'a Dim<I>> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn sub_assign(&mut self, rhs: &Dim<I>)

    Performs the -= operation. Read more
    ","SubAssign<&'a Dim>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl SubAssign<usize> for Dim<[usize; 1]>

    source§

    fn sub_assign(&mut self, rhs: usize)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Ix1"],["
    source§

    impl<I> SubAssign for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn sub_assign(&mut self, rhs: Dim<I>)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 1]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<IxDynImpl>

    §

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl Sub<usize> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: usize) -> Dim<[usize; 1]>

    Performs the - operation. Read more
    ","Sub","numpy::Ix1"],["
    source§

    impl<I> Sub for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: Dim<I>) -> Dim<I>

    Performs the - operation. Read more
    ","Sub","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl Dimension for Dim<[usize; 6]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 5]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<IxDynImpl>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 6]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 6]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix6"],["
    source§

    impl Dimension for Dim<[usize; 4]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 3]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 5]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 4]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 4]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix4"],["
    source§

    impl Dimension for Dim<[usize; 3]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 2]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 4]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 3]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 3]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix3"],["
    source§

    impl Dimension for Dim<[usize; 5]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 4]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 6]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 5]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 5]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix5"],["
    source§

    impl Dimension for Dim<[usize; 1]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = usize

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 0]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 2]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 1]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 1]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix1"],["
    source§

    impl Dimension for Dim<[usize; 2]>

    source§

    const NDIM: Option<usize> = _

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = (usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<[usize; 1]>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<[usize; 3]>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<[usize; 2]> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<[usize; 2]>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    ","Dimension","numpy::Ix2"],["
    source§

    impl Dimension for Dim<IxDynImpl>

    IxDyn is a “dynamic” index, pretty hard to use when indexing,\nand memory wasteful, but it allows an arbitrary and dynamic number of axes.

    \n
    source§

    const NDIM: Option<usize> = None

    For fixed-size dimension representations (e.g. Ix2), this should be\nSome(ndim), and for variable-size dimension representations (e.g.\nIxDyn), this should be None.
    §

    type Pattern = Dim<IxDynImpl>

    Pattern matching friendly form of the dimension value. Read more
    §

    type Smaller = Dim<IxDynImpl>

    Next smaller dimension (if applicable)
    §

    type Larger = Dim<IxDynImpl>

    Next larger dimension
    source§

    fn ndim(&self) -> usize

    Returns the number of dimensions (number of axes).
    source§

    fn into_pattern(self) -> <Dim<IxDynImpl> as Dimension>::Pattern

    Convert the dimension into a pattern matching friendly value.
    source§

    fn zeros(ndim: usize) -> Dim<IxDynImpl>

    Creates a dimension of all zeros with the specified ndim. Read more
    source§

    fn into_dyn(self) -> Dim<IxDynImpl>

    Convert the dimensional into a dynamic dimensional (IxDyn).
    source§

    fn size(&self) -> usize

    Compute the size of the dimension (number of elements)
    source§

    fn size_checked(&self) -> Option<usize>

    Compute the size while checking for overflow.
    source§

    fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>

    Borrow as a read-only array view.
    source§

    fn as_array_view_mut(\n &mut self\n) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>

    Borrow as a read-write array view.
    ","Dimension","numpy::IxDyn"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 6]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 1]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 3]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 5]>

    §

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 4]>

    §

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 6]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl<D> DimAdd<D> for Dim<IxDynImpl>
    where\n D: Dimension,

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd","numpy::IxDyn"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 3]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 2]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 4]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 2]>

    §

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 1]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 5]>

    §

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl<I> Mul for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: Dim<I>) -> Dim<I>

    Performs the * operation. Read more
    ","Mul","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> Mul<usize> for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: usize) -> Dim<I>

    Performs the * operation. Read more
    ","Mul","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl RemoveAxis for Dim<[usize; 3]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 3]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix3"],["
    source§

    impl RemoveAxis for Dim<[usize; 1]>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<[usize; 0]>

    ","RemoveAxis","numpy::Ix1"],["
    source§

    impl RemoveAxis for Dim<[usize; 6]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 6]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix6"],["
    source§

    impl RemoveAxis for Dim<[usize; 5]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 5]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix5"],["
    source§

    impl RemoveAxis for Dim<[usize; 2]>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<[usize; 1]>

    ","RemoveAxis","numpy::Ix2"],["
    source§

    impl RemoveAxis for Dim<IxDynImpl>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<IxDynImpl>

    ","RemoveAxis","numpy::IxDyn"],["
    source§

    impl RemoveAxis for Dim<[usize; 4]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 4]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix4"],["
    source§

    impl<I> Default for Dim<I>
    where\n I: Default + ?Sized,

    source§

    fn default() -> Dim<I>

    Returns the “default value” for a type. Read more
    ","Default","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl Zero for Dim<[usize; 4]>

    source§

    fn zero() -> Dim<[usize; 4]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix4"],["
    source§

    impl Zero for Dim<[usize; 2]>

    source§

    fn zero() -> Dim<[usize; 2]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix2"],["
    source§

    impl Zero for Dim<[usize; 6]>

    source§

    fn zero() -> Dim<[usize; 6]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix6"],["
    source§

    impl Zero for Dim<[usize; 3]>

    source§

    fn zero() -> Dim<[usize; 3]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix3"],["
    source§

    impl Zero for Dim<[usize; 1]>

    source§

    fn zero() -> Dim<[usize; 1]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix1"],["
    source§

    impl Zero for Dim<[usize; 5]>

    source§

    fn zero() -> Dim<[usize; 5]>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Ix5"],["
    source§

    impl<I> Eq for Dim<I>
    where\n I: Eq + ?Sized,

    ","Eq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 2]>

    ","NdIndex>","numpy::Ix2"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 5]>

    ","NdIndex>","numpy::Ix5"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 4]>

    ","NdIndex>","numpy::Ix4"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 6]>

    ","NdIndex>","numpy::Ix6"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 3]>

    ","NdIndex>","numpy::Ix3"],["
    source§

    impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 1]>

    ","NdIndex>","numpy::Ix1"],["
    source§

    impl<I> StructuralPartialEq for Dim<I>
    where\n I: ?Sized,

    ","StructuralPartialEq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> Debug for Dim<I>
    where\n I: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<'a, I> AddAssign<&'a Dim<I>> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn add_assign(&mut self, rhs: &Dim<I>)

    Performs the += operation. Read more
    ","AddAssign<&'a Dim>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> AddAssign for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    fn add_assign(&mut self, rhs: Dim<I>)

    Performs the += operation. Read more
    ","AddAssign","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl AddAssign<usize> for Dim<[usize; 1]>

    source§

    fn add_assign(&mut self, rhs: usize)

    Performs the += operation. Read more
    ","AddAssign","numpy::Ix1"],["
    source§

    impl<I> Copy for Dim<I>
    where\n I: Copy + ?Sized,

    ","Copy","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 3]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 3]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix3"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 1]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 1]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix1"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 5]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 5]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix5"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 6]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 6]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix6"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 2]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 2]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix2"],["
    source§

    impl IndexMut<usize> for Dim<[usize; 4]>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<[usize; 4]> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::Ix4"],["
    source§

    impl IndexMut<usize> for Dim<IxDynImpl>

    source§

    fn index_mut(\n &mut self,\n index: usize\n) -> &mut <Dim<IxDynImpl> as Index<usize>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","numpy::IxDyn"],["
    source§

    impl<I> PartialEq for Dim<I>
    where\n I: PartialEq + ?Sized,

    source§

    fn eq(&self, other: &Dim<I>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> PartialEq<I> for Dim<I>
    where\n I: PartialEq + ?Sized,

    source§

    fn eq(&self, rhs: &I) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl Add<usize> for Dim<[usize; 1]>

    §

    type Output = Dim<[usize; 1]>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: usize) -> Dim<[usize; 1]>

    Performs the + operation. Read more
    ","Add","numpy::Ix1"],["
    source§

    impl<I> Add for Dim<I>
    where\n Dim<I>: Dimension,

    §

    type Output = Dim<I>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: Dim<I>) -> Dim<I>

    Performs the + operation. Read more
    ","Add","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"],["
    source§

    impl<I> Clone for Dim<I>
    where\n I: Clone + ?Sized,

    source§

    fn clone(&self) -> Dim<I>

    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
    ","Clone","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6","numpy::IxDyn"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/num_complex/struct.Complex.js b/type.impl/num_complex/struct.Complex.js index e14110c1a..bfdf9fd03 100644 --- a/type.impl/num_complex/struct.Complex.js +++ b/type.impl/num_complex/struct.Complex.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl<T> Complex<T>

    source

    pub const fn new(re: T, im: T) -> Complex<T>

    Create a new Complex

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Clone + Num,

    source

    pub fn i() -> Complex<T>

    Returns imaginary unit

    \n
    source

    pub fn norm_sqr(&self) -> T

    Returns the square of the norm (since T doesn’t necessarily\nhave a sqrt function), i.e. re^2 + im^2.

    \n
    source

    pub fn scale(&self, t: T) -> Complex<T>

    Multiplies self by the scalar t.

    \n
    source

    pub fn unscale(&self, t: T) -> Complex<T>

    Divides self by the scalar t.

    \n
    source

    pub fn powu(&self, exp: u32) -> Complex<T>

    Raises self to an unsigned integer power.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    source

    pub fn conj(&self) -> Complex<T>

    Returns the complex conjugate. i.e. re - i im

    \n
    source

    pub fn inv(&self) -> Complex<T>

    Returns 1/self

    \n
    source

    pub fn powi(&self, exp: i32) -> Complex<T>

    Raises self to a signed integer power.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Clone + Signed,

    source

    pub fn l1_norm(&self) -> T

    Returns the L1 norm |re| + |im| – the Manhattan distance from the origin.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Float,

    source

    pub fn cis(phase: T) -> Complex<T>

    Create a new Complex with a given phase: exp(i * phase).\nSee cis (mathematics).

    \n
    source

    pub fn norm(self) -> T

    Calculate |self|

    \n
    source

    pub fn arg(self) -> T

    Calculate the principal Arg of self.

    \n
    source

    pub fn to_polar(self) -> (T, T)

    Convert to polar form (r, theta), such that\nself = r * exp(i * theta)

    \n
    source

    pub fn from_polar(r: T, theta: T) -> Complex<T>

    Convert a polar representation into a complex number.

    \n
    source

    pub fn exp(self) -> Complex<T>

    Computes e^(self), where e is the base of the natural logarithm.

    \n
    source

    pub fn ln(self) -> Complex<T>

    Computes the principal value of natural logarithm of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0], continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ arg(ln(z)) ≤ π.

    \n
    source

    pub fn sqrt(self) -> Complex<T>

    Computes the principal value of the square root of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0), continuous from above.
    • \n
    \n

    The branch satisfies -π/2 ≤ arg(sqrt(z)) ≤ π/2.

    \n
    source

    pub fn cbrt(self) -> Complex<T>

    Computes the principal value of the cube root of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0), continuous from above.
    • \n
    \n

    The branch satisfies -π/3 ≤ arg(cbrt(z)) ≤ π/3.

    \n

    Note that this does not match the usual result for the cube root of\nnegative real numbers. For example, the real cube root of -8 is -2,\nbut the principal complex cube root of -8 is 1 + i√3.

    \n
    source

    pub fn powf(self, exp: T) -> Complex<T>

    Raises self to a floating point power.

    \n
    source

    pub fn log(self, base: T) -> Complex<T>

    Returns the logarithm of self with respect to an arbitrary base.

    \n
    source

    pub fn powc(self, exp: Complex<T>) -> Complex<T>

    Raises self to a complex power.

    \n
    source

    pub fn expf(self, base: T) -> Complex<T>

    Raises a floating point number to the complex power self.

    \n
    source

    pub fn sin(self) -> Complex<T>

    Computes the sine of self.

    \n
    source

    pub fn cos(self) -> Complex<T>

    Computes the cosine of self.

    \n
    source

    pub fn tan(self) -> Complex<T>

    Computes the tangent of self.

    \n
    source

    pub fn asin(self) -> Complex<T>

    Computes the principal value of the inverse sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(asin(z)) ≤ π/2.

    \n
    source

    pub fn acos(self) -> Complex<T>

    Computes the principal value of the inverse cosine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies 0 ≤ Re(acos(z)) ≤ π.

    \n
    source

    pub fn atan(self) -> Complex<T>

    Computes the principal value of the inverse tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i], continuous from the left.
    • \n
    • [i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(atan(z)) ≤ π/2.

    \n
    source

    pub fn sinh(self) -> Complex<T>

    Computes the hyperbolic sine of self.

    \n
    source

    pub fn cosh(self) -> Complex<T>

    Computes the hyperbolic cosine of self.

    \n
    source

    pub fn tanh(self) -> Complex<T>

    Computes the hyperbolic tangent of self.

    \n
    source

    pub fn asinh(self) -> Complex<T>

    Computes the principal value of inverse hyperbolic sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i), continuous from the left.
    • \n
    • (i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(asinh(z)) ≤ π/2.

    \n
    source

    pub fn acosh(self) -> Complex<T>

    Computes the principal value of inverse hyperbolic cosine of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 1), continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ Im(acosh(z)) ≤ π and 0 ≤ Re(acosh(z)) < ∞.

    \n
    source

    pub fn atanh(self) -> Complex<T>

    Computes the principal value of inverse hyperbolic tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1], continuous from above.
    • \n
    • [1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(atanh(z)) ≤ π/2.

    \n
    source

    pub fn finv(self) -> Complex<T>

    Returns 1/self using floating-point operations.

    \n

    This may be more accurate than the generic self.inv() in cases\nwhere self.norm_sqr() would overflow to ∞ or underflow to 0.

    \n
    Examples
    \n
    use num_complex::Complex64;\nlet c = Complex64::new(1e300, 1e300);\n\n// The generic `inv()` will overflow.\nassert!(!c.inv().is_normal());\n\n// But we can do better for `Float` types.\nlet inv = c.finv();\nassert!(inv.is_normal());\nprintln!(\"{:e}\", inv);\n\nlet expected = Complex64::new(5e-301, -5e-301);\nassert!((inv - expected).norm() < 1e-315);
    \n
    source

    pub fn fdiv(self, other: Complex<T>) -> Complex<T>

    Returns self/other using floating-point operations.

    \n

    This may be more accurate than the generic Div implementation in cases\nwhere other.norm_sqr() would overflow to ∞ or underflow to 0.

    \n
    Examples
    \n
    use num_complex::Complex64;\nlet a = Complex64::new(2.0, 3.0);\nlet b = Complex64::new(1e300, 1e300);\n\n// Generic division will overflow.\nassert!(!(a / b).is_normal());\n\n// But we can do better for `Float` types.\nlet quotient = a.fdiv(b);\nassert!(quotient.is_normal());\nprintln!(\"{:e}\", quotient);\n\nlet expected = Complex64::new(2.5e-300, 5e-301);\nassert!((quotient - expected).norm() < 1e-315);
    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Float + FloatConst,

    source

    pub fn exp2(self) -> Complex<T>

    Computes 2^(self).

    \n
    source

    pub fn log2(self) -> Complex<T>

    Computes the principal value of log base 2 of self.

    \n
    source

    pub fn log10(self) -> Complex<T>

    Computes the principal value of log base 10 of self.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: FloatCore,

    source

    pub fn is_nan(self) -> bool

    Checks if the given complex number is NaN

    \n
    source

    pub fn is_infinite(self) -> bool

    Checks if the given complex number is infinite

    \n
    source

    pub fn is_finite(self) -> bool

    Checks if the given complex number is finite

    \n
    source

    pub fn is_normal(self) -> bool

    Checks if the given complex number is normal

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, S, D> Div<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the / operator.
    source§

    fn div(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Div<&'a ArrayBase<S, D>>>::Output

    Performs the / operation. Read more
    ","Div<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl<S, D> Div<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the / operator.
    source§

    fn div(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the / operation. Read more
    ","Div>","numpy::Complex64"],["
    source§

    impl<'a, S, D> Div<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the / operator.
    source§

    fn div(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Div<&'a ArrayBase<S, D>>>::Output

    Performs the / operation. Read more
    ","Div<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<S, D> Div<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the / operator.
    source§

    fn div(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the / operation. Read more
    ","Div>","numpy::Complex32"],["
    source§

    impl<S, D> Sub<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the - operation. Read more
    ","Sub>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the - operator.
    source§

    fn sub(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Sub<&'a ArrayBase<S, D>>>::Output

    Performs the - operation. Read more
    ","Sub<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<S, D> Sub<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the - operation. Read more
    ","Sub>","numpy::Complex64"],["
    source§

    impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the - operator.
    source§

    fn sub(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Sub<&'a ArrayBase<S, D>>>::Output

    Performs the - operation. Read more
    ","Sub<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl ScalarOperand for Complex<f64>

    ","ScalarOperand","numpy::Complex64"],["
    source§

    impl ScalarOperand for Complex<f32>

    ","ScalarOperand","numpy::Complex32"],["
    source§

    impl<'a, S, D> Mul<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the * operator.
    source§

    fn mul(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Mul<&'a ArrayBase<S, D>>>::Output

    Performs the * operation. Read more
    ","Mul<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Mul<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the * operator.
    source§

    fn mul(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Mul<&'a ArrayBase<S, D>>>::Output

    Performs the * operation. Read more
    ","Mul<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<S, D> Mul<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the * operation. Read more
    ","Mul>","numpy::Complex32"],["
    source§

    impl<S, D> Mul<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the * operation. Read more
    ","Mul>","numpy::Complex64"],["
    source§

    impl<S, D> Add<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the + operation. Read more
    ","Add>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Add<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the + operator.
    source§

    fn add(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Add<&'a ArrayBase<S, D>>>::Output

    Performs the + operation. Read more
    ","Add<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl<S, D> Add<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the + operation. Read more
    ","Add>","numpy::Complex64"],["
    source§

    impl<'a, S, D> Add<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the + operator.
    source§

    fn add(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Add<&'a ArrayBase<S, D>>>::Output

    Performs the + operation. Read more
    ","Add<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<'a, T> AddAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: &T)

    Performs the += operation. Read more
    ","AddAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> AddAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: Complex<T>)

    Performs the += operation. Read more
    ","AddAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> AddAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: T)

    Performs the += operation. Read more
    ","AddAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> AddAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: &Complex<T>)

    Performs the += operation. Read more
    ","AddAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Binary for Complex<T>
    where\n T: Binary + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","Binary","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> NumCast for Complex<T>
    where\n T: NumCast + Num,

    source§

    fn from<U>(n: U) -> Option<Complex<T>>
    where\n U: ToPrimitive,

    Creates a number from another value that can be converted into\na primitive via the ToPrimitive trait. If the source value cannot be\nrepresented by the target type, then None is returned. Read more
    ","NumCast","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> SubAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: Complex<T>)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> SubAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: &T)

    Performs the -= operation. Read more
    ","SubAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> SubAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: &Complex<T>)

    Performs the -= operation. Read more
    ","SubAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> SubAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: T)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Product<&'a Complex<T>> for Complex<T>
    where\n T: 'a + Num + Clone,

    source§

    fn product<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = &'a Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\nmultiplying the items.
    ","Product<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Product for Complex<T>
    where\n T: Num + Clone,

    source§

    fn product<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\nmultiplying the items.
    ","Product","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Mul<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: &T) -> <Complex<T> as Mul<&'a T>>::Output

    Performs the * operation. Read more
    ","Mul<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Mul<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: &Complex<T>) -> <Complex<T> as Mul<&'a Complex<T>>>::Output

    Performs the * operation. Read more
    ","Mul<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Mul<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: T) -> <Complex<T> as Mul<T>>::Output

    Performs the * operation. Read more
    ","Mul","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Mul for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: Complex<T>) -> <Complex<T> as Mul>::Output

    Performs the * operation. Read more
    ","Mul","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> One for Complex<T>
    where\n T: Clone + Num,

    source§

    fn one() -> Complex<T>

    Returns the multiplicative identity element of Self, 1. Read more
    source§

    fn is_one(&self) -> bool

    Returns true if self is equal to the multiplicative identity. Read more
    source§

    fn set_one(&mut self)

    Sets self to the multiplicative identity element of Self, 1.
    ","One","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> RemAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, other: T)

    Performs the %= operation. Read more
    ","RemAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> RemAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, modulus: Complex<T>)

    Performs the %= operation. Read more
    ","RemAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> RemAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, other: &Complex<T>)

    Performs the %= operation. Read more
    ","RemAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> RemAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, other: &T)

    Performs the %= operation. Read more
    ","RemAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> ToPrimitive for Complex<T>
    where\n T: ToPrimitive + Num,

    source§

    fn to_usize(&self) -> Option<usize>

    Converts the value of self to a usize. If the value cannot be\nrepresented by a usize, then None is returned.
    source§

    fn to_isize(&self) -> Option<isize>

    Converts the value of self to an isize. If the value cannot be\nrepresented by an isize, then None is returned.
    source§

    fn to_u8(&self) -> Option<u8>

    Converts the value of self to a u8. If the value cannot be\nrepresented by a u8, then None is returned.
    source§

    fn to_u16(&self) -> Option<u16>

    Converts the value of self to a u16. If the value cannot be\nrepresented by a u16, then None is returned.
    source§

    fn to_u32(&self) -> Option<u32>

    Converts the value of self to a u32. If the value cannot be\nrepresented by a u32, then None is returned.
    source§

    fn to_u64(&self) -> Option<u64>

    Converts the value of self to a u64. If the value cannot be\nrepresented by a u64, then None is returned.
    source§

    fn to_i8(&self) -> Option<i8>

    Converts the value of self to an i8. If the value cannot be\nrepresented by an i8, then None is returned.
    source§

    fn to_i16(&self) -> Option<i16>

    Converts the value of self to an i16. If the value cannot be\nrepresented by an i16, then None is returned.
    source§

    fn to_i32(&self) -> Option<i32>

    Converts the value of self to an i32. If the value cannot be\nrepresented by an i32, then None is returned.
    source§

    fn to_i64(&self) -> Option<i64>

    Converts the value of self to an i64. If the value cannot be\nrepresented by an i64, then None is returned.
    source§

    fn to_u128(&self) -> Option<u128>

    Converts the value of self to a u128. If the value cannot be\nrepresented by a u128 (u64 under the default implementation), then\nNone is returned. Read more
    source§

    fn to_i128(&self) -> Option<i128>

    Converts the value of self to an i128. If the value cannot be\nrepresented by an i128 (i64 under the default implementation), then\nNone is returned. Read more
    source§

    fn to_f32(&self) -> Option<f32>

    Converts the value of self to an f32. Overflows may map to positive\nor negative inifinity, otherwise None is returned if the value cannot\nbe represented by an f32.
    source§

    fn to_f64(&self) -> Option<f64>

    Converts the value of self to an f64. Overflows may map to positive\nor negative inifinity, otherwise None is returned if the value cannot\nbe represented by an f64. Read more
    ","ToPrimitive","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> UpperHex for Complex<T>
    where\n T: UpperHex + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","UpperHex","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> LowerHex for Complex<T>
    where\n T: LowerHex + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","LowerHex","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Hash for Complex<T>
    where\n T: Hash,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: Complex<T>)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: T)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> MulAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: &Complex<T>)

    Performs the *= operation. Read more
    ","MulAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> MulAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: &T)

    Performs the *= operation. Read more
    ","MulAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> LowerExp for Complex<T>
    where\n T: LowerExp + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","LowerExp","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAdd for Complex<T>
    where\n T: Clone + Num + MulAdd<Output = T>,

    §

    type Output = Complex<T>

    The resulting type after applying the fused multiply-add.
    source§

    fn mul_add(self, other: Complex<T>, add: Complex<T>) -> Complex<T>

    Performs the fused multiply-add operation (self * a) + b
    ","MulAdd","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Clone for Complex<T>
    where\n T: Clone,

    source§

    fn clone(&self) -> Complex<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
    ","Clone","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Display for Complex<T>
    where\n T: Display + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter. Read more
    ","Display","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Pow<f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, exp: f64) -> <Complex<T> as Pow<f64>>::Output

    Returns self to the power rhs. Read more
    ","Pow","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b Complex<T>> for Complex<T>
    where\n T: Float,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, _: &'b Complex<T>) -> <Complex<T> as Pow<&'b Complex<T>>>::Output

    Returns self to the power rhs. Read more
    ","Pow<&'b Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, _: &f64) -> <Complex<T> as Pow<&'b f64>>::Output

    Returns self to the power rhs. Read more
    ","Pow<&'b f64>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b f32> for Complex<T>
    where\n T: Float,\n f32: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, _: &f32) -> <Complex<T> as Pow<&'b f32>>::Output

    Returns self to the power rhs. Read more
    ","Pow<&'b f32>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Pow<f32> for Complex<T>
    where\n T: Float,\n f32: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, exp: f32) -> <Complex<T> as Pow<f32>>::Output

    Returns self to the power rhs. Read more
    ","Pow","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Pow<Complex<T>> for Complex<T>
    where\n T: Float,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, exp: Complex<T>) -> <Complex<T> as Pow<Complex<T>>>::Output

    Returns self to the power rhs. Read more
    ","Pow>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Eq for Complex<T>
    where\n T: Eq,

    ","Eq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Sum for Complex<T>
    where\n T: Num + Clone,

    source§

    fn sum<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\n“summing up” the items.
    ","Sum","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Sum<&'a Complex<T>> for Complex<T>
    where\n T: 'a + Num + Clone,

    source§

    fn sum<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = &'a Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\n“summing up” the items.
    ","Sum<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> StructuralEq for Complex<T>

    ","StructuralEq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Sub<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: &T) -> <Complex<T> as Sub<&'a T>>::Output

    Performs the - operation. Read more
    ","Sub<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Sub<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: T) -> <Complex<T> as Sub<T>>::Output

    Performs the - operation. Read more
    ","Sub","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Sub for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: Complex<T>) -> <Complex<T> as Sub>::Output

    Performs the - operation. Read more
    ","Sub","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Sub<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: &Complex<T>) -> <Complex<T> as Sub<&'a Complex<T>>>::Output

    Performs the - operation. Read more
    ","Sub<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> FromStr for Complex<T>
    where\n T: FromStr + Num + Clone,

    source§

    fn from_str(s: &str) -> Result<Complex<T>, <Complex<T> as FromStr>::Err>

    Parses a +/- bi; ai +/- b; a; or bi where a and b are of type T

    \n
    §

    type Err = ParseComplexError<<T as FromStr>::Err>

    The associated error which can be returned from parsing.
    ","FromStr","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> StructuralPartialEq for Complex<T>

    ","StructuralPartialEq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Zero for Complex<T>
    where\n T: Clone + Num,

    source§

    fn zero() -> Complex<T>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Default for Complex<T>
    where\n T: Default,

    source§

    fn default() -> Complex<T>

    Returns the “default value” for a type. Read more
    ","Default","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Neg for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn neg(self) -> <Complex<T> as Neg>::Output

    Performs the unary - operation. Read more
    ","Neg","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Num for Complex<T>
    where\n T: Num + Clone,

    source§

    fn from_str_radix(\n s: &str,\n radix: u32\n) -> Result<Complex<T>, <Complex<T> as Num>::FromStrRadixErr>

    Parses a +/- bi; ai +/- b; a; or bi where a and b are of type T

    \n

    radix must be <= 18; larger radix would include i and j as digits,\nwhich cannot be supported.

    \n

    The conversion returns an error if 18 <= radix <= 36; it panics if radix > 36.

    \n

    The elements of T are parsed using Num::from_str_radix too, and errors\n(or panics) from that are reflected here as well.

    \n
    §

    type FromStrRadixErr = ParseComplexError<<T as Num>::FromStrRadixErr>

    ","Num","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> UpperExp for Complex<T>
    where\n T: UpperExp + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","UpperExp","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> FromPrimitive for Complex<T>
    where\n T: FromPrimitive + Num,

    source§

    fn from_usize(n: usize) -> Option<Complex<T>>

    Converts a usize to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_isize(n: isize) -> Option<Complex<T>>

    Converts an isize to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u8(n: u8) -> Option<Complex<T>>

    Converts an u8 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u16(n: u16) -> Option<Complex<T>>

    Converts an u16 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u32(n: u32) -> Option<Complex<T>>

    Converts an u32 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u64(n: u64) -> Option<Complex<T>>

    Converts an u64 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i8(n: i8) -> Option<Complex<T>>

    Converts an i8 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i16(n: i16) -> Option<Complex<T>>

    Converts an i16 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i32(n: i32) -> Option<Complex<T>>

    Converts an i32 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i64(n: i64) -> Option<Complex<T>>

    Converts an i64 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u128(n: u128) -> Option<Complex<T>>

    Converts an u128 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned. Read more
    source§

    fn from_i128(n: i128) -> Option<Complex<T>>

    Converts an i128 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned. Read more
    source§

    fn from_f32(n: f32) -> Option<Complex<T>>

    Converts a f32 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_f64(n: f64) -> Option<Complex<T>>

    Converts a f64 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned. Read more
    ","FromPrimitive","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Div<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: &Complex<T>) -> <Complex<T> as Div<&'a Complex<T>>>::Output

    Performs the / operation. Read more
    ","Div<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Div<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: &T) -> <Complex<T> as Div<&'a T>>::Output

    Performs the / operation. Read more
    ","Div<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Div for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: Complex<T>) -> <Complex<T> as Div>::Output

    Performs the / operation. Read more
    ","Div","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Div<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: T) -> <Complex<T> as Div<T>>::Output

    Performs the / operation. Read more
    ","Div","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, 'b, T> MulAddAssign<&'a Complex<T>, &'b Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign + MulAddAssign,

    source§

    fn mul_add_assign(&mut self, other: &Complex<T>, add: &Complex<T>)

    Performs the fused multiply-add assignment operation *self = (*self * a) + b
    ","MulAddAssign<&'a Complex, &'b Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAddAssign for Complex<T>
    where\n T: Clone + NumAssign + MulAddAssign,

    source§

    fn mul_add_assign(&mut self, other: Complex<T>, add: Complex<T>)

    Performs the fused multiply-add assignment operation *self = (*self * a) + b
    ","MulAddAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> ComplexFloat for Complex<T>
    where\n T: Float + FloatConst,

    §

    type Real = T

    The type used to represent the real coefficients of this complex number.
    source§

    fn re(self) -> <Complex<T> as ComplexFloat>::Real

    Returns the real part of the number.
    source§

    fn im(self) -> <Complex<T> as ComplexFloat>::Real

    Returns the imaginary part of the number.
    source§

    fn abs(self) -> <Complex<T> as ComplexFloat>::Real

    Returns the absolute value of the number. See also Complex::norm
    source§

    fn recip(self) -> Complex<T>

    Take the reciprocal (inverse) of a number, 1/x. See also Complex::finv.
    source§

    fn l1_norm(&self) -> <Complex<T> as ComplexFloat>::Real

    Returns the L1 norm |re| + |im| – the Manhattan distance from the origin.
    source§

    fn is_nan(self) -> bool

    Returns true if this value is NaN and false otherwise.
    source§

    fn is_infinite(self) -> bool

    Returns true if this value is positive infinity or negative infinity and\nfalse otherwise.
    source§

    fn is_finite(self) -> bool

    Returns true if this number is neither infinite nor NaN.
    source§

    fn is_normal(self) -> bool

    Returns true if the number is neither zero, infinite,\nsubnormal, or NaN.
    source§

    fn arg(self) -> <Complex<T> as ComplexFloat>::Real

    Computes the argument of the number.
    source§

    fn powc(\n self,\n exp: Complex<<Complex<T> as ComplexFloat>::Real>\n) -> Complex<<Complex<T> as ComplexFloat>::Real>

    Raises self to a complex power.
    source§

    fn exp2(self) -> Complex<T>

    Returns 2^(self).
    source§

    fn log(self, base: <Complex<T> as ComplexFloat>::Real) -> Complex<T>

    Returns the logarithm of the number with respect to an arbitrary base.
    source§

    fn log2(self) -> Complex<T>

    Returns the base 2 logarithm of the number.
    source§

    fn log10(self) -> Complex<T>

    Returns the base 10 logarithm of the number.
    source§

    fn powf(self, f: <Complex<T> as ComplexFloat>::Real) -> Complex<T>

    Raises self to a real power.
    source§

    fn sqrt(self) -> Complex<T>

    Take the square root of a number.
    source§

    fn cbrt(self) -> Complex<T>

    Take the cubic root of a number.
    source§

    fn exp(self) -> Complex<T>

    Returns e^(self), (the exponential function).
    source§

    fn expf(self, base: <Complex<T> as ComplexFloat>::Real) -> Complex<T>

    Returns base^(self).
    source§

    fn ln(self) -> Complex<T>

    Returns the natural logarithm of the number.
    source§

    fn sin(self) -> Complex<T>

    Computes the sine of a number (in radians).
    source§

    fn cos(self) -> Complex<T>

    Computes the cosine of a number (in radians).
    source§

    fn tan(self) -> Complex<T>

    Computes the tangent of a number (in radians).
    source§

    fn asin(self) -> Complex<T>

    Computes the arcsine of a number. Return value is in radians in\nthe range [-pi/2, pi/2] or NaN if the number is outside the range\n[-1, 1].
    source§

    fn acos(self) -> Complex<T>

    Computes the arccosine of a number. Return value is in radians in\nthe range [0, pi] or NaN if the number is outside the range\n[-1, 1].
    source§

    fn atan(self) -> Complex<T>

    Computes the arctangent of a number. Return value is in radians in the\nrange [-pi/2, pi/2];
    source§

    fn sinh(self) -> Complex<T>

    Hyperbolic sine function.
    source§

    fn cosh(self) -> Complex<T>

    Hyperbolic cosine function.
    source§

    fn tanh(self) -> Complex<T>

    Hyperbolic tangent function.
    source§

    fn asinh(self) -> Complex<T>

    Inverse hyperbolic sine function.
    source§

    fn acosh(self) -> Complex<T>

    Inverse hyperbolic cosine function.
    source§

    fn atanh(self) -> Complex<T>

    Inverse hyperbolic tangent function.
    source§

    fn powi(self, n: i32) -> Complex<T>

    Raises self to a signed integer power.
    source§

    fn conj(self) -> Complex<T>

    Computes the complex conjugate of the number. Read more
    ","ComplexFloat","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> From<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    fn from(re: T) -> Complex<T>

    Converts to this type from the input type.
    ","From","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> From<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    fn from(re: &T) -> Complex<T>

    Converts to this type from the input type.
    ","From<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Inv for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn inv(self) -> <Complex<T> as Inv>::Output

    Returns the multiplicative inverse of self. Read more
    ","Inv","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Octal for Complex<T>
    where\n T: Octal + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","Octal","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> PartialEq for Complex<T>
    where\n T: PartialEq,

    source§

    fn eq(&self, other: &Complex<T>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Copy for Complex<T>
    where\n T: Copy,

    ","Copy","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Add<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: T) -> <Complex<T> as Add<T>>::Output

    Performs the + operation. Read more
    ","Add","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Add for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: Complex<T>) -> <Complex<T> as Add>::Output

    Performs the + operation. Read more
    ","Add","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Add<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: &T) -> <Complex<T> as Add<&'a T>>::Output

    Performs the + operation. Read more
    ","Add<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Add<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: &Complex<T>) -> <Complex<T> as Add<&'a Complex<T>>>::Output

    Performs the + operation. Read more
    ","Add<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Debug for Complex<T>
    where\n T: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T, U> AsPrimitive<U> for Complex<T>
    where\n T: AsPrimitive<U>,\n U: 'static + Copy,

    source§

    fn as_(self) -> U

    Convert a value to another, using the as operator.
    ","AsPrimitive","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Rem<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, other: &Complex<T>) -> <Complex<T> as Rem<&'a Complex<T>>>::Output

    Performs the % operation. Read more
    ","Rem<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Rem<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, other: &T) -> <Complex<T> as Rem<&'a T>>::Output

    Performs the % operation. Read more
    ","Rem<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Rem<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, other: T) -> <Complex<T> as Rem<T>>::Output

    Performs the % operation. Read more
    ","Rem","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Rem for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, modulus: Complex<T>) -> <Complex<T> as Rem>::Output

    Performs the % operation. Read more
    ","Rem","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> DivAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: Complex<T>)

    Performs the /= operation. Read more
    ","DivAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> DivAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: &Complex<T>)

    Performs the /= operation. Read more
    ","DivAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> DivAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: T)

    Performs the /= operation. Read more
    ","DivAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> DivAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: &T)

    Performs the /= operation. Read more
    ","DivAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Normed for Complex<T>
    where\n T: SimdRealField,

    §

    type Norm = <T as SimdComplexField>::SimdRealField

    The type of the norm.
    source§

    fn norm(&self) -> <T as SimdComplexField>::SimdRealField

    Computes the norm.
    source§

    fn norm_squared(&self) -> <T as SimdComplexField>::SimdRealField

    Computes the squared norm.
    source§

    fn scale_mut(&mut self, n: <Complex<T> as Normed>::Norm)

    Multiply self by n.
    source§

    fn unscale_mut(&mut self, n: <Complex<T> as Normed>::Norm)

    Divides self by n.
    ","Normed","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> PrimitiveSimdValue for Complex<N>
    where\n N: PrimitiveSimdValue,

    ","PrimitiveSimdValue","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> SimdValue for Complex<N>
    where\n N: SimdValue,

    §

    type Element = Complex<<N as SimdValue>::Element>

    The type of the elements of each lane of this SIMD value.
    §

    type SimdBool = <N as SimdValue>::SimdBool

    Type of the result of comparing two SIMD values like self.
    §

    fn lanes() -> usize

    The number of lanes of this SIMD value.
    §

    fn splat(val: <Complex<N> as SimdValue>::Element) -> Complex<N>

    Initializes an SIMD value with each lanes set to val.
    §

    fn extract(&self, i: usize) -> <Complex<N> as SimdValue>::Element

    Extracts the i-th lane of self. Read more
    §

    unsafe fn extract_unchecked(\n &self,\n i: usize\n) -> <Complex<N> as SimdValue>::Element

    Extracts the i-th lane of self without bound-checking.
    §

    fn replace(&mut self, i: usize, val: <Complex<N> as SimdValue>::Element)

    Replaces the i-th lane of self by val. Read more
    §

    unsafe fn replace_unchecked(\n &mut self,\n i: usize,\n val: <Complex<N> as SimdValue>::Element\n)

    Replaces the i-th lane of self by val without bound-checking.
    §

    fn select(\n self,\n cond: <Complex<N> as SimdValue>::SimdBool,\n other: Complex<N>\n) -> Complex<N>

    Merges self and other depending on the lanes of cond. Read more
    ","SimdValue","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> ComplexField for Complex<N>
    where\n N: RealField + PartialOrd,

    §

    fn exp(self) -> Complex<N>

    Computes e^(self), where e is the base of the natural logarithm.

    \n
    §

    fn ln(self) -> Complex<N>

    Computes the principal value of natural logarithm of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0], continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ arg(ln(z)) ≤ π.

    \n
    §

    fn sqrt(self) -> Complex<N>

    Computes the principal value of the square root of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0), continuous from above.
    • \n
    \n

    The branch satisfies -π/2 ≤ arg(sqrt(z)) ≤ π/2.

    \n
    §

    fn powf(self, exp: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Raises self to a floating point power.

    \n
    §

    fn log(self, base: N) -> Complex<N>

    Returns the logarithm of self with respect to an arbitrary base.

    \n
    §

    fn powc(self, exp: Complex<N>) -> Complex<N>

    Raises self to a complex power.

    \n
    §

    fn sin(self) -> Complex<N>

    Computes the sine of self.

    \n
    §

    fn cos(self) -> Complex<N>

    Computes the cosine of self.

    \n
    §

    fn tan(self) -> Complex<N>

    Computes the tangent of self.

    \n
    §

    fn asin(self) -> Complex<N>

    Computes the principal value of the inverse sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(asin(z)) ≤ π/2.

    \n
    §

    fn acos(self) -> Complex<N>

    Computes the principal value of the inverse cosine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies 0 ≤ Re(acos(z)) ≤ π.

    \n
    §

    fn atan(self) -> Complex<N>

    Computes the principal value of the inverse tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i], continuous from the left.
    • \n
    • [i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(atan(z)) ≤ π/2.

    \n
    §

    fn sinh(self) -> Complex<N>

    Computes the hyperbolic sine of self.

    \n
    §

    fn cosh(self) -> Complex<N>

    Computes the hyperbolic cosine of self.

    \n
    §

    fn tanh(self) -> Complex<N>

    Computes the hyperbolic tangent of self.

    \n
    §

    fn asinh(self) -> Complex<N>

    Computes the principal value of inverse hyperbolic sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i), continuous from the left.
    • \n
    • (i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(asinh(z)) ≤ π/2.

    \n
    §

    fn acosh(self) -> Complex<N>

    Computes the principal value of inverse hyperbolic cosine of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 1), continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ Im(acosh(z)) ≤ π and 0 ≤ Re(acosh(z)) < ∞.

    \n
    §

    fn atanh(self) -> Complex<N>

    Computes the principal value of inverse hyperbolic tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1], continuous from above.
    • \n
    • [1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(atanh(z)) ≤ π/2.

    \n
    §

    type RealField = N

    §

    fn from_real(re: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Builds a pure-real complex number from the given value.
    §

    fn real(self) -> <Complex<N> as ComplexField>::RealField

    The real part of this complex number.
    §

    fn imaginary(self) -> <Complex<N> as ComplexField>::RealField

    The imaginary part of this complex number.
    §

    fn argument(self) -> <Complex<N> as ComplexField>::RealField

    The argument of this complex number.
    §

    fn modulus(self) -> <Complex<N> as ComplexField>::RealField

    The modulus of this complex number.
    §

    fn modulus_squared(self) -> <Complex<N> as ComplexField>::RealField

    The squared modulus of this complex number.
    §

    fn norm1(self) -> <Complex<N> as ComplexField>::RealField

    The sum of the absolute value of this complex number’s real and imaginary part.
    §

    fn recip(self) -> Complex<N>

    §

    fn conjugate(self) -> Complex<N>

    §

    fn scale(self, factor: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Multiplies this complex number by factor.
    §

    fn unscale(self, factor: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Divides this complex number by factor.
    §

    fn floor(self) -> Complex<N>

    §

    fn ceil(self) -> Complex<N>

    §

    fn round(self) -> Complex<N>

    §

    fn trunc(self) -> Complex<N>

    §

    fn fract(self) -> Complex<N>

    §

    fn mul_add(self, a: Complex<N>, b: Complex<N>) -> Complex<N>

    §

    fn abs(self) -> <Complex<N> as ComplexField>::RealField

    The absolute value of this complex number: self / self.signum(). Read more
    §

    fn exp2(self) -> Complex<N>

    §

    fn exp_m1(self) -> Complex<N>

    §

    fn ln_1p(self) -> Complex<N>

    §

    fn log2(self) -> Complex<N>

    §

    fn log10(self) -> Complex<N>

    §

    fn cbrt(self) -> Complex<N>

    §

    fn powi(self, n: i32) -> Complex<N>

    §

    fn is_finite(&self) -> bool

    §

    fn try_sqrt(self) -> Option<Complex<N>>

    §

    fn hypot(self, b: Complex<N>) -> <Complex<N> as ComplexField>::RealField

    Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
    §

    fn sin_cos(self) -> (Complex<N>, Complex<N>)

    §

    fn sinh_cosh(self) -> (Complex<N>, Complex<N>)

    §

    fn to_polar(self) -> (Self::RealField, Self::RealField)

    The polar form of this complex number: (modulus, arg)
    §

    fn to_exp(self) -> (Self::RealField, Self)

    The exponential form of this complex number: (modulus, e^{i arg})
    §

    fn signum(self) -> Self

    The exponential part of this complex number: self / self.modulus()
    §

    fn sinc(self) -> Self

    Cardinal sine
    §

    fn sinhc(self) -> Self

    §

    fn cosc(self) -> Self

    Cardinal cos
    §

    fn coshc(self) -> Self

    ","ComplexField","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> Field for Complex<N>
    where\n N: SimdValue + Clone + NumAssign + ClosedNeg,

    ","Field","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N1, N2> SubsetOf<Complex<N2>> for Complex<N1>
    where\n N2: SupersetOf<N1>,

    §

    fn to_superset(&self) -> Complex<N2>

    The inclusion map: converts self to the equivalent element of its superset.
    §

    fn from_superset_unchecked(element: &Complex<N2>) -> Complex<N1>

    Use with care! Same as self.to_superset but without any property checks. Always succeeds.
    §

    fn is_in_subset(c: &Complex<N2>) -> bool

    Checks if element is actually part of the subset Self (and can be converted to it).
    §

    fn from_superset(element: &T) -> Option<Self>

    The inverse inclusion map: attempts to construct self from the equivalent element of its\nsuperset. Read more
    ","SubsetOf>","numpy::Complex32","numpy::Complex64"]] +"numpy":[["
    source§

    impl<T> Complex<T>

    source

    pub const fn new(re: T, im: T) -> Complex<T>

    Create a new Complex

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Clone + Num,

    source

    pub fn i() -> Complex<T>

    Returns imaginary unit

    \n
    source

    pub fn norm_sqr(&self) -> T

    Returns the square of the norm (since T doesn’t necessarily\nhave a sqrt function), i.e. re^2 + im^2.

    \n
    source

    pub fn scale(&self, t: T) -> Complex<T>

    Multiplies self by the scalar t.

    \n
    source

    pub fn unscale(&self, t: T) -> Complex<T>

    Divides self by the scalar t.

    \n
    source

    pub fn powu(&self, exp: u32) -> Complex<T>

    Raises self to an unsigned integer power.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    source

    pub fn conj(&self) -> Complex<T>

    Returns the complex conjugate. i.e. re - i im

    \n
    source

    pub fn inv(&self) -> Complex<T>

    Returns 1/self

    \n
    source

    pub fn powi(&self, exp: i32) -> Complex<T>

    Raises self to a signed integer power.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Clone + Signed,

    source

    pub fn l1_norm(&self) -> T

    Returns the L1 norm |re| + |im| – the Manhattan distance from the origin.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Float,

    source

    pub fn cis(phase: T) -> Complex<T>

    Create a new Complex with a given phase: exp(i * phase).\nSee cis (mathematics).

    \n
    source

    pub fn norm(self) -> T

    Calculate |self|

    \n
    source

    pub fn arg(self) -> T

    Calculate the principal Arg of self.

    \n
    source

    pub fn to_polar(self) -> (T, T)

    Convert to polar form (r, theta), such that\nself = r * exp(i * theta)

    \n
    source

    pub fn from_polar(r: T, theta: T) -> Complex<T>

    Convert a polar representation into a complex number.

    \n
    source

    pub fn exp(self) -> Complex<T>

    Computes e^(self), where e is the base of the natural logarithm.

    \n
    source

    pub fn ln(self) -> Complex<T>

    Computes the principal value of natural logarithm of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0], continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ arg(ln(z)) ≤ π.

    \n
    source

    pub fn sqrt(self) -> Complex<T>

    Computes the principal value of the square root of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0), continuous from above.
    • \n
    \n

    The branch satisfies -π/2 ≤ arg(sqrt(z)) ≤ π/2.

    \n
    source

    pub fn cbrt(self) -> Complex<T>

    Computes the principal value of the cube root of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0), continuous from above.
    • \n
    \n

    The branch satisfies -π/3 ≤ arg(cbrt(z)) ≤ π/3.

    \n

    Note that this does not match the usual result for the cube root of\nnegative real numbers. For example, the real cube root of -8 is -2,\nbut the principal complex cube root of -8 is 1 + i√3.

    \n
    source

    pub fn powf(self, exp: T) -> Complex<T>

    Raises self to a floating point power.

    \n
    source

    pub fn log(self, base: T) -> Complex<T>

    Returns the logarithm of self with respect to an arbitrary base.

    \n
    source

    pub fn powc(self, exp: Complex<T>) -> Complex<T>

    Raises self to a complex power.

    \n
    source

    pub fn expf(self, base: T) -> Complex<T>

    Raises a floating point number to the complex power self.

    \n
    source

    pub fn sin(self) -> Complex<T>

    Computes the sine of self.

    \n
    source

    pub fn cos(self) -> Complex<T>

    Computes the cosine of self.

    \n
    source

    pub fn tan(self) -> Complex<T>

    Computes the tangent of self.

    \n
    source

    pub fn asin(self) -> Complex<T>

    Computes the principal value of the inverse sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(asin(z)) ≤ π/2.

    \n
    source

    pub fn acos(self) -> Complex<T>

    Computes the principal value of the inverse cosine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies 0 ≤ Re(acos(z)) ≤ π.

    \n
    source

    pub fn atan(self) -> Complex<T>

    Computes the principal value of the inverse tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i], continuous from the left.
    • \n
    • [i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(atan(z)) ≤ π/2.

    \n
    source

    pub fn sinh(self) -> Complex<T>

    Computes the hyperbolic sine of self.

    \n
    source

    pub fn cosh(self) -> Complex<T>

    Computes the hyperbolic cosine of self.

    \n
    source

    pub fn tanh(self) -> Complex<T>

    Computes the hyperbolic tangent of self.

    \n
    source

    pub fn asinh(self) -> Complex<T>

    Computes the principal value of inverse hyperbolic sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i), continuous from the left.
    • \n
    • (i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(asinh(z)) ≤ π/2.

    \n
    source

    pub fn acosh(self) -> Complex<T>

    Computes the principal value of inverse hyperbolic cosine of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 1), continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ Im(acosh(z)) ≤ π and 0 ≤ Re(acosh(z)) < ∞.

    \n
    source

    pub fn atanh(self) -> Complex<T>

    Computes the principal value of inverse hyperbolic tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1], continuous from above.
    • \n
    • [1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(atanh(z)) ≤ π/2.

    \n
    source

    pub fn finv(self) -> Complex<T>

    Returns 1/self using floating-point operations.

    \n

    This may be more accurate than the generic self.inv() in cases\nwhere self.norm_sqr() would overflow to ∞ or underflow to 0.

    \n
    §Examples
    \n
    use num_complex::Complex64;\nlet c = Complex64::new(1e300, 1e300);\n\n// The generic `inv()` will overflow.\nassert!(!c.inv().is_normal());\n\n// But we can do better for `Float` types.\nlet inv = c.finv();\nassert!(inv.is_normal());\nprintln!(\"{:e}\", inv);\n\nlet expected = Complex64::new(5e-301, -5e-301);\nassert!((inv - expected).norm() < 1e-315);
    \n
    source

    pub fn fdiv(self, other: Complex<T>) -> Complex<T>

    Returns self/other using floating-point operations.

    \n

    This may be more accurate than the generic Div implementation in cases\nwhere other.norm_sqr() would overflow to ∞ or underflow to 0.

    \n
    §Examples
    \n
    use num_complex::Complex64;\nlet a = Complex64::new(2.0, 3.0);\nlet b = Complex64::new(1e300, 1e300);\n\n// Generic division will overflow.\nassert!(!(a / b).is_normal());\n\n// But we can do better for `Float` types.\nlet quotient = a.fdiv(b);\nassert!(quotient.is_normal());\nprintln!(\"{:e}\", quotient);\n\nlet expected = Complex64::new(2.5e-300, 5e-301);\nassert!((quotient - expected).norm() < 1e-315);
    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: Float + FloatConst,

    source

    pub fn exp2(self) -> Complex<T>

    Computes 2^(self).

    \n
    source

    pub fn log2(self) -> Complex<T>

    Computes the principal value of log base 2 of self.

    \n
    source

    pub fn log10(self) -> Complex<T>

    Computes the principal value of log base 10 of self.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: FloatCore,

    source

    pub fn is_nan(self) -> bool

    Checks if the given complex number is NaN

    \n
    source

    pub fn is_infinite(self) -> bool

    Checks if the given complex number is infinite

    \n
    source

    pub fn is_finite(self) -> bool

    Checks if the given complex number is finite

    \n
    source

    pub fn is_normal(self) -> bool

    Checks if the given complex number is normal

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<S, D> Div<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the / operator.
    source§

    fn div(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the / operation. Read more
    ","Div>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Div<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the / operator.
    source§

    fn div(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Div<&'a ArrayBase<S, D>>>::Output

    Performs the / operation. Read more
    ","Div<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Div<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the / operator.
    source§

    fn div(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Div<&'a ArrayBase<S, D>>>::Output

    Performs the / operation. Read more
    ","Div<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<S, D> Div<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the / operator.
    source§

    fn div(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the / operation. Read more
    ","Div>","numpy::Complex64"],["
    source§

    impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the - operator.
    source§

    fn sub(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Sub<&'a ArrayBase<S, D>>>::Output

    Performs the - operation. Read more
    ","Sub<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the - operator.
    source§

    fn sub(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Sub<&'a ArrayBase<S, D>>>::Output

    Performs the - operation. Read more
    ","Sub<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<S, D> Sub<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the - operation. Read more
    ","Sub>","numpy::Complex64"],["
    source§

    impl<S, D> Sub<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the - operator.
    source§

    fn sub(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the - operation. Read more
    ","Sub>","numpy::Complex32"],["
    source§

    impl<S, D> Mul<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the * operation. Read more
    ","Mul>","numpy::Complex64"],["
    source§

    impl<S, D> Mul<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the * operator.
    source§

    fn mul(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the * operation. Read more
    ","Mul>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Mul<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the * operator.
    source§

    fn mul(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Mul<&'a ArrayBase<S, D>>>::Output

    Performs the * operation. Read more
    ","Mul<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<'a, S, D> Mul<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the * operator.
    source§

    fn mul(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Mul<&'a ArrayBase<S, D>>>::Output

    Performs the * operation. Read more
    ","Mul<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl ScalarOperand for Complex<f32>

    ","ScalarOperand","numpy::Complex32"],["
    source§

    impl ScalarOperand for Complex<f64>

    ","ScalarOperand","numpy::Complex64"],["
    source§

    impl<S, D> Add<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the + operation. Read more
    ","Add>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Add<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f32>>, D>

    The resulting type after applying the + operator.
    source§

    fn add(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f32> as Add<&'a ArrayBase<S, D>>>::Output

    Performs the + operation. Read more
    ","Add<&'a ArrayBase>","numpy::Complex32"],["
    source§

    impl<'a, S, D> Add<&'a ArrayBase<S, D>> for Complex<f64>
    where\n S: Data<Elem = Complex<f64>>,\n D: Dimension,

    §

    type Output = ArrayBase<OwnedRepr<Complex<f64>>, D>

    The resulting type after applying the + operator.
    source§

    fn add(\n self,\n rhs: &ArrayBase<S, D>\n) -> <Complex<f64> as Add<&'a ArrayBase<S, D>>>::Output

    Performs the + operation. Read more
    ","Add<&'a ArrayBase>","numpy::Complex64"],["
    source§

    impl<S, D> Add<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    §

    type Output = ArrayBase<S, D>

    The resulting type after applying the + operator.
    source§

    fn add(self, rhs: ArrayBase<S, D>) -> ArrayBase<S, D>

    Performs the + operation. Read more
    ","Add>","numpy::Complex64"],["
    source§

    impl<'a, T> From<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    fn from(re: &T) -> Complex<T>

    Converts to this type from the input type.
    ","From<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> From<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    fn from(re: T) -> Complex<T>

    Converts to this type from the input type.
    ","From","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Display for Complex<T>
    where\n T: Display + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter. Read more
    ","Display","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> NumCast for Complex<T>
    where\n T: NumCast + Num,

    source§

    fn from<U>(n: U) -> Option<Complex<T>>
    where\n U: ToPrimitive,

    Creates a number from another value that can be converted into\na primitive via the ToPrimitive trait. If the source value cannot be\nrepresented by the target type, then None is returned. Read more
    ","NumCast","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Clone for Complex<T>
    where\n T: Clone,

    source§

    fn clone(&self) -> Complex<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
    ","Clone","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> AddAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: T)

    Performs the += operation. Read more
    ","AddAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> AddAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: Complex<T>)

    Performs the += operation. Read more
    ","AddAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> AddAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: &Complex<T>)

    Performs the += operation. Read more
    ","AddAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> AddAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn add_assign(&mut self, other: &T)

    Performs the += operation. Read more
    ","AddAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> UpperExp for Complex<T>
    where\n T: UpperExp + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","UpperExp","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Eq for Complex<T>
    where\n T: Eq,

    ","Eq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> DivAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: &Complex<T>)

    Performs the /= operation. Read more
    ","DivAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> DivAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: Complex<T>)

    Performs the /= operation. Read more
    ","DivAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> DivAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: &T)

    Performs the /= operation. Read more
    ","DivAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> DivAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn div_assign(&mut self, other: T)

    Performs the /= operation. Read more
    ","DivAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> One for Complex<T>
    where\n T: Clone + Num,

    source§

    fn one() -> Complex<T>

    Returns the multiplicative identity element of Self, 1. Read more
    source§

    fn is_one(&self) -> bool

    Returns true if self is equal to the multiplicative identity. Read more
    source§

    fn set_one(&mut self)

    Sets self to the multiplicative identity element of Self, 1.
    ","One","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> MulAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: &Complex<T>)

    Performs the *= operation. Read more
    ","MulAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: T)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> MulAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: &T)

    Performs the *= operation. Read more
    ","MulAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn mul_assign(&mut self, other: Complex<T>)

    Performs the *= operation. Read more
    ","MulAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Div<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: T) -> <Complex<T> as Div<T>>::Output

    Performs the / operation. Read more
    ","Div","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Div<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: &Complex<T>) -> <Complex<T> as Div<&'a Complex<T>>>::Output

    Performs the / operation. Read more
    ","Div<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Div<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: &T) -> <Complex<T> as Div<&'a T>>::Output

    Performs the / operation. Read more
    ","Div<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Div for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the / operator.
    source§

    fn div(self, other: Complex<T>) -> <Complex<T> as Div>::Output

    Performs the / operation. Read more
    ","Div","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> ToPrimitive for Complex<T>
    where\n T: ToPrimitive + Num,

    source§

    fn to_usize(&self) -> Option<usize>

    Converts the value of self to a usize. If the value cannot be\nrepresented by a usize, then None is returned.
    source§

    fn to_isize(&self) -> Option<isize>

    Converts the value of self to an isize. If the value cannot be\nrepresented by an isize, then None is returned.
    source§

    fn to_u8(&self) -> Option<u8>

    Converts the value of self to a u8. If the value cannot be\nrepresented by a u8, then None is returned.
    source§

    fn to_u16(&self) -> Option<u16>

    Converts the value of self to a u16. If the value cannot be\nrepresented by a u16, then None is returned.
    source§

    fn to_u32(&self) -> Option<u32>

    Converts the value of self to a u32. If the value cannot be\nrepresented by a u32, then None is returned.
    source§

    fn to_u64(&self) -> Option<u64>

    Converts the value of self to a u64. If the value cannot be\nrepresented by a u64, then None is returned.
    source§

    fn to_i8(&self) -> Option<i8>

    Converts the value of self to an i8. If the value cannot be\nrepresented by an i8, then None is returned.
    source§

    fn to_i16(&self) -> Option<i16>

    Converts the value of self to an i16. If the value cannot be\nrepresented by an i16, then None is returned.
    source§

    fn to_i32(&self) -> Option<i32>

    Converts the value of self to an i32. If the value cannot be\nrepresented by an i32, then None is returned.
    source§

    fn to_i64(&self) -> Option<i64>

    Converts the value of self to an i64. If the value cannot be\nrepresented by an i64, then None is returned.
    source§

    fn to_u128(&self) -> Option<u128>

    Converts the value of self to a u128. If the value cannot be\nrepresented by a u128 (u64 under the default implementation), then\nNone is returned. Read more
    source§

    fn to_i128(&self) -> Option<i128>

    Converts the value of self to an i128. If the value cannot be\nrepresented by an i128 (i64 under the default implementation), then\nNone is returned. Read more
    source§

    fn to_f32(&self) -> Option<f32>

    Converts the value of self to an f32. Overflows may map to positive\nor negative inifinity, otherwise None is returned if the value cannot\nbe represented by an f32.
    source§

    fn to_f64(&self) -> Option<f64>

    Converts the value of self to an f64. Overflows may map to positive\nor negative inifinity, otherwise None is returned if the value cannot\nbe represented by an f64. Read more
    ","ToPrimitive","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Default for Complex<T>
    where\n T: Default,

    source§

    fn default() -> Complex<T>

    Returns the “default value” for a type. Read more
    ","Default","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Binary for Complex<T>
    where\n T: Binary + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","Binary","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Octal for Complex<T>
    where\n T: Octal + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","Octal","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> UpperHex for Complex<T>
    where\n T: UpperHex + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","UpperHex","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAdd for Complex<T>
    where\n T: Clone + Num + MulAdd<Output = T>,

    §

    type Output = Complex<T>

    The resulting type after applying the fused multiply-add.
    source§

    fn mul_add(self, other: Complex<T>, add: Complex<T>) -> Complex<T>

    Performs the fused multiply-add operation (self * a) + b
    ","MulAdd","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Add<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: T) -> <Complex<T> as Add<T>>::Output

    Performs the + operation. Read more
    ","Add","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Add<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: &T) -> <Complex<T> as Add<&'a T>>::Output

    Performs the + operation. Read more
    ","Add<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Add<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: &Complex<T>) -> <Complex<T> as Add<&'a Complex<T>>>::Output

    Performs the + operation. Read more
    ","Add<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Add for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the + operator.
    source§

    fn add(self, other: Complex<T>) -> <Complex<T> as Add>::Output

    Performs the + operation. Read more
    ","Add","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> PartialEq for Complex<T>
    where\n T: PartialEq,

    source§

    fn eq(&self, other: &Complex<T>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Pow<f32> for Complex<T>
    where\n T: Float,\n f32: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, exp: f32) -> <Complex<T> as Pow<f32>>::Output

    Returns self to the power rhs. Read more
    ","Pow","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, _: &f64) -> <Complex<T> as Pow<&'b f64>>::Output

    Returns self to the power rhs. Read more
    ","Pow<&'b f64>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b Complex<T>> for Complex<T>
    where\n T: Float,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, _: &'b Complex<T>) -> <Complex<T> as Pow<&'b Complex<T>>>::Output

    Returns self to the power rhs. Read more
    ","Pow<&'b Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b f32> for Complex<T>
    where\n T: Float,\n f32: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, _: &f32) -> <Complex<T> as Pow<&'b f32>>::Output

    Returns self to the power rhs. Read more
    ","Pow<&'b f32>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Pow<f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, exp: f64) -> <Complex<T> as Pow<f64>>::Output

    Returns self to the power rhs. Read more
    ","Pow","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Pow<Complex<T>> for Complex<T>
    where\n T: Float,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn pow(self, exp: Complex<T>) -> <Complex<T> as Pow<Complex<T>>>::Output

    Returns self to the power rhs. Read more
    ","Pow>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> RemAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, other: &Complex<T>)

    Performs the %= operation. Read more
    ","RemAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> RemAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, other: T)

    Performs the %= operation. Read more
    ","RemAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> RemAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, other: &T)

    Performs the %= operation. Read more
    ","RemAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> RemAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn rem_assign(&mut self, modulus: Complex<T>)

    Performs the %= operation. Read more
    ","RemAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Sum for Complex<T>
    where\n T: Num + Clone,

    source§

    fn sum<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\n“summing up” the items.
    ","Sum","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Sum<&'a Complex<T>> for Complex<T>
    where\n T: 'a + Num + Clone,

    source§

    fn sum<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = &'a Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\n“summing up” the items.
    ","Sum<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Product<&'a Complex<T>> for Complex<T>
    where\n T: 'a + Num + Clone,

    source§

    fn product<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = &'a Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\nmultiplying the items.
    ","Product<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Product for Complex<T>
    where\n T: Num + Clone,

    source§

    fn product<I>(iter: I) -> Complex<T>
    where\n I: Iterator<Item = Complex<T>>,

    Method which takes an iterator and generates Self from the elements by\nmultiplying the items.
    ","Product","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Zero for Complex<T>
    where\n T: Clone + Num,

    source§

    fn zero() -> Complex<T>

    Returns the additive identity element of Self, 0. Read more
    source§

    fn is_zero(&self) -> bool

    Returns true if self is equal to the additive identity.
    source§

    fn set_zero(&mut self)

    Sets self to the additive identity element of Self, 0.
    ","Zero","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Neg for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn neg(self) -> <Complex<T> as Neg>::Output

    Performs the unary - operation. Read more
    ","Neg","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> LowerHex for Complex<T>
    where\n T: LowerHex + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","LowerHex","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Copy for Complex<T>
    where\n T: Copy,

    ","Copy","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> LowerExp for Complex<T>
    where\n T: LowerExp + Num + PartialOrd + Clone,

    source§

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

    Formats the value using the given formatter.
    ","LowerExp","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Num for Complex<T>
    where\n T: Num + Clone,

    source§

    fn from_str_radix(\n s: &str,\n radix: u32\n) -> Result<Complex<T>, <Complex<T> as Num>::FromStrRadixErr>

    Parses a +/- bi; ai +/- b; a; or bi where a and b are of type T

    \n

    radix must be <= 18; larger radix would include i and j as digits,\nwhich cannot be supported.

    \n

    The conversion returns an error if 18 <= radix <= 36; it panics if radix > 36.

    \n

    The elements of T are parsed using Num::from_str_radix too, and errors\n(or panics) from that are reflected here as well.

    \n
    §

    type FromStrRadixErr = ParseComplexError<<T as Num>::FromStrRadixErr>

    ","Num","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Rem for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, modulus: Complex<T>) -> <Complex<T> as Rem>::Output

    Performs the % operation. Read more
    ","Rem","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Rem<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, other: &Complex<T>) -> <Complex<T> as Rem<&'a Complex<T>>>::Output

    Performs the % operation. Read more
    ","Rem<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Rem<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, other: T) -> <Complex<T> as Rem<T>>::Output

    Performs the % operation. Read more
    ","Rem","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Rem<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the % operator.
    source§

    fn rem(self, other: &T) -> <Complex<T> as Rem<&'a T>>::Output

    Performs the % operation. Read more
    ","Rem<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> FromPrimitive for Complex<T>
    where\n T: FromPrimitive + Num,

    source§

    fn from_usize(n: usize) -> Option<Complex<T>>

    Converts a usize to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_isize(n: isize) -> Option<Complex<T>>

    Converts an isize to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u8(n: u8) -> Option<Complex<T>>

    Converts an u8 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u16(n: u16) -> Option<Complex<T>>

    Converts an u16 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u32(n: u32) -> Option<Complex<T>>

    Converts an u32 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u64(n: u64) -> Option<Complex<T>>

    Converts an u64 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i8(n: i8) -> Option<Complex<T>>

    Converts an i8 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i16(n: i16) -> Option<Complex<T>>

    Converts an i16 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i32(n: i32) -> Option<Complex<T>>

    Converts an i32 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_i64(n: i64) -> Option<Complex<T>>

    Converts an i64 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_u128(n: u128) -> Option<Complex<T>>

    Converts an u128 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned. Read more
    source§

    fn from_i128(n: i128) -> Option<Complex<T>>

    Converts an i128 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned. Read more
    source§

    fn from_f32(n: f32) -> Option<Complex<T>>

    Converts a f32 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned.
    source§

    fn from_f64(n: f64) -> Option<Complex<T>>

    Converts a f64 to return an optional value of this type. If the\nvalue cannot be represented by this type, then None is returned. Read more
    ","FromPrimitive","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, 'b, T> MulAddAssign<&'a Complex<T>, &'b Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign + MulAddAssign,

    source§

    fn mul_add_assign(&mut self, other: &Complex<T>, add: &Complex<T>)

    Performs the fused multiply-add assignment operation *self = (*self * a) + b
    ","MulAddAssign<&'a Complex, &'b Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> MulAddAssign for Complex<T>
    where\n T: Clone + NumAssign + MulAddAssign,

    source§

    fn mul_add_assign(&mut self, other: Complex<T>, add: Complex<T>)

    Performs the fused multiply-add assignment operation *self = (*self * a) + b
    ","MulAddAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> ComplexFloat for Complex<T>
    where\n T: Float + FloatConst,

    §

    type Real = T

    The type used to represent the real coefficients of this complex number.
    source§

    fn re(self) -> <Complex<T> as ComplexFloat>::Real

    Returns the real part of the number.
    source§

    fn im(self) -> <Complex<T> as ComplexFloat>::Real

    Returns the imaginary part of the number.
    source§

    fn abs(self) -> <Complex<T> as ComplexFloat>::Real

    Returns the absolute value of the number. See also Complex::norm
    source§

    fn recip(self) -> Complex<T>

    Take the reciprocal (inverse) of a number, 1/x. See also Complex::finv.
    source§

    fn l1_norm(&self) -> <Complex<T> as ComplexFloat>::Real

    Returns the L1 norm |re| + |im| – the Manhattan distance from the origin.
    source§

    fn is_nan(self) -> bool

    Returns true if this value is NaN and false otherwise.
    source§

    fn is_infinite(self) -> bool

    Returns true if this value is positive infinity or negative infinity and\nfalse otherwise.
    source§

    fn is_finite(self) -> bool

    Returns true if this number is neither infinite nor NaN.
    source§

    fn is_normal(self) -> bool

    Returns true if the number is neither zero, infinite,\nsubnormal, or NaN.
    source§

    fn arg(self) -> <Complex<T> as ComplexFloat>::Real

    Computes the argument of the number.
    source§

    fn powc(\n self,\n exp: Complex<<Complex<T> as ComplexFloat>::Real>\n) -> Complex<<Complex<T> as ComplexFloat>::Real>

    Raises self to a complex power.
    source§

    fn exp2(self) -> Complex<T>

    Returns 2^(self).
    source§

    fn log(self, base: <Complex<T> as ComplexFloat>::Real) -> Complex<T>

    Returns the logarithm of the number with respect to an arbitrary base.
    source§

    fn log2(self) -> Complex<T>

    Returns the base 2 logarithm of the number.
    source§

    fn log10(self) -> Complex<T>

    Returns the base 10 logarithm of the number.
    source§

    fn powf(self, f: <Complex<T> as ComplexFloat>::Real) -> Complex<T>

    Raises self to a real power.
    source§

    fn sqrt(self) -> Complex<T>

    Take the square root of a number.
    source§

    fn cbrt(self) -> Complex<T>

    Take the cubic root of a number.
    source§

    fn exp(self) -> Complex<T>

    Returns e^(self), (the exponential function).
    source§

    fn expf(self, base: <Complex<T> as ComplexFloat>::Real) -> Complex<T>

    Returns base^(self).
    source§

    fn ln(self) -> Complex<T>

    Returns the natural logarithm of the number.
    source§

    fn sin(self) -> Complex<T>

    Computes the sine of a number (in radians).
    source§

    fn cos(self) -> Complex<T>

    Computes the cosine of a number (in radians).
    source§

    fn tan(self) -> Complex<T>

    Computes the tangent of a number (in radians).
    source§

    fn asin(self) -> Complex<T>

    Computes the arcsine of a number. Return value is in radians in\nthe range [-pi/2, pi/2] or NaN if the number is outside the range\n[-1, 1].
    source§

    fn acos(self) -> Complex<T>

    Computes the arccosine of a number. Return value is in radians in\nthe range [0, pi] or NaN if the number is outside the range\n[-1, 1].
    source§

    fn atan(self) -> Complex<T>

    Computes the arctangent of a number. Return value is in radians in the\nrange [-pi/2, pi/2];
    source§

    fn sinh(self) -> Complex<T>

    Hyperbolic sine function.
    source§

    fn cosh(self) -> Complex<T>

    Hyperbolic cosine function.
    source§

    fn tanh(self) -> Complex<T>

    Hyperbolic tangent function.
    source§

    fn asinh(self) -> Complex<T>

    Inverse hyperbolic sine function.
    source§

    fn acosh(self) -> Complex<T>

    Inverse hyperbolic cosine function.
    source§

    fn atanh(self) -> Complex<T>

    Inverse hyperbolic tangent function.
    source§

    fn powi(self, n: i32) -> Complex<T>

    Raises self to a signed integer power.
    source§

    fn conj(self) -> Complex<T>

    Computes the complex conjugate of the number. Read more
    ","ComplexFloat","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> StructuralPartialEq for Complex<T>

    ","StructuralPartialEq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Inv for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    §

    type Output = Complex<T>

    The result after applying the operator.
    source§

    fn inv(self) -> <Complex<T> as Inv>::Output

    Returns the multiplicative inverse of self. Read more
    ","Inv","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Debug for Complex<T>
    where\n T: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Sub<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: &Complex<T>) -> <Complex<T> as Sub<&'a Complex<T>>>::Output

    Performs the - operation. Read more
    ","Sub<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Sub<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: T) -> <Complex<T> as Sub<T>>::Output

    Performs the - operation. Read more
    ","Sub","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Sub<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: &T) -> <Complex<T> as Sub<&'a T>>::Output

    Performs the - operation. Read more
    ","Sub<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Sub for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the - operator.
    source§

    fn sub(self, other: Complex<T>) -> <Complex<T> as Sub>::Output

    Performs the - operation. Read more
    ","Sub","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> SubAssign<&'a T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: &T)

    Performs the -= operation. Read more
    ","SubAssign<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> SubAssign<&'a Complex<T>> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: &Complex<T>)

    Performs the -= operation. Read more
    ","SubAssign<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> SubAssign for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: Complex<T>)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> SubAssign<T> for Complex<T>
    where\n T: Clone + NumAssign,

    source§

    fn sub_assign(&mut self, other: T)

    Performs the -= operation. Read more
    ","SubAssign","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T, U> AsPrimitive<U> for Complex<T>
    where\n T: AsPrimitive<U>,\n U: 'static + Copy,

    source§

    fn as_(self) -> U

    Convert a value to another, using the as operator.
    ","AsPrimitive","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Mul<T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: T) -> <Complex<T> as Mul<T>>::Output

    Performs the * operation. Read more
    ","Mul","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Mul<&'a T> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: &T) -> <Complex<T> as Mul<&'a T>>::Output

    Performs the * operation. Read more
    ","Mul<&'a T>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Mul<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: &Complex<T>) -> <Complex<T> as Mul<&'a Complex<T>>>::Output

    Performs the * operation. Read more
    ","Mul<&'a Complex>","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Mul for Complex<T>
    where\n T: Clone + Num,

    §

    type Output = Complex<T>

    The resulting type after applying the * operator.
    source§

    fn mul(self, other: Complex<T>) -> <Complex<T> as Mul>::Output

    Performs the * operation. Read more
    ","Mul","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Hash for Complex<T>
    where\n T: Hash,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> FromStr for Complex<T>
    where\n T: FromStr + Num + Clone,

    source§

    fn from_str(s: &str) -> Result<Complex<T>, <Complex<T> as FromStr>::Err>

    Parses a +/- bi; ai +/- b; a; or bi where a and b are of type T

    \n
    §

    type Err = ParseComplexError<<T as FromStr>::Err>

    The associated error which can be returned from parsing.
    ","FromStr","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Normed for Complex<T>
    where\n T: SimdRealField,

    §

    type Norm = <T as SimdComplexField>::SimdRealField

    The type of the norm.
    source§

    fn norm(&self) -> <T as SimdComplexField>::SimdRealField

    Computes the norm.
    source§

    fn norm_squared(&self) -> <T as SimdComplexField>::SimdRealField

    Computes the squared norm.
    source§

    fn scale_mut(&mut self, n: <Complex<T> as Normed>::Norm)

    Multiply self by n.
    source§

    fn unscale_mut(&mut self, n: <Complex<T> as Normed>::Norm)

    Divides self by n.
    ","Normed","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> PrimitiveSimdValue for Complex<N>
    where\n N: PrimitiveSimdValue,

    ","PrimitiveSimdValue","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> SimdValue for Complex<N>
    where\n N: SimdValue,

    §

    type Element = Complex<<N as SimdValue>::Element>

    The type of the elements of each lane of this SIMD value.
    §

    type SimdBool = <N as SimdValue>::SimdBool

    Type of the result of comparing two SIMD values like self.
    §

    fn lanes() -> usize

    The number of lanes of this SIMD value.
    §

    fn splat(val: <Complex<N> as SimdValue>::Element) -> Complex<N>

    Initializes an SIMD value with each lanes set to val.
    §

    fn extract(&self, i: usize) -> <Complex<N> as SimdValue>::Element

    Extracts the i-th lane of self. Read more
    §

    unsafe fn extract_unchecked(\n &self,\n i: usize\n) -> <Complex<N> as SimdValue>::Element

    Extracts the i-th lane of self without bound-checking.
    §

    fn replace(&mut self, i: usize, val: <Complex<N> as SimdValue>::Element)

    Replaces the i-th lane of self by val. Read more
    §

    unsafe fn replace_unchecked(\n &mut self,\n i: usize,\n val: <Complex<N> as SimdValue>::Element\n)

    Replaces the i-th lane of self by val without bound-checking.
    §

    fn select(\n self,\n cond: <Complex<N> as SimdValue>::SimdBool,\n other: Complex<N>\n) -> Complex<N>

    Merges self and other depending on the lanes of cond. Read more
    ","SimdValue","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> ComplexField for Complex<N>
    where\n N: RealField + PartialOrd,

    §

    fn exp(self) -> Complex<N>

    Computes e^(self), where e is the base of the natural logarithm.

    \n
    §

    fn ln(self) -> Complex<N>

    Computes the principal value of natural logarithm of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0], continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ arg(ln(z)) ≤ π.

    \n
    §

    fn sqrt(self) -> Complex<N>

    Computes the principal value of the square root of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 0), continuous from above.
    • \n
    \n

    The branch satisfies -π/2 ≤ arg(sqrt(z)) ≤ π/2.

    \n
    §

    fn powf(self, exp: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Raises self to a floating point power.

    \n
    §

    fn log(self, base: N) -> Complex<N>

    Returns the logarithm of self with respect to an arbitrary base.

    \n
    §

    fn powc(self, exp: Complex<N>) -> Complex<N>

    Raises self to a complex power.

    \n
    §

    fn sin(self) -> Complex<N>

    Computes the sine of self.

    \n
    §

    fn cos(self) -> Complex<N>

    Computes the cosine of self.

    \n
    §

    fn tan(self) -> Complex<N>

    Computes the tangent of self.

    \n
    §

    fn asin(self) -> Complex<N>

    Computes the principal value of the inverse sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(asin(z)) ≤ π/2.

    \n
    §

    fn acos(self) -> Complex<N>

    Computes the principal value of the inverse cosine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1), continuous from above.
    • \n
    • (1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies 0 ≤ Re(acos(z)) ≤ π.

    \n
    §

    fn atan(self) -> Complex<N>

    Computes the principal value of the inverse tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i], continuous from the left.
    • \n
    • [i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Re(atan(z)) ≤ π/2.

    \n
    §

    fn sinh(self) -> Complex<N>

    Computes the hyperbolic sine of self.

    \n
    §

    fn cosh(self) -> Complex<N>

    Computes the hyperbolic cosine of self.

    \n
    §

    fn tanh(self) -> Complex<N>

    Computes the hyperbolic tangent of self.

    \n
    §

    fn asinh(self) -> Complex<N>

    Computes the principal value of inverse hyperbolic sine of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞i, -i), continuous from the left.
    • \n
    • (i, ∞i), continuous from the right.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(asinh(z)) ≤ π/2.

    \n
    §

    fn acosh(self) -> Complex<N>

    Computes the principal value of inverse hyperbolic cosine of self.

    \n

    This function has one branch cut:

    \n
      \n
    • (-∞, 1), continuous from above.
    • \n
    \n

    The branch satisfies -π ≤ Im(acosh(z)) ≤ π and 0 ≤ Re(acosh(z)) < ∞.

    \n
    §

    fn atanh(self) -> Complex<N>

    Computes the principal value of inverse hyperbolic tangent of self.

    \n

    This function has two branch cuts:

    \n
      \n
    • (-∞, -1], continuous from above.
    • \n
    • [1, ∞), continuous from below.
    • \n
    \n

    The branch satisfies -π/2 ≤ Im(atanh(z)) ≤ π/2.

    \n
    §

    type RealField = N

    §

    fn from_real(re: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Builds a pure-real complex number from the given value.
    §

    fn real(self) -> <Complex<N> as ComplexField>::RealField

    The real part of this complex number.
    §

    fn imaginary(self) -> <Complex<N> as ComplexField>::RealField

    The imaginary part of this complex number.
    §

    fn argument(self) -> <Complex<N> as ComplexField>::RealField

    The argument of this complex number.
    §

    fn modulus(self) -> <Complex<N> as ComplexField>::RealField

    The modulus of this complex number.
    §

    fn modulus_squared(self) -> <Complex<N> as ComplexField>::RealField

    The squared modulus of this complex number.
    §

    fn norm1(self) -> <Complex<N> as ComplexField>::RealField

    The sum of the absolute value of this complex number’s real and imaginary part.
    §

    fn recip(self) -> Complex<N>

    §

    fn conjugate(self) -> Complex<N>

    §

    fn scale(self, factor: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Multiplies this complex number by factor.
    §

    fn unscale(self, factor: <Complex<N> as ComplexField>::RealField) -> Complex<N>

    Divides this complex number by factor.
    §

    fn floor(self) -> Complex<N>

    §

    fn ceil(self) -> Complex<N>

    §

    fn round(self) -> Complex<N>

    §

    fn trunc(self) -> Complex<N>

    §

    fn fract(self) -> Complex<N>

    §

    fn mul_add(self, a: Complex<N>, b: Complex<N>) -> Complex<N>

    §

    fn abs(self) -> <Complex<N> as ComplexField>::RealField

    The absolute value of this complex number: self / self.signum(). Read more
    §

    fn exp2(self) -> Complex<N>

    §

    fn exp_m1(self) -> Complex<N>

    §

    fn ln_1p(self) -> Complex<N>

    §

    fn log2(self) -> Complex<N>

    §

    fn log10(self) -> Complex<N>

    §

    fn cbrt(self) -> Complex<N>

    §

    fn powi(self, n: i32) -> Complex<N>

    §

    fn is_finite(&self) -> bool

    §

    fn try_sqrt(self) -> Option<Complex<N>>

    §

    fn hypot(self, b: Complex<N>) -> <Complex<N> as ComplexField>::RealField

    Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
    §

    fn sin_cos(self) -> (Complex<N>, Complex<N>)

    §

    fn sinh_cosh(self) -> (Complex<N>, Complex<N>)

    §

    fn to_polar(self) -> (Self::RealField, Self::RealField)

    The polar form of this complex number: (modulus, arg)
    §

    fn to_exp(self) -> (Self::RealField, Self)

    The exponential form of this complex number: (modulus, e^{i arg})
    §

    fn signum(self) -> Self

    The exponential part of this complex number: self / self.modulus()
    §

    fn sinc(self) -> Self

    Cardinal sine
    §

    fn sinhc(self) -> Self

    §

    fn cosc(self) -> Self

    Cardinal cos
    §

    fn coshc(self) -> Self

    ","ComplexField","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> Field for Complex<N>
    where\n N: SimdValue + Clone + NumAssign + ClosedNeg,

    ","Field","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N1, N2> SubsetOf<Complex<N2>> for Complex<N1>
    where\n N2: SupersetOf<N1>,

    §

    fn to_superset(&self) -> Complex<N2>

    The inclusion map: converts self to the equivalent element of its superset.
    §

    fn from_superset_unchecked(element: &Complex<N2>) -> Complex<N1>

    Use with care! Same as self.to_superset but without any property checks. Always succeeds.
    §

    fn is_in_subset(c: &Complex<N2>) -> bool

    Checks if element is actually part of the subset Self (and can be converted to it).
    §

    fn from_superset(element: &T) -> Option<Self>

    The inverse inclusion map: attempts to construct self from the equivalent element of its\nsuperset. Read more
    ","SubsetOf>","numpy::Complex32","numpy::Complex64"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/numpy/array/struct.PyArray.js b/type.impl/numpy/array/struct.PyArray.js index b35f8e06f..845dc3ba4 100644 --- a/type.impl/numpy/array/struct.PyArray.js +++ b/type.impl/numpy/array/struct.PyArray.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl<T, D> PyArray<T, D>

    source

    pub fn as_untyped(&self) -> &PyUntypedArray

    Access an untyped representation of this array.

    \n
    source

    pub fn to_owned(&self) -> Py<Self>

    👎Deprecated since 0.21.0: use Bound::unbind() instead

    Turn &PyArray<T,D> into Py<PyArray<T,D>>,\ni.e. a pointer into Python’s heap which is independent of the GIL lifetime.

    \n

    This method can be used to avoid lifetime annotations of function arguments\nor return values.

    \n
    Example
    \n
    use numpy::{PyArray1, PyArrayMethods};\nuse pyo3::{Py, Python};\n\nlet array: Py<PyArray1<f64>> = Python::with_gil(|py| {\n    PyArray1::zeros_bound(py, 5, false).unbind()\n});\n\nPython::with_gil(|py| {\n    assert_eq!(array.bind(py).readonly().as_slice().unwrap(), [0.0; 5]);\n});
    \n
    source

    pub unsafe fn from_owned_ptr<'py>(\n py: Python<'py>,\n ptr: *mut PyObject\n) -> &'py Self

    Constructs a reference to a PyArray from a raw pointer to a Python object.

    \n
    Safety
    \n

    This is a wrapper around [pyo3::FromPyPointer::from_owned_ptr_or_opt] and inherits its safety contract.

    \n
    source

    pub unsafe fn from_borrowed_ptr<'py>(\n py: Python<'py>,\n ptr: *mut PyObject\n) -> &'py Self

    Constructs a reference to a PyArray from a raw point to a Python object.

    \n
    Safety
    \n

    This is a wrapper around [pyo3::FromPyPointer::from_borrowed_ptr_or_opt] and inherits its safety contract.

    \n
    source

    pub fn data(&self) -> *mut T

    Returns a pointer to the first element of the array.

    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T: Element, D: Dimension> PyArray<T, D>

    source

    pub fn dims(&self) -> D

    Same as shape, but returns D instead of &[usize].

    \n
    source

    pub unsafe fn new<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
    where\n ID: IntoDimension<Dim = D>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::new_bound in the future
    source

    pub unsafe fn new_bound<'py, ID>(\n py: Python<'py>,\n dims: ID,\n is_fortran: bool\n) -> Bound<'py, Self>
    where\n ID: IntoDimension<Dim = D>,

    Creates a new uninitialized NumPy array.

    \n

    If is_fortran is true, then it has Fortran/column-major order,\notherwise it has C/row-major order.

    \n
    Safety
    \n

    The returned array will always be safe to be dropped as the elements must either\nbe trivially copyable (as indicated by <T as Element>::IS_COPY) or be pointers\ninto Python’s heap, which NumPy will automatically zero-initialize.

    \n

    However, the elements themselves will not be valid and should be initialized manually\nusing raw pointers obtained via uget_raw. Before that, all methods\nwhich produce references to the elements invoke undefined behaviour. In particular,\nzero-initialized pointers are not valid instances of PyObject.

    \n
    Example
    \n
    use numpy::prelude::*;\nuse numpy::PyArray3;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let arr = unsafe {\n        let arr = PyArray3::<i32>::new_bound(py, [4, 5, 6], false);\n\n        for i in 0..4 {\n            for j in 0..5 {\n                for k in 0..6 {\n                    arr.uget_raw([i, j, k]).write((i * j * k) as i32);\n                }\n            }\n        }\n\n        arr\n    };\n\n    assert_eq!(arr.shape(), &[4, 5, 6]);\n});
    \n
    source

    pub unsafe fn borrow_from_array<'py, S>(\n array: &ArrayBase<S, D>,\n container: &'py PyAny\n) -> &'py Self
    where\n S: Data<Elem = T>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::borrow_from_array_bound in the future
    source

    pub unsafe fn borrow_from_array_bound<'py, S>(\n array: &ArrayBase<S, D>,\n container: Bound<'py, PyAny>\n) -> Bound<'py, Self>
    where\n S: Data<Elem = T>,

    Creates a NumPy array backed by array and ties its ownership to the Python object container.

    \n
    Safety
    \n

    container is set as a base object of the returned array which must not be dropped until container is dropped.\nFurthermore, array must not be reallocated from the time this method is called and until container is dropped.

    \n
    Example
    \n
    #[pyclass]\nstruct Owner {\n    array: Array1<f64>,\n}\n\n#[pymethods]\nimpl Owner {\n    #[getter]\n    fn array<'py>(this: Bound<'py, Self>) -> Bound<'py, PyArray1<f64>> {\n        let array = &this.borrow().array;\n\n        // SAFETY: The memory backing `array` will stay valid as long as this object is alive\n        // as we do not modify `array` in any way which would cause it to be reallocated.\n        unsafe { PyArray1::borrow_from_array_bound(array, this.into_any()) }\n    }\n}
    \n
    source

    pub fn zeros<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
    where\n ID: IntoDimension<Dim = D>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::zeros_bound in the future

    Deprecated form of PyArray<T, D>::zeros_bound

    \n
    source

    pub fn zeros_bound<ID>(\n py: Python<'_>,\n dims: ID,\n is_fortran: bool\n) -> Bound<'_, Self>
    where\n ID: IntoDimension<Dim = D>,

    Construct a new NumPy array filled with zeros.

    \n

    If is_fortran is true, then it has Fortran/column-major order,\notherwise it has C/row-major order.

    \n

    For arrays of Python objects, this will fill the array\nwith valid pointers to zero-valued Python integer objects.

    \n

    See also numpy.zeros and PyArray_Zeros.

    \n
    Example
    \n
    use numpy::{PyArray2, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray2::<usize>::zeros_bound(py, [2, 2], true);\n\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), [0; 4]);\n});
    \n
    source

    pub unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError>

    Returns an immutable view of the internal data as a slice.

    \n
    Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Please consider the safe alternative PyReadonlyArray::as_slice.

    \n
    source

    pub unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError>

    Returns a mutable view of the internal data as a slice.

    \n
    Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased immutably or mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Please consider the safe alternative PyReadwriteArray::as_slice_mut.

    \n
    source

    pub fn from_owned_array<'py>(py: Python<'py>, arr: Array<T, D>) -> &'py Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_array_bound in the future
    source

    pub fn from_owned_array_bound(\n py: Python<'_>,\n arr: Array<T, D>\n) -> Bound<'_, Self>

    Constructs a NumPy from an ndarray::Array

    \n

    This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse ndarray::array;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::from_owned_array_bound(py, array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \n
    source

    pub unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>

    Get a reference of the specified element if the given index is valid.

    \n
    Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Consider using safe alternatives like PyReadonlyArray::get.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 11);\n});
    \n
    source

    pub unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>

    Same as get, but returns Option<&mut T>.

    \n
    Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased immutably or mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Consider using safe alternatives like PyReadwriteArray::get_mut.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    unsafe {\n        *pyarray.get_mut([1, 0, 3]).unwrap() = 42;\n    }\n\n    assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 42);\n});
    \n
    source

    pub unsafe fn uget<Idx>(&self, index: Idx) -> &T
    where\n Idx: NpyIndex<Dim = D>,

    Get an immutable reference of the specified element,\nwithout checking the given index.

    \n

    See NpyIndex for what types can be used as the index.

    \n
    Safety
    \n

    Passing an invalid index is undefined behavior.\nThe element must also have been initialized and\nall other references to it is must also be shared.

    \n

    See PyReadonlyArray::get for a safe alternative.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    assert_eq!(unsafe { *pyarray.uget([1, 0, 3]) }, 11);\n});
    \n
    source

    pub unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T
    where\n Idx: NpyIndex<Dim = D>,

    Same as uget, but returns &mut T.

    \n
    Safety
    \n

    Passing an invalid index is undefined behavior.\nThe element must also have been initialized and\nother references to it must not exist.

    \n

    See PyReadwriteArray::get_mut for a safe alternative.

    \n
    source

    pub unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T
    where\n Idx: NpyIndex<Dim = D>,

    Same as uget, but returns *mut T.

    \n
    Safety
    \n

    Passing an invalid index is undefined behavior.

    \n
    source

    pub fn get_owned<Idx>(&self, index: Idx) -> Option<T>
    where\n Idx: NpyIndex<Dim = D>,

    Get a copy of the specified element in the array.

    \n

    See NpyIndex for what types can be used as the index.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    assert_eq!(pyarray.get_owned([1, 0, 3]), Some(11));\n});
    \n
    source

    pub fn to_dyn(&self) -> &PyArray<T, IxDyn>

    Turn an array with fixed dimensionality into one with dynamic dimensionality.

    \n
    source

    pub fn to_vec(&self) -> Result<Vec<T>, NotContiguousError>

    Returns a copy of the internal data of the array as a Vec.

    \n

    Fails if the internal array is not contiguous. See also as_slice.

    \n
    Example
    \n
    use numpy::PyArray2;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray= py\n        .eval(\"__import__('numpy').array([[0, 1], [2, 3]], dtype='int64')\", None, None)\n        .unwrap()\n        .downcast::<PyArray2<i64>>()\n        .unwrap();\n\n    assert_eq!(pyarray.to_vec().unwrap(), vec![0, 1, 2, 3]);\n});
    \n
    source

    pub fn from_array<'py, S>(py: Python<'py>, arr: &ArrayBase<S, D>) -> &'py Self
    where\n S: Data<Elem = T>,

    Construct a NumPy array from a ndarray::ArrayBase.

    \n

    This method allocates memory in Python’s heap via the NumPy API,\nand then copies all elements of the array there.

    \n
    Example
    \n
    use numpy::PyArray;\nuse ndarray::array;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::from_array(py, &array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \n
    source

    pub fn try_readonly(&self) -> Result<PyReadonlyArray<'_, T, D>, BorrowError>

    Get an immutable borrow of the NumPy array

    \n
    source

    pub fn readonly(&self) -> PyReadonlyArray<'_, T, D>

    Get an immutable borrow of the NumPy array

    \n
    Panics
    \n

    Panics if the allocation backing the array is currently mutably borrowed.

    \n

    For a non-panicking variant, use try_readonly.

    \n
    source

    pub fn try_readwrite(&self) -> Result<PyReadwriteArray<'_, T, D>, BorrowError>

    Get a mutable borrow of the NumPy array

    \n
    source

    pub fn readwrite(&self) -> PyReadwriteArray<'_, T, D>

    Get a mutable borrow of the NumPy array

    \n
    Panics
    \n

    Panics if the allocation backing the array is currently borrowed or\nif the array is flagged as not writeable.

    \n

    For a non-panicking variant, use try_readwrite.

    \n
    source

    pub unsafe fn as_array(&self) -> ArrayView<'_, T, D>

    Returns an ArrayView of the internal array.

    \n

    See also PyReadonlyArray::as_array.

    \n
    Safety
    \n

    Calling this method invalidates all exclusive references to the internal data, e.g. &mut [T] or ArrayViewMut.

    \n
    source

    pub unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>

    Returns an ArrayViewMut of the internal array.

    \n

    See also PyReadwriteArray::as_array_mut.

    \n
    Safety
    \n

    Calling this method invalidates all other references to the internal data, e.g. ArrayView or ArrayViewMut.

    \n
    source

    pub fn as_raw_array(&self) -> RawArrayView<T, D>

    Returns the internal array as RawArrayView enabling element access via raw pointers

    \n
    source

    pub fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>

    Returns the internal array as RawArrayViewMut enabling element access via raw pointers

    \n
    source

    pub fn to_owned_array(&self) -> Array<T, D>

    Get a copy of the array as an ndarray::Array.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse ndarray::array;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 4, 1).reshape([2, 2]).unwrap();\n\n    assert_eq!(\n        pyarray.to_owned_array(),\n        array![[0, 1], [2, 3]]\n    )\n});
    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<N, D> PyArray<N, D>
    where\n N: Scalar + Element,\n D: Dimension,

    source

    pub unsafe fn try_as_matrix<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixView using the given shape and strides.

    \n

    See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

    \n
    Safety
    \n

    Calling this method invalidates all exclusive references to the internal data, e.g. ArrayViewMut or MatrixSliceMut.

    \n
    source

    pub unsafe fn try_as_matrix_mut<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixViewMut using the given shape and strides.

    \n

    See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

    \n
    Safety
    \n

    Calling this method invalidates all other references to the internal data, e.g. ArrayView, MatrixSlice, ArrayViewMut or MatrixSliceMut.

    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<D: Dimension> PyArray<PyObject, D>

    source

    pub fn from_owned_object_array<'py, T>(\n py: Python<'py>,\n arr: Array<Py<T>, D>\n) -> &'py Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_object_array_bound in the future
    source

    pub fn from_owned_object_array_bound<T>(\n py: Python<'_>,\n arr: Array<Py<T>, D>\n) -> Bound<'_, Self>

    Construct a NumPy array containing objects stored in a ndarray::Array

    \n

    This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

    \n
    Example
    \n
    use ndarray::array;\nuse pyo3::{pyclass, Py, Python};\nuse numpy::{PyArray, PyArrayMethods};\n\n#[pyclass]\nstruct CustomElement {\n    foo: i32,\n    bar: f64,\n}\n\nPython::with_gil(|py| {\n    let array = array![\n        Py::new(py, CustomElement {\n            foo: 1,\n            bar: 2.0,\n        }).unwrap(),\n        Py::new(py, CustomElement {\n            foo: 3,\n            bar: 4.0,\n        }).unwrap(),\n    ];\n\n    let pyarray = PyArray::from_owned_object_array_bound(py, array);\n\n    assert!(pyarray.readonly().as_array().get(0).unwrap().as_ref(py).is_instance_of::<CustomElement>());\n});
    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T: Copy + Element> PyArray<T, Ix0>

    source

    pub fn item(&self) -> T

    Get the single element of a zero-dimensional array.

    \n

    See inner for an example.

    \n
    ",0,"numpy::array::PyArray0"],["
    source§

    impl<T: Element> PyArray<T, Ix1>

    source

    pub fn from_slice<'py>(py: Python<'py>, slice: &[T]) -> &'py Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_slice_bound in the future
    source

    pub fn from_slice_bound<'py>(py: Python<'py>, slice: &[T]) -> Bound<'py, Self>

    Construct a one-dimensional array from a slice.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let slice = &[1, 2, 3, 4, 5];\n    let pyarray = PyArray::from_slice_bound(py, slice);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> &'py Self

    Construct a one-dimensional array from a Vec<T>.

    \n
    Example
    \n
    use numpy::PyArray;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let vec = vec![1, 2, 3, 4, 5];\n    let pyarray = PyArray::from_vec(py, vec);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_iter<'py, I>(py: Python<'py>, iter: I) -> &'py Self
    where\n I: IntoIterator<Item = T>,

    Construct a one-dimensional array from an Iterator.

    \n

    If no reliable size_hint is available,\nthis method can allocate memory multiple times, which can hurt performance.

    \n
    Example
    \n
    use numpy::PyArray;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::from_iter(py, \"abcde\".chars().map(u32::from));\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[97, 98, 99, 100, 101]);\n});
    \n
    ",0,"numpy::array::PyArray1"],["
    source§

    impl<T: Element> PyArray<T, Ix2>

    source

    pub fn from_vec2<'py>(\n py: Python<'py>,\n v: &[Vec<T>]\n) -> Result<&'py Self, FromVecError>

    Construct a two-dimension array from a Vec<Vec<T>>.

    \n

    This function checks all dimensions of the inner vectors and returns\nan error if they are not all equal.

    \n
    Example
    \n
    use numpy::PyArray;\nuse pyo3::Python;\nuse ndarray::array;\n\nPython::with_gil(|py| {\n    let vec2 = vec![vec![11, 12], vec![21, 22]];\n    let pyarray = PyArray::from_vec2(py, &vec2).unwrap();\n    assert_eq!(pyarray.readonly().as_array(), array![[11, 12], [21, 22]]);\n\n    let ragged_vec2 = vec![vec![11, 12], vec![21]];\n    assert!(PyArray::from_vec2(py, &ragged_vec2).is_err());\n});
    \n
    ",0,"numpy::array::PyArray2"],["
    source§

    impl<T: Element> PyArray<T, Ix3>

    source

    pub fn from_vec3<'py>(\n py: Python<'py>,\n v: &[Vec<Vec<T>>]\n) -> Result<&'py Self, FromVecError>

    Construct a three-dimensional array from a Vec<Vec<Vec<T>>>.

    \n

    This function checks all dimensions of the inner vectors and returns\nan error if they are not all equal.

    \n
    Example
    \n
    use numpy::PyArray;\nuse pyo3::Python;\nuse ndarray::array;\n\nPython::with_gil(|py| {\n    let vec3 = vec![\n        vec![vec![111, 112], vec![121, 122]],\n        vec![vec![211, 212], vec![221, 222]],\n    ];\n    let pyarray = PyArray::from_vec3(py, &vec3).unwrap();\n    assert_eq!(\n        pyarray.readonly().as_array(),\n        array![[[111, 112], [121, 122]], [[211, 212], [221, 222]]]\n    );\n\n    let ragged_vec3 = vec![\n        vec![vec![111, 112], vec![121, 122]],\n        vec![vec![211], vec![221, 222]],\n    ];\n    assert!(PyArray::from_vec3(py, &ragged_vec3).is_err());\n});
    \n
    ",0,"numpy::array::PyArray3"],["
    source§

    impl<T: Element, D> PyArray<T, D>

    source

    pub fn copy_to<U: Element>(&self, other: &PyArray<U, D>) -> PyResult<()>

    Copies self into other, performing a data type conversion if necessary.

    \n

    See also PyArray_CopyInto.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray_f = PyArray::arange_bound(py, 2.0, 5.0, 1.0);\n    let pyarray_i = unsafe { PyArray::<i64, _>::new_bound(py, [3], false) };\n\n    assert!(pyarray_f.copy_to(&pyarray_i).is_ok());\n\n    assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]);\n});
    \n
    source

    pub fn cast<'py, U: Element>(\n &'py self,\n is_fortran: bool\n) -> PyResult<&'py PyArray<U, D>>

    Cast the PyArray<T> to PyArray<U>, by allocating a new array.

    \n

    See also PyArray_CastToType.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray_f = PyArray::arange_bound(py, 2.0, 5.0, 1.0);\n\n    let pyarray_i = pyarray_f.cast::<i32>(false).unwrap();\n\n    assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]);\n});
    \n
    source

    pub fn reshape_with_order<'py, ID: IntoDimension>(\n &'py self,\n dims: ID,\n order: NPY_ORDER\n) -> PyResult<&'py PyArray<T, ID::Dim>>

    Construct a new array which has same values as self,\nbut has different dimensions specified by dims\nand a possibly different memory order specified by order.

    \n

    See also numpy.reshape and PyArray_Newshape.

    \n
    Example
    \n
    use numpy::{npyffi::NPY_ORDER, PyArray};\nuse pyo3::Python;\nuse ndarray::array;\n\nPython::with_gil(|py| {\n    let array =\n        PyArray::from_iter(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();\n\n    assert_eq!(array.readonly().as_array(), array![[0, 3, 6], [1, 4, 7], [2, 5, 8]]);\n    assert!(array.is_fortran_contiguous());\n\n    assert!(array.reshape([5]).is_err());\n});
    \n
    source

    pub fn reshape<'py, ID: IntoDimension>(\n &'py self,\n dims: ID\n) -> PyResult<&'py PyArray<T, ID::Dim>>

    Special case of reshape_with_order which keeps the memory order the same.

    \n
    source

    pub unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>

    Extends or truncates the dimensions of an array.

    \n

    This method works only on contiguous arrays.\nMissing elements will be initialized as if calling zeros.

    \n

    See also ndarray.resize and PyArray_Resize.

    \n
    Safety
    \n

    There should be no outstanding references (shared or exclusive) into the array\nas this method might re-allocate it and thereby invalidate all pointers into it.

    \n
    Example
    \n
    use numpy::prelude::*;\nuse numpy::PyArray;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::<f64, _>::zeros_bound(py, (10, 10), false);\n    assert_eq!(pyarray.shape(), [10, 10]);\n\n    unsafe {\n        pyarray.resize((100, 100)).unwrap();\n    }\n    assert_eq!(pyarray.shape(), [100, 100]);\n});
    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T: Element + AsPrimitive<f64>> PyArray<T, Ix1>

    source

    pub fn arange<'py>(py: Python<'py>, start: T, stop: T, step: T) -> &Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::arange_bound in the future

    Deprecated form of PyArray<T, Ix1>::arange_bound

    \n
    source

    pub fn arange_bound<'py>(\n py: Python<'py>,\n start: T,\n stop: T,\n step: T\n) -> Bound<'py, Self>

    Return evenly spaced values within a given interval.

    \n

    See numpy.arange for the Python API and PyArray_Arange for the C API.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 2.0, 4.0, 0.5);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[2.0, 2.5, 3.0, 3.5]);\n\n    let pyarray = PyArray::arange_bound(py, -2, 4, 3);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[-2, 1]);\n});
    \n
    ",0,"numpy::array::PyArray1"],["
    source§

    impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>

    source§

    const NAME: &'static str = "PyArray<T, D>"

    Class name.
    source§

    const MODULE: Option<&'static str> = _

    Module name, if any.
    source§

    fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

    Returns the PyTypeObject instance for this type.
    source§

    fn is_type_of_bound(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> &PyType

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn is_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_exact_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    ","PyTypeInfo","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> IntoPy<Py<PyAny>> for PyArray<T, D>

    source§

    fn into_py<'py>(self, py: Python<'py>) -> PyObject

    Performs the conversion.
    ","IntoPy>","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> AsRef<PyAny> for PyArray<T, D>

    source§

    fn as_ref(&self) -> &PyAny

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> ToPyObject for PyArray<T, D>

    source§

    fn to_object(&self, py: Python<'_>) -> PyObject

    Converts self into a Python object.
    ","ToPyObject","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> DerefToPyAny for PyArray<T, D>

    ","DerefToPyAny","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> Debug for PyArray<T, D>

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> Display for PyArray<T, D>

    source§

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

    Formats the value using the given formatter. Read more
    ","Display","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> Deref for PyArray<T, D>

    §

    type Target = PyUntypedArray

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> AsPyPointer for PyArray<T, D>

    source§

    fn as_ptr(&self) -> *mut PyObject

    Returns the underlying FFI pointer as a borrowed pointer.
    ","AsPyPointer","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> PyNativeType for PyArray<T, D>

    §

    type AsRefSource = PyArray<T, D>

    The form of this which is stored inside a Py<T> smart pointer.
    §

    fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

    Cast &self to a Borrowed smart pointer. Read more
    §

    fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.
    §

    unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

    Cast &PyAny to &Self without no type checking. Read more
    ","PyNativeType","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"]] +"numpy":[["
    source§

    impl<T, D> PyArray<T, D>

    source

    pub fn as_untyped(&self) -> &PyUntypedArray

    Access an untyped representation of this array.

    \n
    source

    pub fn to_owned(&self) -> Py<Self>

    👎Deprecated since 0.21.0: use Bound::unbind() instead

    Turn &PyArray<T,D> into Py<PyArray<T,D>>,\ni.e. a pointer into Python’s heap which is independent of the GIL lifetime.

    \n

    This method can be used to avoid lifetime annotations of function arguments\nor return values.

    \n
    §Example
    \n
    use numpy::{PyArray1, PyArrayMethods};\nuse pyo3::{Py, Python};\n\nlet array: Py<PyArray1<f64>> = Python::with_gil(|py| {\n    PyArray1::zeros_bound(py, 5, false).unbind()\n});\n\nPython::with_gil(|py| {\n    assert_eq!(array.bind(py).readonly().as_slice().unwrap(), [0.0; 5]);\n});
    \n
    source

    pub unsafe fn from_owned_ptr<'py>(\n py: Python<'py>,\n ptr: *mut PyObject\n) -> &'py Self

    Constructs a reference to a PyArray from a raw pointer to a Python object.

    \n
    §Safety
    \n

    This is a wrapper around [pyo3::FromPyPointer::from_owned_ptr_or_opt] and inherits its safety contract.

    \n
    source

    pub unsafe fn from_borrowed_ptr<'py>(\n py: Python<'py>,\n ptr: *mut PyObject\n) -> &'py Self

    Constructs a reference to a PyArray from a raw point to a Python object.

    \n
    §Safety
    \n

    This is a wrapper around [pyo3::FromPyPointer::from_borrowed_ptr_or_opt] and inherits its safety contract.

    \n
    source

    pub fn data(&self) -> *mut T

    Returns a pointer to the first element of the array.

    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T: Element, D: Dimension> PyArray<T, D>

    source

    pub fn dims(&self) -> D

    Same as shape, but returns D instead of &[usize].

    \n
    source

    pub unsafe fn new<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
    where\n ID: IntoDimension<Dim = D>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::new_bound in the future

    Deprecated form of PyArray<T, D>::new_bound

    \n
    §Safety
    \n

    Same as PyArray<T, D>::new_bound

    \n
    source

    pub unsafe fn new_bound<'py, ID>(\n py: Python<'py>,\n dims: ID,\n is_fortran: bool\n) -> Bound<'py, Self>
    where\n ID: IntoDimension<Dim = D>,

    Creates a new uninitialized NumPy array.

    \n

    If is_fortran is true, then it has Fortran/column-major order,\notherwise it has C/row-major order.

    \n
    §Safety
    \n

    The returned array will always be safe to be dropped as the elements must either\nbe trivially copyable (as indicated by <T as Element>::IS_COPY) or be pointers\ninto Python’s heap, which NumPy will automatically zero-initialize.

    \n

    However, the elements themselves will not be valid and should be initialized manually\nusing raw pointers obtained via uget_raw. Before that, all methods\nwhich produce references to the elements invoke undefined behaviour. In particular,\nzero-initialized pointers are not valid instances of PyObject.

    \n
    §Example
    \n
    use numpy::prelude::*;\nuse numpy::PyArray3;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let arr = unsafe {\n        let arr = PyArray3::<i32>::new_bound(py, [4, 5, 6], false);\n\n        for i in 0..4 {\n            for j in 0..5 {\n                for k in 0..6 {\n                    arr.uget_raw([i, j, k]).write((i * j * k) as i32);\n                }\n            }\n        }\n\n        arr\n    };\n\n    assert_eq!(arr.shape(), &[4, 5, 6]);\n});
    \n
    source

    pub unsafe fn borrow_from_array<'py, S>(\n array: &ArrayBase<S, D>,\n container: &'py PyAny\n) -> &'py Self
    where\n S: Data<Elem = T>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::borrow_from_array_bound in the future
    source

    pub unsafe fn borrow_from_array_bound<'py, S>(\n array: &ArrayBase<S, D>,\n container: Bound<'py, PyAny>\n) -> Bound<'py, Self>
    where\n S: Data<Elem = T>,

    Creates a NumPy array backed by array and ties its ownership to the Python object container.

    \n
    §Safety
    \n

    container is set as a base object of the returned array which must not be dropped until container is dropped.\nFurthermore, array must not be reallocated from the time this method is called and until container is dropped.

    \n
    §Example
    \n
    #[pyclass]\nstruct Owner {\n    array: Array1<f64>,\n}\n\n#[pymethods]\nimpl Owner {\n    #[getter]\n    fn array<'py>(this: Bound<'py, Self>) -> Bound<'py, PyArray1<f64>> {\n        let array = &this.borrow().array;\n\n        // SAFETY: The memory backing `array` will stay valid as long as this object is alive\n        // as we do not modify `array` in any way which would cause it to be reallocated.\n        unsafe { PyArray1::borrow_from_array_bound(array, this.into_any()) }\n    }\n}
    \n
    source

    pub fn zeros<'py, ID>(py: Python<'py>, dims: ID, is_fortran: bool) -> &Self
    where\n ID: IntoDimension<Dim = D>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::zeros_bound in the future

    Deprecated form of PyArray<T, D>::zeros_bound

    \n
    source

    pub fn zeros_bound<ID>(\n py: Python<'_>,\n dims: ID,\n is_fortran: bool\n) -> Bound<'_, Self>
    where\n ID: IntoDimension<Dim = D>,

    Construct a new NumPy array filled with zeros.

    \n

    If is_fortran is true, then it has Fortran/column-major order,\notherwise it has C/row-major order.

    \n

    For arrays of Python objects, this will fill the array\nwith valid pointers to zero-valued Python integer objects.

    \n

    See also numpy.zeros and PyArray_Zeros.

    \n
    §Example
    \n
    use numpy::{PyArray2, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray2::<usize>::zeros_bound(py, [2, 2], true);\n\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), [0; 4]);\n});
    \n
    source

    pub unsafe fn as_slice(&self) -> Result<&[T], NotContiguousError>

    Returns an immutable view of the internal data as a slice.

    \n
    §Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Please consider the safe alternative PyReadonlyArray::as_slice.

    \n
    source

    pub unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError>

    Returns a mutable view of the internal data as a slice.

    \n
    §Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased immutably or mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Please consider the safe alternative PyReadwriteArray::as_slice_mut.

    \n
    source

    pub fn from_owned_array<'py>(py: Python<'py>, arr: Array<T, D>) -> &'py Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_array_bound in the future
    source

    pub fn from_owned_array_bound(\n py: Python<'_>,\n arr: Array<T, D>\n) -> Bound<'_, Self>

    Constructs a NumPy from an ndarray::Array

    \n

    This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse ndarray::array;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::from_owned_array_bound(py, array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \n
    source

    pub unsafe fn get(&self, index: impl NpyIndex<Dim = D>) -> Option<&T>

    Get a reference of the specified element if the given index is valid.

    \n
    §Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Consider using safe alternatives like PyReadonlyArray::get.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 11);\n});
    \n
    source

    pub unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>

    Same as get, but returns Option<&mut T>.

    \n
    §Safety
    \n

    Calling this method is undefined behaviour if the underlying array\nis aliased immutably or mutably by other instances of PyArray\nor concurrently modified by Python or other native code.

    \n

    Consider using safe alternatives like PyReadwriteArray::get_mut.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    unsafe {\n        *pyarray.get_mut([1, 0, 3]).unwrap() = 42;\n    }\n\n    assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 42);\n});
    \n
    source

    pub unsafe fn uget<Idx>(&self, index: Idx) -> &T
    where\n Idx: NpyIndex<Dim = D>,

    Get an immutable reference of the specified element,\nwithout checking the given index.

    \n

    See NpyIndex for what types can be used as the index.

    \n
    §Safety
    \n

    Passing an invalid index is undefined behavior.\nThe element must also have been initialized and\nall other references to it is must also be shared.

    \n

    See PyReadonlyArray::get for a safe alternative.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    assert_eq!(unsafe { *pyarray.uget([1, 0, 3]) }, 11);\n});
    \n
    source

    pub unsafe fn uget_mut<Idx>(&self, index: Idx) -> &mut T
    where\n Idx: NpyIndex<Dim = D>,

    Same as uget, but returns &mut T.

    \n
    §Safety
    \n

    Passing an invalid index is undefined behavior.\nThe element must also have been initialized and\nother references to it must not exist.

    \n

    See PyReadwriteArray::get_mut for a safe alternative.

    \n
    source

    pub unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T
    where\n Idx: NpyIndex<Dim = D>,

    Same as uget, but returns *mut T.

    \n
    §Safety
    \n

    Passing an invalid index is undefined behavior.

    \n
    source

    pub fn get_owned<Idx>(&self, index: Idx) -> Option<T>
    where\n Idx: NpyIndex<Dim = D>,

    Get a copy of the specified element in the array.

    \n

    See NpyIndex for what types can be used as the index.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 16, 1).reshape([2, 2, 4]).unwrap();\n\n    assert_eq!(pyarray.get_owned([1, 0, 3]), Some(11));\n});
    \n
    source

    pub fn to_dyn(&self) -> &PyArray<T, IxDyn>

    Turn an array with fixed dimensionality into one with dynamic dimensionality.

    \n
    source

    pub fn to_vec(&self) -> Result<Vec<T>, NotContiguousError>

    Returns a copy of the internal data of the array as a Vec.

    \n

    Fails if the internal array is not contiguous. See also as_slice.

    \n
    §Example
    \n
    use numpy::PyArray2;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray= py\n        .eval(\"__import__('numpy').array([[0, 1], [2, 3]], dtype='int64')\", None, None)\n        .unwrap()\n        .downcast::<PyArray2<i64>>()\n        .unwrap();\n\n    assert_eq!(pyarray.to_vec().unwrap(), vec![0, 1, 2, 3]);\n});
    \n
    source

    pub fn from_array<'py, S>(py: Python<'py>, arr: &ArrayBase<S, D>) -> &'py Self
    where\n S: Data<Elem = T>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_array_bound in the future

    Deprecated form of PyArray<T, D>::from_array_bound

    \n
    source

    pub fn from_array_bound<'py, S>(\n py: Python<'py>,\n arr: &ArrayBase<S, D>\n) -> Bound<'py, Self>
    where\n S: Data<Elem = T>,

    Construct a NumPy array from a ndarray::ArrayBase.

    \n

    This method allocates memory in Python’s heap via the NumPy API,\nand then copies all elements of the array there.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse ndarray::array;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::from_array_bound(py, &array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \n
    source

    pub fn try_readonly(&self) -> Result<PyReadonlyArray<'_, T, D>, BorrowError>

    Get an immutable borrow of the NumPy array

    \n
    source

    pub fn readonly(&self) -> PyReadonlyArray<'_, T, D>

    Get an immutable borrow of the NumPy array

    \n
    §Panics
    \n

    Panics if the allocation backing the array is currently mutably borrowed.

    \n

    For a non-panicking variant, use try_readonly.

    \n
    source

    pub fn try_readwrite(&self) -> Result<PyReadwriteArray<'_, T, D>, BorrowError>

    Get a mutable borrow of the NumPy array

    \n
    source

    pub fn readwrite(&self) -> PyReadwriteArray<'_, T, D>

    Get a mutable borrow of the NumPy array

    \n
    §Panics
    \n

    Panics if the allocation backing the array is currently borrowed or\nif the array is flagged as not writeable.

    \n

    For a non-panicking variant, use try_readwrite.

    \n
    source

    pub unsafe fn as_array(&self) -> ArrayView<'_, T, D>

    Returns an ArrayView of the internal array.

    \n

    See also PyReadonlyArray::as_array.

    \n
    §Safety
    \n

    Calling this method invalidates all exclusive references to the internal data, e.g. &mut [T] or ArrayViewMut.

    \n
    source

    pub unsafe fn as_array_mut(&self) -> ArrayViewMut<'_, T, D>

    Returns an ArrayViewMut of the internal array.

    \n

    See also PyReadwriteArray::as_array_mut.

    \n
    §Safety
    \n

    Calling this method invalidates all other references to the internal data, e.g. ArrayView or ArrayViewMut.

    \n
    source

    pub fn as_raw_array(&self) -> RawArrayView<T, D>

    Returns the internal array as RawArrayView enabling element access via raw pointers

    \n
    source

    pub fn as_raw_array_mut(&self) -> RawArrayViewMut<T, D>

    Returns the internal array as RawArrayViewMut enabling element access via raw pointers

    \n
    source

    pub fn to_owned_array(&self) -> Array<T, D>

    Get a copy of the array as an ndarray::Array.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse ndarray::array;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 4, 1).reshape([2, 2]).unwrap();\n\n    assert_eq!(\n        pyarray.to_owned_array(),\n        array![[0, 1], [2, 3]]\n    )\n});
    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<N, D> PyArray<N, D>
    where\n N: Scalar + Element,\n D: Dimension,

    source

    pub unsafe fn try_as_matrix<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixView using the given shape and strides.

    \n

    See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

    \n
    §Safety
    \n

    Calling this method invalidates all exclusive references to the internal data, e.g. ArrayViewMut or MatrixSliceMut.

    \n
    source

    pub unsafe fn try_as_matrix_mut<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixViewMut using the given shape and strides.

    \n

    See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

    \n
    §Safety
    \n

    Calling this method invalidates all other references to the internal data, e.g. ArrayView, MatrixSlice, ArrayViewMut or MatrixSliceMut.

    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<D: Dimension> PyArray<PyObject, D>

    source

    pub fn from_owned_object_array<'py, T>(\n py: Python<'py>,\n arr: Array<Py<T>, D>\n) -> &'py Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_owned_object_array_bound in the future
    source

    pub fn from_owned_object_array_bound<T>(\n py: Python<'_>,\n arr: Array<Py<T>, D>\n) -> Bound<'_, Self>

    Construct a NumPy array containing objects stored in a ndarray::Array

    \n

    This method uses the internal Vec of the ndarray::Array as the base object of the NumPy array.

    \n
    §Example
    \n
    use ndarray::array;\nuse pyo3::{pyclass, Py, Python};\nuse numpy::{PyArray, PyArrayMethods};\n\n#[pyclass]\nstruct CustomElement {\n    foo: i32,\n    bar: f64,\n}\n\nPython::with_gil(|py| {\n    let array = array![\n        Py::new(py, CustomElement {\n            foo: 1,\n            bar: 2.0,\n        }).unwrap(),\n        Py::new(py, CustomElement {\n            foo: 3,\n            bar: 4.0,\n        }).unwrap(),\n    ];\n\n    let pyarray = PyArray::from_owned_object_array_bound(py, array);\n\n    assert!(pyarray.readonly().as_array().get(0).unwrap().as_ref(py).is_instance_of::<CustomElement>());\n});
    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T: Copy + Element> PyArray<T, Ix0>

    source

    pub fn item(&self) -> T

    Get the single element of a zero-dimensional array.

    \n

    See inner for an example.

    \n
    ",0,"numpy::array::PyArray0"],["
    source§

    impl<T: Element> PyArray<T, Ix1>

    source

    pub fn from_slice<'py>(py: Python<'py>, slice: &[T]) -> &'py Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_slice_bound in the future
    source

    pub fn from_slice_bound<'py>(py: Python<'py>, slice: &[T]) -> Bound<'py, Self>

    Construct a one-dimensional array from a slice.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let slice = &[1, 2, 3, 4, 5];\n    let pyarray = PyArray::from_slice_bound(py, slice);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> &'py Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_vec_bound in the future

    Deprecated form of PyArray<T, Ix1>::from_vec_bound

    \n
    source

    pub fn from_vec_bound<'py>(py: Python<'py>, vec: Vec<T>) -> Bound<'py, Self>

    Construct a one-dimensional array from a Vec<T>.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let vec = vec![1, 2, 3, 4, 5];\n    let pyarray = PyArray::from_vec_bound(py, vec);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_iter<'py, I>(py: Python<'py>, iter: I) -> &'py Self
    where\n I: IntoIterator<Item = T>,

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_iter_bound in the future
    source

    pub fn from_iter_bound<I>(py: Python<'_>, iter: I) -> Bound<'_, Self>
    where\n I: IntoIterator<Item = T>,

    Construct a one-dimensional array from an Iterator.

    \n

    If no reliable size_hint is available,\nthis method can allocate memory multiple times, which can hurt performance.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::from_iter_bound(py, \"abcde\".chars().map(u32::from));\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[97, 98, 99, 100, 101]);\n});
    \n
    ",0,"numpy::array::PyArray1"],["
    source§

    impl<T: Element> PyArray<T, Ix2>

    source

    pub fn from_vec2<'py>(\n py: Python<'py>,\n v: &[Vec<T>]\n) -> Result<&'py Self, FromVecError>

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_vec2_bound in the future
    source

    pub fn from_vec2_bound<'py>(\n py: Python<'py>,\n v: &[Vec<T>]\n) -> Result<Bound<'py, Self>, FromVecError>

    Construct a two-dimension array from a Vec<Vec<T>>.

    \n

    This function checks all dimensions of the inner vectors and returns\nan error if they are not all equal.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\nuse ndarray::array;\n\nPython::with_gil(|py| {\n    let vec2 = vec![vec![11, 12], vec![21, 22]];\n    let pyarray = PyArray::from_vec2_bound(py, &vec2).unwrap();\n    assert_eq!(pyarray.readonly().as_array(), array![[11, 12], [21, 22]]);\n\n    let ragged_vec2 = vec![vec![11, 12], vec![21]];\n    assert!(PyArray::from_vec2_bound(py, &ragged_vec2).is_err());\n});
    \n
    ",0,"numpy::array::PyArray2"],["
    source§

    impl<T: Element> PyArray<T, Ix3>

    source

    pub fn from_vec3<'py>(\n py: Python<'py>,\n v: &[Vec<Vec<T>>]\n) -> Result<&'py Self, FromVecError>

    👎Deprecated since 0.21.0: will be replaced by PyArray::from_vec3_bound in the future
    source

    pub fn from_vec3_bound<'py>(\n py: Python<'py>,\n v: &[Vec<Vec<T>>]\n) -> Result<Bound<'py, Self>, FromVecError>

    Construct a three-dimensional array from a Vec<Vec<Vec<T>>>.

    \n

    This function checks all dimensions of the inner vectors and returns\nan error if they are not all equal.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\nuse ndarray::array;\n\nPython::with_gil(|py| {\n    let vec3 = vec![\n        vec![vec![111, 112], vec![121, 122]],\n        vec![vec![211, 212], vec![221, 222]],\n    ];\n    let pyarray = PyArray::from_vec3_bound(py, &vec3).unwrap();\n    assert_eq!(\n        pyarray.readonly().as_array(),\n        array![[[111, 112], [121, 122]], [[211, 212], [221, 222]]]\n    );\n\n    let ragged_vec3 = vec![\n        vec![vec![111, 112], vec![121, 122]],\n        vec![vec![211], vec![221, 222]],\n    ];\n    assert!(PyArray::from_vec3_bound(py, &ragged_vec3).is_err());\n});
    \n
    ",0,"numpy::array::PyArray3"],["
    source§

    impl<T: Element, D> PyArray<T, D>

    source

    pub fn copy_to<U: Element>(&self, other: &PyArray<U, D>) -> PyResult<()>

    Copies self into other, performing a data type conversion if necessary.

    \n

    See also PyArray_CopyInto.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray_f = PyArray::arange_bound(py, 2.0, 5.0, 1.0);\n    let pyarray_i = unsafe { PyArray::<i64, _>::new_bound(py, [3], false) };\n\n    assert!(pyarray_f.copy_to(&pyarray_i).is_ok());\n\n    assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]);\n});
    \n
    source

    pub fn cast<'py, U: Element>(\n &'py self,\n is_fortran: bool\n) -> PyResult<&'py PyArray<U, D>>

    Cast the PyArray<T> to PyArray<U>, by allocating a new array.

    \n

    See also PyArray_CastToType.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray_f = PyArray::arange_bound(py, 2.0, 5.0, 1.0);\n\n    let pyarray_i = pyarray_f.cast::<i32>(false).unwrap();\n\n    assert_eq!(pyarray_i.readonly().as_slice().unwrap(), &[2, 3, 4]);\n});
    \n
    source

    pub fn reshape_with_order<'py, ID: IntoDimension>(\n &'py self,\n dims: ID,\n order: NPY_ORDER\n) -> PyResult<&'py PyArray<T, ID::Dim>>

    Construct a new array which has same values as self,\nbut has different dimensions specified by dims\nand a possibly different memory order specified by order.

    \n

    See also numpy.reshape and PyArray_Newshape.

    \n
    §Example
    \n
    use numpy::prelude::*;\nuse numpy::{npyffi::NPY_ORDER, PyArray};\nuse pyo3::Python;\nuse ndarray::array;\n\nPython::with_gil(|py| {\n    let array =\n        PyArray::from_iter_bound(py, 0..9).reshape_with_order([3, 3], NPY_ORDER::NPY_FORTRANORDER).unwrap();\n\n    assert_eq!(array.readonly().as_array(), array![[0, 3, 6], [1, 4, 7], [2, 5, 8]]);\n    assert!(array.is_fortran_contiguous());\n\n    assert!(array.reshape([5]).is_err());\n});
    \n
    source

    pub fn reshape<'py, ID: IntoDimension>(\n &'py self,\n dims: ID\n) -> PyResult<&'py PyArray<T, ID::Dim>>

    Special case of reshape_with_order which keeps the memory order the same.

    \n
    source

    pub unsafe fn resize<ID: IntoDimension>(&self, dims: ID) -> PyResult<()>

    Extends or truncates the dimensions of an array.

    \n

    This method works only on contiguous arrays.\nMissing elements will be initialized as if calling zeros.

    \n

    See also ndarray.resize and PyArray_Resize.

    \n
    §Safety
    \n

    There should be no outstanding references (shared or exclusive) into the array\nas this method might re-allocate it and thereby invalidate all pointers into it.

    \n
    §Example
    \n
    use numpy::prelude::*;\nuse numpy::PyArray;\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::<f64, _>::zeros_bound(py, (10, 10), false);\n    assert_eq!(pyarray.shape(), [10, 10]);\n\n    unsafe {\n        pyarray.resize((100, 100)).unwrap();\n    }\n    assert_eq!(pyarray.shape(), [100, 100]);\n});
    \n
    ",0,"numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T: Element + AsPrimitive<f64>> PyArray<T, Ix1>

    source

    pub fn arange<'py>(py: Python<'py>, start: T, stop: T, step: T) -> &Self

    👎Deprecated since 0.21.0: will be replaced by PyArray::arange_bound in the future

    Deprecated form of PyArray<T, Ix1>::arange_bound

    \n
    source

    pub fn arange_bound<'py>(\n py: Python<'py>,\n start: T,\n stop: T,\n step: T\n) -> Bound<'py, Self>

    Return evenly spaced values within a given interval.

    \n

    See numpy.arange for the Python API and PyArray_Arange for the C API.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 2.0, 4.0, 0.5);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[2.0, 2.5, 3.0, 3.5]);\n\n    let pyarray = PyArray::arange_bound(py, -2, 4, 3);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[-2, 1]);\n});
    \n
    ",0,"numpy::array::PyArray1"],["
    source§

    impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>

    source§

    const NAME: &'static str = "PyArray<T, D>"

    Class name.
    source§

    const MODULE: Option<&'static str> = _

    Module name, if any.
    source§

    fn type_object_raw<'py>(py: Python<'py>) -> *mut PyTypeObject

    Returns the PyTypeObject instance for this type.
    source§

    fn is_type_of_bound(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> &PyType

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn is_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_exact_type_of(object: &PyAny) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    ","PyTypeInfo","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> Debug for PyArray<T, D>

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> Display for PyArray<T, D>

    source§

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

    Formats the value using the given formatter. Read more
    ","Display","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> DerefToPyAny for PyArray<T, D>

    ","DerefToPyAny","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> AsPyPointer for PyArray<T, D>

    source§

    fn as_ptr(&self) -> *mut PyObject

    Returns the underlying FFI pointer as a borrowed pointer.
    ","AsPyPointer","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> PyNativeType for PyArray<T, D>

    §

    type AsRefSource = PyArray<T, D>

    The form of this which is stored inside a Py<T> smart pointer.
    §

    fn as_borrowed(&self) -> Borrowed<'_, '_, Self::AsRefSource>

    Cast &self to a Borrowed smart pointer. Read more
    §

    fn py(&self) -> Python<'_>

    Returns a GIL marker constrained to the lifetime of this type.
    §

    unsafe fn unchecked_downcast(obj: &PyAny) -> &Self

    Cast &PyAny to &Self without no type checking. Read more
    ","PyNativeType","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> Deref for PyArray<T, D>

    §

    type Target = PyUntypedArray

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> ToPyObject for PyArray<T, D>

    source§

    fn to_object(&self, py: Python<'_>) -> PyObject

    Converts self into a Python object.
    ","ToPyObject","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> AsRef<PyAny> for PyArray<T, D>

    source§

    fn as_ref(&self) -> &PyAny

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"],["
    source§

    impl<T, D> IntoPy<Py<PyAny>> for PyArray<T, D>

    source§

    fn into_py<'py>(self, py: Python<'py>) -> PyObject

    Performs the conversion.
    ","IntoPy>","numpy::array::PyArray0","numpy::array::PyArray1","numpy::array::PyArray2","numpy::array::PyArray3","numpy::array::PyArray4","numpy::array::PyArray5","numpy::array::PyArray6","numpy::array::PyArrayDyn"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/numpy/borrow/struct.PyReadonlyArray.js b/type.impl/numpy/borrow/struct.PyReadonlyArray.js index 6962713d8..760d7b438 100644 --- a/type.impl/numpy/borrow/struct.PyReadonlyArray.js +++ b/type.impl/numpy/borrow/struct.PyReadonlyArray.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl<'py, T, D> PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source

    pub fn as_array(&self) -> ArrayView<'_, T, D>

    Provides an immutable array view of the interior of the NumPy array.

    \n
    source

    pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

    Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

    \n
    source

    pub fn get<I>(&self, index: I) -> Option<&T>
    where\n I: NpyIndex<Dim = D>,

    Provide an immutable reference to an element of the NumPy array if the index is within bounds.

    \n
    ",0,"numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, N, D> PyReadonlyArray<'py, N, D>
    where\n N: Scalar + Element,\n D: Dimension,

    source

    pub fn try_as_matrix<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixView using the given shape and strides.

    \n

    Note that nalgebra’s types default to Fortan/column-major standard strides whereas NumPy creates C/row-major strides by default.\nFurthermore, array views created by slicing into existing arrays will often have non-standard strides.

    \n

    If you do not fully control the memory layout of a given array, e.g. at your API entry points,\nit can be useful to opt into nalgebra’s support for dynamic strides, for example

    \n\n
    use pyo3::py_run;\nuse numpy::{get_array_module, PyReadonlyArray2};\nuse nalgebra::{MatrixView, Const, Dyn};\n\n#[pyfunction]\nfn sum_standard_layout<'py>(py: Python<'py>, array: PyReadonlyArray2<'py, f64>) -> Option<f64> {\n    let matrix: Option<MatrixView<f64, Const<2>, Const<2>>> = array.try_as_matrix();\n    matrix.map(|matrix| matrix.sum())\n}\n\n#[pyfunction]\nfn sum_dynamic_strides<'py>(py: Python<'py>, array: PyReadonlyArray2<'py, f64>) -> Option<f64> {\n    let matrix: Option<MatrixView<f64, Const<2>, Const<2>, Dyn, Dyn>> = array.try_as_matrix();\n    matrix.map(|matrix| matrix.sum())\n}\n\nPython::with_gil(|py| {\n    let np = py.eval(\"__import__('numpy')\", None, None).unwrap();\n    let sum_standard_layout = wrap_pyfunction!(sum_standard_layout)(py).unwrap();\n    let sum_dynamic_strides = wrap_pyfunction!(sum_dynamic_strides)(py).unwrap();\n\n    py_run!(py, np sum_standard_layout, r\"assert sum_standard_layout(np.ones((2, 2), order='F')) == 4.\");\n    py_run!(py, np sum_standard_layout, r\"assert sum_standard_layout(np.ones((2, 2, 2))[:,:,0]) is None\");\n\n    py_run!(py, np sum_dynamic_strides, r\"assert sum_dynamic_strides(np.ones((2, 2), order='F')) == 4.\");\n    py_run!(py, np sum_dynamic_strides, r\"assert sum_dynamic_strides(np.ones((2, 2, 2))[:,:,0]) == 4.\");\n});
    \n
    ",0,"numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, N> PyReadonlyArray<'py, N, Ix1>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

    Convert this one-dimensional array into a nalgebra::DMatrixView using dynamic strides.

    \n
    Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadonlyArray1"],["
    source§

    impl<'py, N> PyReadonlyArray<'py, N, Ix2>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

    Convert this two-dimensional array into a nalgebra::DMatrixView using dynamic strides.

    \n
    Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadonlyArray2"],["
    source§

    impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadonlyArray<'py, T, D>

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    ","Drop","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn clone(&self) -> Self

    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
    ","Clone","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    §

    type Target = Bound<'py, PyArray<T, D>>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"]] +"numpy":[["
    source§

    impl<'py, T, D> PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source

    pub fn as_array(&self) -> ArrayView<'_, T, D>

    Provides an immutable array view of the interior of the NumPy array.

    \n
    source

    pub fn as_slice(&self) -> Result<&[T], NotContiguousError>

    Provide an immutable slice view of the interior of the NumPy array if it is contiguous.

    \n
    source

    pub fn get<I>(&self, index: I) -> Option<&T>
    where\n I: NpyIndex<Dim = D>,

    Provide an immutable reference to an element of the NumPy array if the index is within bounds.

    \n
    ",0,"numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, N, D> PyReadonlyArray<'py, N, D>
    where\n N: Scalar + Element,\n D: Dimension,

    source

    pub fn try_as_matrix<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixView using the given shape and strides.

    \n

    Note that nalgebra’s types default to Fortan/column-major standard strides whereas NumPy creates C/row-major strides by default.\nFurthermore, array views created by slicing into existing arrays will often have non-standard strides.

    \n

    If you do not fully control the memory layout of a given array, e.g. at your API entry points,\nit can be useful to opt into nalgebra’s support for dynamic strides, for example

    \n\n
    use pyo3::py_run;\nuse numpy::{get_array_module, PyReadonlyArray2};\nuse nalgebra::{MatrixView, Const, Dyn};\n\n#[pyfunction]\nfn sum_standard_layout<'py>(py: Python<'py>, array: PyReadonlyArray2<'py, f64>) -> Option<f64> {\n    let matrix: Option<MatrixView<f64, Const<2>, Const<2>>> = array.try_as_matrix();\n    matrix.map(|matrix| matrix.sum())\n}\n\n#[pyfunction]\nfn sum_dynamic_strides<'py>(py: Python<'py>, array: PyReadonlyArray2<'py, f64>) -> Option<f64> {\n    let matrix: Option<MatrixView<f64, Const<2>, Const<2>, Dyn, Dyn>> = array.try_as_matrix();\n    matrix.map(|matrix| matrix.sum())\n}\n\nPython::with_gil(|py| {\n    let np = py.eval(\"__import__('numpy')\", None, None).unwrap();\n    let sum_standard_layout = wrap_pyfunction!(sum_standard_layout)(py).unwrap();\n    let sum_dynamic_strides = wrap_pyfunction!(sum_dynamic_strides)(py).unwrap();\n\n    py_run!(py, np sum_standard_layout, r\"assert sum_standard_layout(np.ones((2, 2), order='F')) == 4.\");\n    py_run!(py, np sum_standard_layout, r\"assert sum_standard_layout(np.ones((2, 2, 2))[:,:,0]) is None\");\n\n    py_run!(py, np sum_dynamic_strides, r\"assert sum_dynamic_strides(np.ones((2, 2), order='F')) == 4.\");\n    py_run!(py, np sum_dynamic_strides, r\"assert sum_dynamic_strides(np.ones((2, 2, 2))[:,:,0]) == 4.\");\n});
    \n
    ",0,"numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, N> PyReadonlyArray<'py, N, Ix1>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

    Convert this one-dimensional array into a nalgebra::DMatrixView using dynamic strides.

    \n
    §Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadonlyArray1"],["
    source§

    impl<'py, N> PyReadonlyArray<'py, N, Ix2>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

    Convert this two-dimensional array into a nalgebra::DMatrixView using dynamic strides.

    \n
    §Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadonlyArray2"],["
    source§

    impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadonlyArray<'py, T, D>

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    ","Drop","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    §

    type Target = Bound<'py, PyArray<T, D>>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"],["
    source§

    impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn clone(&self) -> Self

    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
    ","Clone","numpy::borrow::PyReadonlyArray0","numpy::borrow::PyReadonlyArray1","numpy::borrow::PyReadonlyArray2","numpy::borrow::PyReadonlyArray3","numpy::borrow::PyReadonlyArray4","numpy::borrow::PyReadonlyArray5","numpy::borrow::PyReadonlyArray6","numpy::borrow::PyReadonlyArrayDyn"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/numpy/borrow/struct.PyReadwriteArray.js b/type.impl/numpy/borrow/struct.PyReadwriteArray.js index abc6f4639..825724f08 100644 --- a/type.impl/numpy/borrow/struct.PyReadwriteArray.js +++ b/type.impl/numpy/borrow/struct.PyReadwriteArray.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl<'py, T, D> PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source

    pub fn as_array_mut(&mut self) -> ArrayViewMut<'_, T, D>

    Provides a mutable array view of the interior of the NumPy array.

    \n
    source

    pub fn as_slice_mut(&mut self) -> Result<&mut [T], NotContiguousError>

    Provide a mutable slice view of the interior of the NumPy array if it is contiguous.

    \n
    source

    pub fn get_mut<I>(&mut self, index: I) -> Option<&mut T>
    where\n I: NpyIndex<Dim = D>,

    Provide a mutable reference to an element of the NumPy array if the index is within bounds.

    \n
    ",0,"numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, N, D> PyReadwriteArray<'py, N, D>
    where\n N: Scalar + Element,\n D: Dimension,

    source

    pub fn try_as_matrix_mut<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixViewMut using the given shape and strides.

    \n

    See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

    \n
    ",0,"numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, N> PyReadwriteArray<'py, N, Ix1>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix_mut(&self) -> DMatrixViewMut<'_, N, Dyn, Dyn>

    Convert this one-dimensional array into a nalgebra::DMatrixViewMut using dynamic strides.

    \n
    Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadwriteArray1"],["
    source§

    impl<'py, N> PyReadwriteArray<'py, N, Ix2>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix_mut(&self) -> DMatrixViewMut<'_, N, Dyn, Dyn>

    Convert this two-dimensional array into a nalgebra::DMatrixViewMut using dynamic strides.

    \n
    Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadwriteArray2"],["
    source§

    impl<'py, T> PyReadwriteArray<'py, T, Ix1>
    where\n T: Element,

    source

    pub fn resize<ID: IntoDimension>(self, dims: ID) -> PyResult<Self>

    Extends or truncates the dimensions of an array.

    \n

    Safe wrapper for PyArray::resize.

    \n
    Example
    \n
    use numpy::{PyArray, PyArrayMethods, PyUntypedArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 10, 1);\n    assert_eq!(pyarray.len(), 10);\n\n    let pyarray = pyarray.readwrite();\n    let pyarray = pyarray.resize(100).unwrap();\n    assert_eq!(pyarray.len(), 100);\n});
    \n
    ",0,"numpy::borrow::PyReadwriteArray1"],["
    source§

    impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    §

    type Target = PyReadonlyArray<'py, T, D>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    ","Drop","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"]] +"numpy":[["
    source§

    impl<'py, T, D> PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source

    pub fn as_array_mut(&mut self) -> ArrayViewMut<'_, T, D>

    Provides a mutable array view of the interior of the NumPy array.

    \n
    source

    pub fn as_slice_mut(&mut self) -> Result<&mut [T], NotContiguousError>

    Provide a mutable slice view of the interior of the NumPy array if it is contiguous.

    \n
    source

    pub fn get_mut<I>(&mut self, index: I) -> Option<&mut T>
    where\n I: NpyIndex<Dim = D>,

    Provide a mutable reference to an element of the NumPy array if the index is within bounds.

    \n
    ",0,"numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, N, D> PyReadwriteArray<'py, N, D>
    where\n N: Scalar + Element,\n D: Dimension,

    source

    pub fn try_as_matrix_mut<R, C, RStride, CStride>(\n &self\n) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
    where\n R: Dim,\n C: Dim,\n RStride: Dim,\n CStride: Dim,

    Try to convert this array into a nalgebra::MatrixViewMut using the given shape and strides.

    \n

    See PyReadonlyArray::try_as_matrix for a discussion of the memory layout requirements.

    \n
    ",0,"numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, N> PyReadwriteArray<'py, N, Ix1>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix_mut(&self) -> DMatrixViewMut<'_, N, Dyn, Dyn>

    Convert this one-dimensional array into a nalgebra::DMatrixViewMut using dynamic strides.

    \n
    §Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadwriteArray1"],["
    source§

    impl<'py, N> PyReadwriteArray<'py, N, Ix2>
    where\n N: Scalar + Element,

    source

    pub fn as_matrix_mut(&self) -> DMatrixViewMut<'_, N, Dyn, Dyn>

    Convert this two-dimensional array into a nalgebra::DMatrixViewMut using dynamic strides.

    \n
    §Panics
    \n

    Panics if the array has negative strides.

    \n
    ",0,"numpy::borrow::PyReadwriteArray2"],["
    source§

    impl<'py, T> PyReadwriteArray<'py, T, Ix1>
    where\n T: Element,

    source

    pub fn resize<ID: IntoDimension>(self, dims: ID) -> PyResult<Self>

    Extends or truncates the dimensions of an array.

    \n

    Safe wrapper for PyArray::resize.

    \n
    §Example
    \n
    use numpy::{PyArray, PyArrayMethods, PyUntypedArrayMethods};\nuse pyo3::Python;\n\nPython::with_gil(|py| {\n    let pyarray = PyArray::arange_bound(py, 0, 10, 1);\n    assert_eq!(pyarray.len(), 10);\n\n    let pyarray = pyarray.readwrite();\n    let pyarray = pyarray.resize(100).unwrap();\n    assert_eq!(pyarray.len(), 100);\n});
    \n
    ",0,"numpy::borrow::PyReadwriteArray1"],["
    source§

    impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>

    source§

    fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    §

    type Target = PyReadonlyArray<'py, T, D>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    ","Drop","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"],["
    source§

    impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::borrow::PyReadwriteArray0","numpy::borrow::PyReadwriteArray1","numpy::borrow::PyReadwriteArray2","numpy::borrow::PyReadwriteArray3","numpy::borrow::PyReadwriteArray4","numpy::borrow::PyReadwriteArray5","numpy::borrow::PyReadwriteArray6","numpy::borrow::PyReadwriteArrayDyn"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/numpy/npyffi/types/struct.npy_cdouble.js b/type.impl/numpy/npyffi/types/struct.npy_cdouble.js index 9dd859668..75bdca50d 100644 --- a/type.impl/numpy/npyffi/types/struct.npy_cdouble.js +++ b/type.impl/numpy/npyffi/types/struct.npy_cdouble.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl Copy for npy_cdouble

    ","Copy","numpy::npyffi::types::npy_complex128"],["
    source§

    impl Clone for npy_cdouble

    source§

    fn clone(&self) -> npy_cdouble

    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
    ","Clone","numpy::npyffi::types::npy_complex128"],["
    source§

    impl Debug for npy_cdouble

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::types::npy_complex128"]] +"numpy":[["
    source§

    impl Debug for npy_cdouble

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::types::npy_complex128"],["
    source§

    impl Copy for npy_cdouble

    ","Copy","numpy::npyffi::types::npy_complex128"],["
    source§

    impl Clone for npy_cdouble

    source§

    fn clone(&self) -> npy_cdouble

    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
    ","Clone","numpy::npyffi::types::npy_complex128"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/numpy/npyffi/types/struct.npy_cfloat.js b/type.impl/numpy/npyffi/types/struct.npy_cfloat.js index 95d68bcc0..e660527e8 100644 --- a/type.impl/numpy/npyffi/types/struct.npy_cfloat.js +++ b/type.impl/numpy/npyffi/types/struct.npy_cfloat.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl Debug for npy_cfloat

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::types::npy_complex64"],["
    source§

    impl Clone for npy_cfloat

    source§

    fn clone(&self) -> npy_cfloat

    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
    ","Clone","numpy::npyffi::types::npy_complex64"],["
    source§

    impl Copy for npy_cfloat

    ","Copy","numpy::npyffi::types::npy_complex64"]] +"numpy":[["
    source§

    impl Copy for npy_cfloat

    ","Copy","numpy::npyffi::types::npy_complex64"],["
    source§

    impl Debug for npy_cfloat

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::types::npy_complex64"],["
    source§

    impl Clone for npy_cfloat

    source§

    fn clone(&self) -> npy_cfloat

    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
    ","Clone","numpy::npyffi::types::npy_complex64"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js b/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js index 6e929e6b3..e55a42a0d 100644 --- a/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js +++ b/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl Clone for npy_clongdouble

    source§

    fn clone(&self) -> npy_clongdouble

    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
    ","Clone","numpy::npyffi::types::npy_complex256"],["
    source§

    impl Debug for npy_clongdouble

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::types::npy_complex256"],["
    source§

    impl Copy for npy_clongdouble

    ","Copy","numpy::npyffi::types::npy_complex256"]] +"numpy":[["
    source§

    impl Debug for npy_clongdouble

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::types::npy_complex256"],["
    source§

    impl Copy for npy_clongdouble

    ","Copy","numpy::npyffi::types::npy_complex256"],["
    source§

    impl Clone for npy_clongdouble

    source§

    fn clone(&self) -> npy_clongdouble

    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
    ","Clone","numpy::npyffi::types::npy_complex256"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/numpy/struct.PyArrayLike.js b/type.impl/numpy/struct.PyArrayLike.js index 61c8f0004..36269f70f 100644 --- a/type.impl/numpy/struct.PyArrayLike.js +++ b/type.impl/numpy/struct.PyArrayLike.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl<'py, T, D, C> FromPyObject<'py> for PyArrayLike<'py, T, D, C>
    where\n T: Element + 'py,\n D: Dimension + 'py,\n C: Coerce,\n Vec<T>: FromPyObject<'py>,

    source§

    fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::array_like::PyArrayLike0","numpy::array_like::PyArrayLike1","numpy::array_like::PyArrayLike2","numpy::array_like::PyArrayLike3","numpy::array_like::PyArrayLike4","numpy::array_like::PyArrayLike5","numpy::array_like::PyArrayLike6","numpy::array_like::PyArrayLikeDyn"],["
    source§

    impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where\n T: Element,\n D: Dimension,\n C: Coerce,

    §

    type Target = PyReadonlyArray<'py, T, D>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::array_like::PyArrayLike0","numpy::array_like::PyArrayLike1","numpy::array_like::PyArrayLike2","numpy::array_like::PyArrayLike3","numpy::array_like::PyArrayLike4","numpy::array_like::PyArrayLike5","numpy::array_like::PyArrayLike6","numpy::array_like::PyArrayLikeDyn"],["
    source§

    impl<'py, T, D, C> Debug for PyArrayLike<'py, T, D, C>
    where\n T: Element + Debug,\n D: Dimension + Debug,\n C: Coerce + Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::array_like::PyArrayLike0","numpy::array_like::PyArrayLike1","numpy::array_like::PyArrayLike2","numpy::array_like::PyArrayLike3","numpy::array_like::PyArrayLike4","numpy::array_like::PyArrayLike5","numpy::array_like::PyArrayLike6","numpy::array_like::PyArrayLikeDyn"]] +"numpy":[["
    source§

    impl<'py, T, D, C> FromPyObject<'py> for PyArrayLike<'py, T, D, C>
    where\n T: Element + 'py,\n D: Dimension + 'py,\n C: Coerce,\n Vec<T>: FromPyObject<'py>,

    source§

    fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

    Extracts Self from the bound smart pointer obj. Read more
    §

    fn extract(ob: &'py PyAny) -> Result<Self, PyErr>

    Extracts Self from the source GIL Ref obj. Read more
    ","FromPyObject<'py>","numpy::array_like::PyArrayLike0","numpy::array_like::PyArrayLike1","numpy::array_like::PyArrayLike2","numpy::array_like::PyArrayLike3","numpy::array_like::PyArrayLike4","numpy::array_like::PyArrayLike5","numpy::array_like::PyArrayLike6","numpy::array_like::PyArrayLikeDyn"],["
    source§

    impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where\n T: Element,\n D: Dimension,\n C: Coerce,

    §

    type Target = PyReadonlyArray<'py, T, D>

    The resulting type after dereferencing.
    source§

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

    Dereferences the value.
    ","Deref","numpy::array_like::PyArrayLike0","numpy::array_like::PyArrayLike1","numpy::array_like::PyArrayLike2","numpy::array_like::PyArrayLike3","numpy::array_like::PyArrayLike4","numpy::array_like::PyArrayLike5","numpy::array_like::PyArrayLike6","numpy::array_like::PyArrayLikeDyn"],["
    source§

    impl<'py, T, D, C> Debug for PyArrayLike<'py, T, D, C>
    where\n T: Element + Debug,\n D: Dimension + Debug,\n C: Coerce + Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","numpy::array_like::PyArrayLike0","numpy::array_like::PyArrayLike1","numpy::array_like::PyArrayLike2","numpy::array_like::PyArrayLike3","numpy::array_like::PyArrayLike4","numpy::array_like::PyArrayLike5","numpy::array_like::PyArrayLike6","numpy::array_like::PyArrayLikeDyn"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/std/primitive.f32.js b/type.impl/std/primitive.f32.js index dc7d02188..a9a894f5d 100644 --- a/type.impl/std/primitive.f32.js +++ b/type.impl/std/primitive.f32.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl Element for f32

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    ","Element","numpy::npyffi::types::npy_float","numpy::npyffi::types::npy_float32"]] +"numpy":[["
    source§

    impl Element for f32

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    ","Element","numpy::npyffi::types::npy_float","numpy::npyffi::types::npy_float32"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/std/primitive.f64.js b/type.impl/std/primitive.f64.js index 634edbe81..9227e1885 100644 --- a/type.impl/std/primitive.f64.js +++ b/type.impl/std/primitive.f64.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"numpy":[["
    source§

    impl Element for f64

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    ","Element","numpy::npyffi::types::npy_longdouble","numpy::npyffi::types::npy_double","numpy::npyffi::types::npy_float64"]] +"numpy":[["
    source§

    impl Element for f64

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn get_dtype<'py>(py: Python<'py>) -> &'py PyArrayDescr

    👎Deprecated since 0.21.0: This will be replaced by get_dtype_bound in the future.
    Returns the associated type descriptor (“dtype”) for the given element type.
    ","Element","numpy::npyffi::types::npy_longdouble","numpy::npyffi::types::npy_double","numpy::npyffi::types::npy_float64"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file