diff --git a/help.html b/help.html index 15e6fffbe..669fe51c7 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/numpy/all.html b/numpy/all.html index 0a019b7f8..b9b5d4b5d 100644 --- a/numpy/all.html +++ b/numpy/all.html @@ -1 +1 @@ -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 +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 9ba38d352..5b52eebec 100644 --- a/numpy/array/fn.get_array_module.html +++ b/numpy/array/fn.get_array_module.html @@ -1,2 +1,2 @@ -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.

+get_array_module in numpy::array - Rust
numpy::array

Function get_array_module

source
pub fn get_array_module<'py>(py: Python<'py>) -> PyResult<Bound<'py, 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 07937f187..b96adbddb 100644 --- a/numpy/array/index.html +++ b/numpy/array/index.html @@ -1,2 +1,2 @@ -numpy::array - Rust

Module numpy::array

source ·
Expand description

Safe interface for NumPy’s N-dimensional arrays

+numpy::array - Rust
numpy

Module 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 67ee47a95..c61ba6284 100644 --- a/numpy/array/struct.PyArray.html +++ b/numpy/array/struct.PyArray.html @@ -1,4 +1,4 @@ -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.

+PyArray in numpy::array - Rust
numpy::array

Struct PyArray

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

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

§Memory location

  • Allocated by Rust: Constructed via IntoPyArray or @@ -21,7 +21,7 @@

    §References

    §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.

    @@ -47,7 +47,7 @@

    §Example

Implementations§

source§

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

source

pub unsafe fn new<'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, @@ -85,7 +85,7 @@

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

👎Deprecated since 0.23.0: renamed to PyArray::new

Deprecated name for PyArray::new.

§Safety
@@ -124,7 +124,7 @@
§Example
S: Data<Elem = T>,
👎Deprecated since 0.23.0: renamed to PyArray::borrow_from_array
source

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

source

pub fn zeros<ID>(py: Python<'_>, dims: ID, 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, otherwise it has C/row-major order.

@@ -143,11 +143,11 @@
§Example
source

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

👎Deprecated since 0.23.0: renamed to PyArray::zeros

Deprecated name for PyArray::zeros.

source

pub fn from_owned_array(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.

+

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;
@@ -188,7 +188,7 @@ 
§Example
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.

+

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, types::PyAnyMethods};
@@ -220,7 +220,7 @@ 
§Example
py: Python<'_>, arr: Array<Py<T>, D>, ) -> Bound<'_, Self>
👎Deprecated since 0.23.0: renamed to PyArray::from_owned_object_array

Deprecated name for PyArray::from_owned_object_array.

-
source§

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

source

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

Construct a one-dimensional array from a slice.

+
source§

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

source

pub fn from_slice<'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;
@@ -230,8 +230,8 @@ 
§Example
let pyarray = PyArray::from_slice(py, slice); assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]); });
-
source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_slice

Deprecated name for PyArray::from_slice.

-
source

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

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

+
source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_slice

Deprecated name for PyArray::from_slice.

+
source

pub fn from_vec<'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;
@@ -241,10 +241,10 @@ 
§Example
let pyarray = PyArray::from_vec(py, vec); assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]); });
-
source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_vec

Deprecated name for PyArray::from_vec.

+
source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_vec

Deprecated name for PyArray::from_vec.

source

pub fn from_iter<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, + 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, PyArrayMethods};
@@ -255,11 +255,11 @@ 
§Example
assert_eq!(pyarray.readonly().as_slice().unwrap(), &[97, 98, 99, 100, 101]); });
source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_iter

Deprecated name for PyArray::from_iter.

+ I: IntoIterator<Item = T>,
👎Deprecated since 0.23.0: renamed to PyArray::from_iter

Deprecated name for PyArray::from_iter.

source§

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

source

pub fn from_vec2<'py>( py: Python<'py>, - v: &[Vec<T>], -) -> Result<Bound<'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
@@ -277,12 +277,12 @@
§Example
});
source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_vec2

Deprecated name for PyArray::from_vec2.

+ v: &[Vec<T>], +) -> Result<Bound<'py, Self>, FromVecError>
👎Deprecated since 0.23.0: renamed to PyArray::from_vec2

Deprecated name for PyArray::from_vec2.

source§

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

source

pub fn from_vec3<'py>( py: Python<'py>, - v: &[Vec<Vec<T>>], -) -> Result<Bound<'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
@@ -309,9 +309,9 @@
§Example
});
source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_vec3

Deprecated name for PyArray::from_vec3.

-
source§

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

source

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

👎Deprecated since 0.23.0: renamed to PyArray::from_vec3

Deprecated name for PyArray::from_vec3.

+
source§

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

source

pub fn arange<'py>( py: Python<'py>, start: T, stop: T, @@ -335,21 +335,21 @@

§Example
stop: T, step: T, ) -> Bound<'py, Self>
👎Deprecated since 0.23.0: renamed to PyArray::arange

Deprecated name for PyArray::arange.

-

Trait Implementations§

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(ob: &Bound<'_, PyAny>) -> bool

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

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

Returns the safe abstraction over the type object.
§

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

👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
Deprecated name for [PyTypeInfo::type_object].
§

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

👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
Deprecated name for [PyTypeInfo::is_type_of].
§

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

Checks if object is an instance of this type.
§

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

👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
Deprecated name for [PyTypeInfo::is_exact_type_of].
source§

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

Auto Trait Implementations§

§

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

§

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 - T: Unpin, - D: Unpin,

§

impl<T, D> UnwindSafe for PyArray<T, D>
where - T: UnwindSafe, - D: 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<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(ob: &Bound<'_, PyAny>) -> bool

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

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

Returns the safe abstraction over the type object.
§

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

👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
Deprecated name for [PyTypeInfo::type_object].
§

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

👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
Deprecated name for [PyTypeInfo::is_type_of].
§

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

Checks if object is an instance of this type.
§

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

👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
Deprecated name for [PyTypeInfo::is_exact_type_of].
source§

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

Auto Trait Implementations§

§

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

§

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 + T: Unpin, + D: Unpin,

§

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

§

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

source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
\ 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

source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
\ No newline at end of file diff --git a/numpy/array/trait.PyArray0Methods.html b/numpy/array/trait.PyArray0Methods.html index f6874d4a2..109a20fb2 100644 --- a/numpy/array/trait.PyArray0Methods.html +++ b/numpy/array/trait.PyArray0Methods.html @@ -1,9 +1,9 @@ -PyArray0Methods in numpy::array - Rust

Trait numpy::array::PyArray0Methods

source ·
pub trait PyArray0Methods<'py, T>: PyArrayMethods<'py, T, Ix0> {
+PyArray0Methods in numpy::array - Rust
numpy::array

Trait PyArray0Methods

source
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.

+ 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 90ccbff0a..998126fcd 100644 --- a/numpy/array/trait.PyArrayMethods.html +++ b/numpy/array/trait.PyArrayMethods.html @@ -1,27 +1,27 @@ -PyArrayMethods in numpy::array - Rust

Trait numpy::array::PyArrayMethods

source ·
pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
+PyArrayMethods in numpy::array - Rust
numpy::array

Trait PyArrayMethods

source
pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
 
Show 31 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 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_dyn(&self) -> &Bound<'py, PyArray<T, IxDyn>> where T: Element, D: Dimension; - fn to_vec(&self) -> Result<Vec<T>, NotContiguousError> + fn to_vec(&self) -> Result<Vec<T>, NotContiguousError> 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> @@ -42,16 +42,16 @@ 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 permute<ID: IntoDimension>( &self, - axes: Option<ID>, + axes: Option<ID>, ) -> PyResult<Bound<'py, PyArray<T, D>>> where T: Element; fn reshape_with_order<ID: IntoDimension>( @@ -60,11 +60,11 @@ order: NPY_ORDER, ) -> PyResult<Bound<'py, PyArray<T, ID::Dim>>> where T: Element; - unsafe fn resize<ID: IntoDimension>(&self, newshape: ID) -> PyResult<()> + unsafe fn resize<ID: IntoDimension>(&self, newshape: 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, @@ -73,7 +73,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, @@ -84,21 +84,21 @@ // 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> { ... } @@ -117,8 +117,8 @@ 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 +

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
@@ -135,7 +135,7 @@
§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
@@ -156,7 +156,7 @@
§Example
assert_eq!(unsafe { *pyarray.get([1, 0, 3]).unwrap() }, 42); });
-
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.

@@ -173,9 +173,9 @@
§Example
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 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
use numpy::{PyArray2, PyArrayMethods};
@@ -188,10 +188,10 @@ 
§Example
assert_eq!(pyarray.to_vec()?, vec![0, 1, 2, 3]); })
-
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 @@ -228,7 +228,7 @@
§Example
array![[0, 1], [2, 3]] ) });
-

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
@@ -245,7 +245,7 @@
§Example
});
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.

@@ -262,7 +262,7 @@
§Example
});
source

fn permute<ID: IntoDimension>( &self, - axes: Option<ID>, + axes: Option<ID>, ) -> PyResult<Bound<'py, PyArray<T, D>>>
where T: Element,

A view of self with a different order of axes determined by axes.

If axes is None, the order of axes is reversed which corresponds to the standard matrix transpose.

@@ -304,7 +304,7 @@
§Example
assert!(array.reshape([5]).is_err()); });
-
source

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

source

unsafe fn resize<ID: IntoDimension>(&self, newshape: 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.

@@ -328,7 +328,7 @@
§Example
});
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, @@ -339,7 +339,7 @@
§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>( &self, -) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>>
where +) -> Option<MatrixViewMut<'_, T, R, C, RStride, CStride>>
where T: Scalar + Element, D: Dimension, R: Dim, @@ -350,7 +350,7 @@
§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 D: Dimension,

Same as [shape][PyUntypedArray::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
@@ -358,7 +358,7 @@
§Safety
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
@@ -366,7 +366,7 @@
§Safety
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, @@ -386,7 +386,7 @@

§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.

@@ -395,7 +395,7 @@
§Safety
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.

@@ -421,18 +421,18 @@
§Panics
shape: 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 get_owned<Idx>(&self, index: Idx) -> Option<T>
where + D: Dimension,

source§

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

source§

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

source§

fn to_vec(&self) -> Result<Vec<T>, NotContiguousError>
where + Idx: NpyIndex<Dim = D>,

source§

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

source§

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

source§

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

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 T: Element, @@ -444,23 +444,23 @@
§Panics
T: Element, D: Dimension,

source§

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

source§

fn copy_to<U: Element>(&self, other: &Bound<'py, PyArray<U, D>>) -> PyResult<()>
where + 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 permute<ID: IntoDimension>( &self, - axes: Option<ID>, + axes: Option<ID>, ) -> PyResult<Bound<'py, PyArray<T, D>>>

source§

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

source§

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

source§

unsafe fn resize<ID: IntoDimension>(&self, newshape: 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, @@ -468,7 +468,7 @@
§Panics
RStride: Dim, 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 908033a87..e59f7fb6d 100644 --- a/numpy/array/type.PyArray0.html +++ b/numpy/array/type.PyArray0.html @@ -1,2 +1,2 @@ -PyArray0 in numpy::array - Rust

Type Alias numpy::array::PyArray0

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

Zero-dimensional array.

+PyArray0 in numpy::array - Rust
numpy::array

Type Alias 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 ede34863e..e2bd07dad 100644 --- a/numpy/array/type.PyArray1.html +++ b/numpy/array/type.PyArray1.html @@ -1,2 +1,2 @@ -PyArray1 in numpy::array - Rust

Type Alias numpy::array::PyArray1

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

One-dimensional array.

+PyArray1 in numpy::array - Rust
numpy::array

Type Alias 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 05e11de8b..1445cf589 100644 --- a/numpy/array/type.PyArray2.html +++ b/numpy/array/type.PyArray2.html @@ -1,2 +1,2 @@ -PyArray2 in numpy::array - Rust

Type Alias numpy::array::PyArray2

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

Two-dimensional array.

+PyArray2 in numpy::array - Rust
numpy::array

Type Alias 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 379203aa8..9c1351bef 100644 --- a/numpy/array/type.PyArray3.html +++ b/numpy/array/type.PyArray3.html @@ -1,2 +1,2 @@ -PyArray3 in numpy::array - Rust

Type Alias numpy::array::PyArray3

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

Three-dimensional array.

+PyArray3 in numpy::array - Rust
numpy::array

Type Alias 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 cad7461ad..b6f88a739 100644 --- a/numpy/array/type.PyArray4.html +++ b/numpy/array/type.PyArray4.html @@ -1,2 +1,2 @@ -PyArray4 in numpy::array - Rust

Type Alias numpy::array::PyArray4

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

Four-dimensional array.

+PyArray4 in numpy::array - Rust
numpy::array

Type Alias 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 472ba2a53..ebbbe9583 100644 --- a/numpy/array/type.PyArray5.html +++ b/numpy/array/type.PyArray5.html @@ -1,2 +1,2 @@ -PyArray5 in numpy::array - Rust

Type Alias numpy::array::PyArray5

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

Five-dimensional array.

+PyArray5 in numpy::array - Rust
numpy::array

Type Alias 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 2dde00825..6601d5798 100644 --- a/numpy/array/type.PyArray6.html +++ b/numpy/array/type.PyArray6.html @@ -1,2 +1,2 @@ -PyArray6 in numpy::array - Rust

Type Alias numpy::array::PyArray6

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

Six-dimensional array.

+PyArray6 in numpy::array - Rust
numpy::array

Type Alias 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 7f744bc5b..9c8dd7f26 100644 --- a/numpy/array/type.PyArrayDyn.html +++ b/numpy/array/type.PyArrayDyn.html @@ -1,2 +1,2 @@ -PyArrayDyn in numpy::array - Rust

Type Alias numpy::array::PyArrayDyn

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

Dynamic-dimensional array.

+PyArrayDyn in numpy::array - Rust
numpy::array

Type Alias 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 bc9a2f408..988277fe2 100644 --- a/numpy/borrow/index.html +++ b/numpy/borrow/index.html @@ -1,4 +1,4 @@ -numpy::borrow - Rust

Module numpy::borrow

source ·
Expand description

Types to safely create references into NumPy arrays

+numpy::borrow - Rust
numpy

Module 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.

diff --git a/numpy/borrow/struct.PyReadonlyArray.html b/numpy/borrow/struct.PyReadonlyArray.html index f170580d5..2b9be88e4 100644 --- a/numpy/borrow/struct.PyReadonlyArray.html +++ b/numpy/borrow/struct.PyReadonlyArray.html @@ -1,4 +1,4 @@ -PyReadonlyArray in numpy::borrow - Rust

Struct numpy::borrow::PyReadonlyArray

source ·
pub struct PyReadonlyArray<'py, T, D>
where +PyReadonlyArray in numpy::borrow - Rust
numpy::borrow

Struct PyReadonlyArray

source
pub struct PyReadonlyArray<'py, T, D>
where T: Element, D: Dimension,
{ /* private fields */ }
Expand description

Read-only borrow of an array.

An instance of this type ensures that there are no instances of PyReadwriteArray, @@ -7,14 +7,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, @@ -59,7 +59,7 @@
§Panics
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 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.

@@ -98,17 +98,17 @@
§Examples
§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.

+

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};
 
@@ -158,7 +158,7 @@ 
assert!(obj.as_super().pyrepr().is_ok()); })

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.

+

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 @@ -167,33 +167,33 @@

§Safety

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.

-

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,

source§

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,

source§

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, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
where + D: Dimension,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
where T: Element, - D: Dimension,

source§

fn from(value: PyReadwriteArray<'py, T, D>) -> Self

Converts to this type from the input type.
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

Auto Trait Implementations§

§

impl<'py, T, D> Freeze for PyReadonlyArray<'py, T, D>

§

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 - T: Unpin, - D: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
where - T: UnwindSafe, - D: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ D: Dimension,

source§

fn from(value: PyReadwriteArray<'py, T, D>) -> Self

Converts to this type from the input type.
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

Auto Trait Implementations§

§

impl<'py, T, D> Freeze for PyReadonlyArray<'py, T, D>

§

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 + T: Unpin, + D: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
where + T: UnwindSafe, + D: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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: 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).

+ 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

source§

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,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
\ 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,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
\ No newline at end of file diff --git a/numpy/borrow/struct.PyReadwriteArray.html b/numpy/borrow/struct.PyReadwriteArray.html index bd265b5c2..dd1df0e90 100644 --- a/numpy/borrow/struct.PyReadwriteArray.html +++ b/numpy/borrow/struct.PyReadwriteArray.html @@ -1,4 +1,4 @@ -PyReadwriteArray in numpy::borrow - Rust

Struct numpy::borrow::PyReadwriteArray

source ·
pub struct PyReadwriteArray<'py, T, D>
where +PyReadwriteArray in numpy::borrow - Rust
numpy::borrow

Struct PyReadwriteArray

source
pub struct PyReadwriteArray<'py, T, D>
where T: Element, D: Dimension,
{ /* private fields */ }
Expand description

Read-write borrow of an array.

An instance of this type ensures that there are no instances of PyReadonlyArray and no other instances of PyReadwriteArray, @@ -7,8 +7,8 @@

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

pub fn make_nonwriteable(self) -> PyReadonlyArray<'py, T, D>

Clear the WRITEABLE flag from the underlying NumPy array.

Calling this will prevent any further PyReadwriteArrays from being taken out. Python @@ -18,7 +18,7 @@ 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, @@ -47,13 +47,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, @@ -96,7 +96,7 @@
§Panics

source

pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

Convert this two-dimensional array into a nalgebra::DMatrixView using dynamic strides.

§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.

@@ -135,17 +135,17 @@
§Examples
§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.

+

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};
 
@@ -195,7 +195,7 @@ 
assert!(obj.as_super().pyrepr().is_ok()); })

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.

+

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 @@ -204,29 +204,29 @@

§Safety

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.

-

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,

source§

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,

source§

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, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
where + D: Dimension,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
where T: Element, - D: Dimension,

source§

fn from(value: PyReadwriteArray<'py, T, D>) -> Self

Converts to this type from the input type.
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

Auto Trait Implementations§

§

impl<'py, T, D> Freeze for PyReadwriteArray<'py, T, D>

§

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 - T: Unpin, - D: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
where - T: UnwindSafe, - D: 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 from(value: PyReadwriteArray<'py, T, D>) -> Self

Converts to this type from the input type.
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

Auto Trait Implementations§

§

impl<'py, T, D> Freeze for PyReadwriteArray<'py, T, D>

§

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 + T: Unpin, + D: Unpin,

§

impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
where + T: UnwindSafe, + D: 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: 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).

+ 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

source§

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
\ 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>,

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
\ No newline at end of file diff --git a/numpy/borrow/type.PyReadonlyArray0.html b/numpy/borrow/type.PyReadonlyArray0.html index be28c2013..6a2d03733 100644 --- a/numpy/borrow/type.PyReadonlyArray0.html +++ b/numpy/borrow/type.PyReadonlyArray0.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArray0 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 7cb32b91e..310748ca9 100644 --- a/numpy/borrow/type.PyReadonlyArray1.html +++ b/numpy/borrow/type.PyReadonlyArray1.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArray1 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 bca89d1bb..b5ef5874a 100644 --- a/numpy/borrow/type.PyReadonlyArray2.html +++ b/numpy/borrow/type.PyReadonlyArray2.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArray2 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 079e1b58b..8a61108de 100644 --- a/numpy/borrow/type.PyReadonlyArray3.html +++ b/numpy/borrow/type.PyReadonlyArray3.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArray3 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 bbbe24208..831101d66 100644 --- a/numpy/borrow/type.PyReadonlyArray4.html +++ b/numpy/borrow/type.PyReadonlyArray4.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArray4 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 408f45dcf..b6f957aea 100644 --- a/numpy/borrow/type.PyReadonlyArray5.html +++ b/numpy/borrow/type.PyReadonlyArray5.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArray5 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 6d44e29ea..631f74ce6 100644 --- a/numpy/borrow/type.PyReadonlyArray6.html +++ b/numpy/borrow/type.PyReadonlyArray6.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArray6 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 2bb9a67dd..ce06eb268 100644 --- a/numpy/borrow/type.PyReadonlyArrayDyn.html +++ b/numpy/borrow/type.PyReadonlyArrayDyn.html @@ -1,2 +1,2 @@ -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.

+PyReadonlyArrayDyn in numpy::borrow - Rust
numpy::borrow

Type Alias 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 1dceba787..08c0f574a 100644 --- a/numpy/borrow/type.PyReadwriteArray0.html +++ b/numpy/borrow/type.PyReadwriteArray0.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArray0 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 bc1357e6c..79da1077e 100644 --- a/numpy/borrow/type.PyReadwriteArray1.html +++ b/numpy/borrow/type.PyReadwriteArray1.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArray1 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 66704096b..e6adcfd12 100644 --- a/numpy/borrow/type.PyReadwriteArray2.html +++ b/numpy/borrow/type.PyReadwriteArray2.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArray2 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 3e174cece..506a12320 100644 --- a/numpy/borrow/type.PyReadwriteArray3.html +++ b/numpy/borrow/type.PyReadwriteArray3.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArray3 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 8afb62c9e..4752251ae 100644 --- a/numpy/borrow/type.PyReadwriteArray4.html +++ b/numpy/borrow/type.PyReadwriteArray4.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArray4 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 8f2925291..aaa4f7909 100644 --- a/numpy/borrow/type.PyReadwriteArray5.html +++ b/numpy/borrow/type.PyReadwriteArray5.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArray5 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 9a1fcce92..0fd65fd39 100644 --- a/numpy/borrow/type.PyReadwriteArray6.html +++ b/numpy/borrow/type.PyReadwriteArray6.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArray6 in numpy::borrow - Rust
numpy::borrow

Type Alias 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 06a320ad1..b6a563754 100644 --- a/numpy/borrow/type.PyReadwriteArrayDyn.html +++ b/numpy/borrow/type.PyReadwriteArrayDyn.html @@ -1,2 +1,2 @@ -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.

+PyReadwriteArrayDyn in numpy::borrow - Rust
numpy::borrow

Type Alias 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 1bcef214f..4c618ba53 100644 --- a/numpy/convert/index.html +++ b/numpy/convert/index.html @@ -1,2 +1,2 @@ -numpy::convert - Rust

Module numpy::convert

source ·
Expand description

Defines conversion traits between Rust types and NumPy data types.

+numpy::convert - Rust
numpy

Module 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 ee71fed88..e006942be 100644 --- a/numpy/convert/trait.IntoPyArray.html +++ b/numpy/convert/trait.IntoPyArray.html @@ -1,4 +1,4 @@ -IntoPyArray in numpy::convert - Rust

Trait numpy::convert::IntoPyArray

source ·
pub trait IntoPyArray: Sized {
+IntoPyArray in numpy::convert - Rust
numpy::convert

Trait IntoPyArray

source
pub trait IntoPyArray: Sized {
     type Item: Element;
     type Dim: Dimension;
 
@@ -40,15 +40,15 @@ 

§Example

self, py: Python<'py>, ) -> Bound<'py, PyArray<Self::Item, Self::Dim>>
👎Deprecated since 0.23.0: renamed to IntoPyArray::into_pyarray

Deprecated name for IntoPyArray::into_pyarray.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A, D> IntoPyArray for ArrayBase<OwnedRepr<A>, D>
where +

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,

source§

type Item = A

source§

type Dim = D

source§

fn into_pyarray<'py>( self, py: Python<'py>, -) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

source§

impl<T: Element> IntoPyArray for Box<[T]>

source§

type Item = T

source§

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

source§

type Item = T

source§

type Dim = Dim<[usize; 1]>

source§

fn into_pyarray<'py>( self, py: Python<'py>, -) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

source§

impl<T: Element> IntoPyArray for Vec<T>

source§

type Item = T

source§

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>

source§

type Item = T

source§

type Dim = Dim<[usize; 1]>

source§

fn into_pyarray<'py>( self, py: Python<'py>, -) -> Bound<'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 e92279af3..a7f9efc65 100644 --- a/numpy/convert/trait.NpyIndex.html +++ b/numpy/convert/trait.NpyIndex.html @@ -1,4 +1,4 @@ -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
numpy::convert

Trait 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. @@ -8,4 +8,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 8b580c74a..ac5622555 100644 --- a/numpy/convert/trait.ToNpyDims.html +++ b/numpy/convert/trait.ToNpyDims.html @@ -1,3 +1,3 @@ -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
    numpy::convert

    Trait 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 aae96d04b..bf9a6acf6 100644 --- a/numpy/convert/trait.ToPyArray.html +++ b/numpy/convert/trait.ToPyArray.html @@ -1,4 +1,4 @@ -ToPyArray in numpy::convert - Rust

    Trait numpy::convert::ToPyArray

    source ·
    pub trait ToPyArray {
    +ToPyArray in numpy::convert - Rust
    numpy::convert

    Trait ToPyArray

    source
    pub trait ToPyArray {
         type Item: Element;
         type Dim: Dimension;
     
    @@ -57,13 +57,13 @@ 

    §Examples

    py: Python<'py>, ) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

    Note that the NumPy array always has Fortran memory layout matching the memory layout used by nalgebra.

    -
    source§

    type Item = N

    source§

    type Dim = Dim<[usize; 2]>

    source§

    impl<S, D, A> ToPyArray for ArrayBase<S, D>
    where +

    source§

    type Item = N

    source§

    type Dim = Dim<[usize; 2]>

    source§

    impl<S, D, A> ToPyArray for ArrayBase<S, D>
    where S: Data<Elem = A>, D: Dimension, A: Element,

    source§

    type Item = A

    source§

    type Dim = D

    source§

    fn to_pyarray<'py>( &self, py: Python<'py>, -) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

    source§

    impl<T: Element> ToPyArray for [T]

    source§

    type Item = T

    source§

    type Dim = Dim<[usize; 1]>

    source§

    fn to_pyarray<'py>( +) -> Bound<'py, PyArray<Self::Item, Self::Dim>>

    source§

    impl<T: Element> ToPyArray for [T]

    source§

    type Item = T

    source§

    type Dim = Dim<[usize; 1]>

    source§

    fn to_pyarray<'py>( &self, py: Python<'py>, -) -> Bound<'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 17f48d8e5..2620e9899 100644 --- a/numpy/datetime/index.html +++ b/numpy/datetime/index.html @@ -1,4 +1,4 @@ -numpy::datetime - Rust

    Module numpy::datetime

    source ·
    Expand description

    Support datetimes and timedeltas

    +numpy::datetime - Rust
    numpy

    Module 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. diff --git a/numpy/datetime/struct.Datetime.html b/numpy/datetime/struct.Datetime.html index 006fbf7fb..72bca3fa6 100644 --- a/numpy/datetime/struct.Datetime.html +++ b/numpy/datetime/struct.Datetime.html @@ -1,34 +1,34 @@ -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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( +Datetime in numpy::datetime - Rust
    numpy::datetime

    Struct 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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Self, D>, ) -> Array<Self, D>
    where - D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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

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

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

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

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

    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

    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

    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

    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> Freeze for Datetime<U>

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    + D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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,

    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

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

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

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

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

    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

    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

    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

    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> Freeze for Datetime<U>

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 998ba2a01..64203f7eb 100644 --- a/numpy/datetime/struct.Timedelta.html +++ b/numpy/datetime/struct.Timedelta.html @@ -1,34 +1,34 @@ -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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( +Timedelta in numpy::datetime - Rust
    numpy::datetime

    Struct 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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Self, D>, ) -> Array<Self, D>
    where - D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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

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

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

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

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

    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

    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

    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

    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> Freeze for Timedelta<U>

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    + D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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,

    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

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

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

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

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

    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

    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

    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

    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> Freeze for Timedelta<U>

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 2e6f7be65..af3386ac1 100644 --- a/numpy/datetime/trait.Unit.html +++ b/numpy/datetime/trait.Unit.html @@ -1,16 +1,16 @@ -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
    numpy::datetime

    Trait 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 c9a1f5ee1..a17f50148 100644 --- a/numpy/datetime/units/index.html +++ b/numpy/datetime/units/index.html @@ -1,2 +1,2 @@ -numpy::datetime::units - Rust

    Module numpy::datetime::units

    source ·
    Expand description

    Predefined implementors of the Unit trait

    +numpy::datetime::units - Rust
    numpy::datetime

    Module units

    source
    Expand description

    Predefined implementors of the Unit trait

    Structs§

    \ No newline at end of file diff --git a/numpy/datetime/units/struct.Attoseconds.html b/numpy/datetime/units/struct.Attoseconds.html index a8c16848e..0e14782b4 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

    Struct numpy::datetime::units::Attoseconds

    source ·
    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Attoseconds in numpy::datetime::units - Rust
    numpy::datetime::units

    Struct Attoseconds

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Attoseconds

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 6cecb3680..18c7568d4 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

    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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Days

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Days in numpy::datetime::units - Rust
    numpy::datetime::units

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Days

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Days

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 5ddb43e81..695cd0d96 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

    Struct numpy::datetime::units::Femtoseconds

    source ·
    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Femtoseconds in numpy::datetime::units - Rust
    numpy::datetime::units

    Struct Femtoseconds

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Femtoseconds

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 e70e1a445..b36db0e96 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

    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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Hours

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Hours in numpy::datetime::units - Rust
    numpy::datetime::units

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Hours

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Hours

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 69dd47903..9cc491737 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

    Struct numpy::datetime::units::Microseconds

    source ·
    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Microseconds in numpy::datetime::units - Rust
    numpy::datetime::units

    Struct Microseconds

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Microseconds

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 3814e013d..eebb6938f 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

    Struct numpy::datetime::units::Milliseconds

    source ·
    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Milliseconds in numpy::datetime::units - Rust
    numpy::datetime::units

    Struct Milliseconds

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Milliseconds

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 92848d90e..1511704bf 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

    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Minutes in numpy::datetime::units - Rust
    numpy::datetime::units

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Minutes

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 f201d05a8..37e6080bb 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

    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

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

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

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

    impl 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

    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

    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

    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

    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§

    §

    impl Freeze for Months

    §

    impl RefUnwindSafe for Months

    §

    impl Send for Months

    §

    impl Sync for Months

    §

    impl Unpin for Months

    §

    impl UnwindSafe for Months

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Months in numpy::datetime::units - Rust
    numpy::datetime::units

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Months

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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§

    §

    impl Freeze for Months

    §

    impl RefUnwindSafe for Months

    §

    impl Send for Months

    §

    impl Sync for Months

    §

    impl Unpin for Months

    §

    impl UnwindSafe for Months

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

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

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 3534f8621..dc113e2bd 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

    Struct numpy::datetime::units::Nanoseconds

    source ·
    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Nanoseconds in numpy::datetime::units - Rust
    numpy::datetime::units

    Struct Nanoseconds

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Nanoseconds

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 6893f451a..d4cd369b6 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

    Struct numpy::datetime::units::Picoseconds

    source ·
    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Picoseconds in numpy::datetime::units - Rust
    numpy::datetime::units

    Struct Picoseconds

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Picoseconds

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 4f99d4420..0d99be42a 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

    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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Seconds in numpy::datetime::units - Rust
    numpy::datetime::units

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Seconds

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 8e9d142ad..2412a6ac3 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

    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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Weeks

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Weeks in numpy::datetime::units - Rust
    numpy::datetime::units

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Weeks

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Weeks

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 86dea6ea0..1f2a65fee 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

    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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Years

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +Years in numpy::datetime::units - Rust
    numpy::datetime::units

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

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Years

    source§

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

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

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

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

    impl 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

    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

    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

    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

    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 Freeze for Years

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

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

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    source§

    impl<T> 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 5ba77dd85..bfd833204 100644 --- a/numpy/enum.BorrowError.html +++ b/numpy/enum.BorrowError.html @@ -1,21 +1,21 @@ -BorrowError in numpy - Rust

    Enum numpy::BorrowError

    source ·
    #[non_exhaustive]
    pub enum BorrowError { +BorrowError in numpy - Rust
    numpy

    Enum 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)>

    Returns 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)>

    Returns 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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    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 06dd57699..f24f947c0 100644 --- a/numpy/fn.Ix1.html +++ b/numpy/fn.Ix1.html @@ -1,2 +1,2 @@ -Ix1 in numpy - Rust

    Function numpy::Ix1

    source ·
    pub const fn Ix1(i0: usize) -> Dim<[usize; 1]>
    Expand description

    Create a one-dimensional index

    +Ix1 in numpy - Rust
    numpy

    Function Ix1

    source
    pub const 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 6f79f5b0f..1b9c7688e 100644 --- a/numpy/fn.Ix2.html +++ b/numpy/fn.Ix2.html @@ -1,2 +1,2 @@ -Ix2 in numpy - Rust

    Function numpy::Ix2

    source ·
    pub const fn Ix2(i0: usize, i1: usize) -> Dim<[usize; 2]>
    Expand description

    Create a two-dimensional index

    +Ix2 in numpy - Rust
    numpy

    Function Ix2

    source
    pub const 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 3e505ed0f..c70462353 100644 --- a/numpy/fn.Ix3.html +++ b/numpy/fn.Ix3.html @@ -1,2 +1,2 @@ -Ix3 in numpy - Rust

    Function numpy::Ix3

    source ·
    pub const fn Ix3(i0: usize, i1: usize, i2: usize) -> Dim<[usize; 3]>
    Expand description

    Create a three-dimensional index

    +Ix3 in numpy - Rust
    numpy

    Function Ix3

    source
    pub const 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 1ce8ce7c4..05efcd40f 100644 --- a/numpy/fn.Ix4.html +++ b/numpy/fn.Ix4.html @@ -1,2 +1,2 @@ -Ix4 in numpy - Rust

    Function numpy::Ix4

    source ·
    pub const fn Ix4(i0: usize, i1: usize, i2: usize, i3: usize) -> Dim<[usize; 4]>
    Expand description

    Create a four-dimensional index

    +Ix4 in numpy - Rust
    numpy

    Function Ix4

    source
    pub const 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 869d9d037..98b7cb869 100644 --- a/numpy/fn.Ix5.html +++ b/numpy/fn.Ix5.html @@ -1,8 +1,8 @@ -Ix5 in numpy - Rust

    Function numpy::Ix5

    source ·
    pub const fn Ix5(
    -    i0: usize,
    -    i1: usize,
    -    i2: usize,
    -    i3: usize,
    -    i4: usize,
    -) -> Dim<[usize; 5]>
    Expand description

    Create a five-dimensional index

    +Ix5 in numpy - Rust
    numpy

    Function Ix5

    source
    pub const fn Ix5(
    +    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 9c0b9108e..f17445f3c 100644 --- a/numpy/fn.Ix6.html +++ b/numpy/fn.Ix6.html @@ -1,9 +1,9 @@ -Ix6 in numpy - Rust

    Function numpy::Ix6

    source ·
    pub const fn Ix6(
    -    i0: usize,
    -    i1: usize,
    -    i2: usize,
    -    i3: usize,
    -    i4: usize,
    -    i5: usize,
    -) -> Dim<[usize; 6]>
    Expand description

    Create a six-dimensional index

    +Ix6 in numpy - Rust
    numpy

    Function Ix6

    source
    pub const fn Ix6(
    +    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 8db1ec9ff..8ea56169c 100644 --- a/numpy/fn.IxDyn.html +++ b/numpy/fn.IxDyn.html @@ -1,2 +1,2 @@ -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
    numpy

    Function 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 5b8d94c6c..bdfa25450 100644 --- a/numpy/fn.dot.html +++ b/numpy/fn.dot.html @@ -1,4 +1,4 @@ -dot in numpy - Rust

    Function numpy::dot

    source ·
    pub fn dot<'py, T, DIN1, DIN2, OUT>(
    +dot in numpy - Rust
    numpy

    Function dot

    source
    pub fn dot<'py, T, DIN1, DIN2, OUT>(
         array1: &Bound<'py, PyArray<T, DIN1>>,
         array2: &Bound<'py, PyArray<T, DIN2>>,
     ) -> PyResult<OUT>
    where diff --git a/numpy/fn.dot_bound.html b/numpy/fn.dot_bound.html index 02c9b097c..29927c1a9 100644 --- a/numpy/fn.dot_bound.html +++ b/numpy/fn.dot_bound.html @@ -1,4 +1,4 @@ -dot_bound in numpy - Rust

    Function numpy::dot_bound

    source ·
    pub fn dot_bound<'py, T, DIN1, DIN2, OUT>(
    +dot_bound in numpy - Rust
    numpy

    Function dot_bound

    source
    pub fn dot_bound<'py, T, DIN1, DIN2, OUT>(
         array1: &Bound<'py, PyArray<T, DIN1>>,
         array2: &Bound<'py, PyArray<T, DIN2>>,
     ) -> PyResult<OUT>
    where diff --git a/numpy/fn.dtype.html b/numpy/fn.dtype.html index 9e397024e..36da74446 100644 --- a/numpy/fn.dtype.html +++ b/numpy/fn.dtype.html @@ -1,2 +1,2 @@ -dtype in numpy - Rust

    Function numpy::dtype

    source ·
    pub fn dtype<'py, T: Element>(py: Python<'py>) -> Bound<'py, PyArrayDescr>
    Expand description

    Returns the type descriptor (“dtype”) for a registered type.

    +dtype in numpy - Rust
    numpy

    Function dtype

    source
    pub fn dtype<'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.dtype_bound.html b/numpy/fn.dtype_bound.html index aa87faaab..d9d576603 100644 --- a/numpy/fn.dtype_bound.html +++ b/numpy/fn.dtype_bound.html @@ -1,2 +1,2 @@ -dtype_bound in numpy - Rust

    Function numpy::dtype_bound

    source ·
    pub fn dtype_bound<'py, T: Element>(py: Python<'py>) -> Bound<'py, PyArrayDescr>
    👎Deprecated since 0.23.0: renamed to dtype
    Expand description

    Deprecated name for dtype.

    +dtype_bound in numpy - Rust
    numpy

    Function dtype_bound

    source
    pub fn dtype_bound<'py, T: Element>(py: Python<'py>) -> Bound<'py, PyArrayDescr>
    👎Deprecated since 0.23.0: renamed to dtype
    Expand description

    Deprecated name for dtype.

    \ No newline at end of file diff --git a/numpy/fn.einsum.html b/numpy/fn.einsum.html index 68f3ef7ad..979f821ca 100644 --- a/numpy/fn.einsum.html +++ b/numpy/fn.einsum.html @@ -1,5 +1,5 @@ -einsum in numpy - Rust

    Function numpy::einsum

    source ·
    pub fn einsum<'py, T, OUT>(
    -    subscripts: &str,
    +einsum in numpy - Rust
    numpy

    Function einsum

    source
    pub fn einsum<'py, T, OUT>(
    +    subscripts: &str,
         arrays: &[Borrowed<'_, 'py, PyArray<T, IxDyn>>],
     ) -> PyResult<OUT>
    where T: Element, diff --git a/numpy/fn.einsum_bound.html b/numpy/fn.einsum_bound.html index a7d3e9526..1fa2f6398 100644 --- a/numpy/fn.einsum_bound.html +++ b/numpy/fn.einsum_bound.html @@ -1,5 +1,5 @@ -einsum_bound in numpy - Rust

    Function numpy::einsum_bound

    source ·
    pub fn einsum_bound<'py, T, OUT>(
    -    subscripts: &str,
    +einsum_bound in numpy - Rust
    numpy

    Function einsum_bound

    source
    pub fn einsum_bound<'py, T, OUT>(
    +    subscripts: &str,
         arrays: &[Borrowed<'_, 'py, PyArray<T, IxDyn>>],
     ) -> PyResult<OUT>
    where T: Element, diff --git a/numpy/fn.inner.html b/numpy/fn.inner.html index 3861deacc..14dc0b974 100644 --- a/numpy/fn.inner.html +++ b/numpy/fn.inner.html @@ -1,4 +1,4 @@ -inner in numpy - Rust

    Function numpy::inner

    source ·
    pub fn inner<'py, T, DIN1, DIN2, OUT>(
    +inner in numpy - Rust
    numpy

    Function inner

    source
    pub fn inner<'py, T, DIN1, DIN2, OUT>(
         array1: &Bound<'py, PyArray<T, DIN1>>,
         array2: &Bound<'py, PyArray<T, DIN2>>,
     ) -> PyResult<OUT>
    where diff --git a/numpy/fn.inner_bound.html b/numpy/fn.inner_bound.html index 2bbd0dc70..f39e2efe5 100644 --- a/numpy/fn.inner_bound.html +++ b/numpy/fn.inner_bound.html @@ -1,4 +1,4 @@ -inner_bound in numpy - Rust

    Function numpy::inner_bound

    source ·
    pub fn inner_bound<'py, T, DIN1, DIN2, OUT>(
    +inner_bound in numpy - Rust
    numpy

    Function inner_bound

    source
    pub fn inner_bound<'py, T, DIN1, DIN2, OUT>(
         array1: &Bound<'py, PyArray<T, DIN1>>,
         array2: &Bound<'py, PyArray<T, DIN2>>,
     ) -> PyResult<OUT>
    where diff --git a/numpy/index.html b/numpy/index.html index 211867b51..69941c9e5 100644 --- a/numpy/index.html +++ b/numpy/index.html @@ -1,4 +1,4 @@ -numpy - Rust

    Crate numpy

    source ·
    Expand description

    This crate provides Rust interfaces for NumPy C APIs, +numpy - Rust

    Crate numpy

    source
    Expand description

    This crate provides Rust interfaces for NumPy C APIs, especially for the ndarray class.

    It uses [pyo3] for Rust bindings to CPython, and uses ndarray as the Rust matrix library.

    diff --git a/numpy/macro.array.html b/numpy/macro.array.html index aef2196eb..f1be744fb 100644 --- a/numpy/macro.array.html +++ b/numpy/macro.array.html @@ -1,4 +1,4 @@ -array in numpy - Rust

    Macro numpy::array

    source ·
    macro_rules! array {
    +array in numpy - Rust
    numpy

    Macro array

    source
    macro_rules! array {
         ($([$([$([$([$([$([$($x:expr),* $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*) => { ... };
         ($([$([$([$([$([$($x:expr),* $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*) => { ... };
         ($([$([$([$([$($x:expr),* $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*]),+ $(,)*) => { ... };
    diff --git a/numpy/macro.einsum.html b/numpy/macro.einsum.html
    index d5388ad9c..d586830ea 100644
    --- a/numpy/macro.einsum.html
    +++ b/numpy/macro.einsum.html
    @@ -1,4 +1,4 @@
    -einsum in numpy - Rust

    Macro numpy::einsum

    source ·
    macro_rules! einsum {
    +einsum in numpy - Rust
    numpy

    Macro einsum

    source
    macro_rules! einsum {
         ($subscripts:literal $(,$array:ident)+ $(,)*) => { ... };
     }
    Expand description

    Return the Einstein summation convention of given tensors.

    For more about the Einstein summation convention, please refer to diff --git a/numpy/macro.einsum_bound.html b/numpy/macro.einsum_bound.html index ef199dc0c..5dd46ed5d 100644 --- a/numpy/macro.einsum_bound.html +++ b/numpy/macro.einsum_bound.html @@ -1,4 +1,4 @@ -einsum_bound in numpy - Rust

    Macro numpy::einsum_bound

    source ·
    macro_rules! einsum_bound {
    +einsum_bound in numpy - Rust
    numpy

    Macro einsum_bound

    source
    macro_rules! einsum_bound {
         ($subscripts:literal $(,$array:ident)+ $(,)*) => { ... };
     }
    👎Deprecated since 0.23.0: renamed to einsum!
    Expand description

    Deprecated name for [einsum!].

    \ No newline at end of file diff --git a/numpy/macro.pyarray.html b/numpy/macro.pyarray.html index 691aff6d5..a74e8ccbb 100644 --- a/numpy/macro.pyarray.html +++ b/numpy/macro.pyarray.html @@ -1,4 +1,4 @@ -pyarray in numpy - Rust

    Macro numpy::pyarray

    source ·
    macro_rules! pyarray {
    +pyarray in numpy - Rust
    numpy

    Macro pyarray

    source
    macro_rules! pyarray {
         ($py: ident, $([$([$($x:expr),* $(,)*]),+ $(,)*]),+ $(,)*) => { ... };
         ($py: ident, $([$($x:expr),* $(,)*]),+ $(,)*) => { ... };
         ($py: ident, $($x:expr),* $(,)*) => { ... };
    diff --git a/numpy/macro.pyarray_bound.html b/numpy/macro.pyarray_bound.html
    index a063f7471..44d7030a8 100644
    --- a/numpy/macro.pyarray_bound.html
    +++ b/numpy/macro.pyarray_bound.html
    @@ -1,4 +1,4 @@
    -pyarray_bound in numpy - Rust

    Macro numpy::pyarray_bound

    source ·
    macro_rules! pyarray_bound {
    +pyarray_bound in numpy - Rust
    numpy

    Macro pyarray_bound

    source
    macro_rules! pyarray_bound {
         ($py: ident, $([$([$($x:expr),* $(,)*]),+ $(,)*]),+ $(,)*) => { ... };
         ($py: ident, $([$($x:expr),* $(,)*]),+ $(,)*) => { ... };
         ($py: ident, $($x:expr),* $(,)*) => { ... };
    diff --git a/numpy/npyffi/array/enum.NpyTypes.html b/numpy/npyffi/array/enum.NpyTypes.html
    index 1725a7a19..a4b0cc604 100644
    --- a/numpy/npyffi/array/enum.NpyTypes.html
    +++ b/numpy/npyffi/array/enum.NpyTypes.html
    @@ -1,4 +1,4 @@
    -NpyTypes in numpy::npyffi::array - Rust

    Enum numpy::npyffi::array::NpyTypes

    source ·
    pub enum NpyTypes {
    +NpyTypes in numpy::npyffi::array - Rust
    numpy::npyffi::array

    Enum NpyTypes

    source
    pub enum NpyTypes {
     
    Show 39 variants PyBigArray_Type, PyArray_Type, PyArrayDescr_Type, @@ -39,17 +39,17 @@ PyUnicodeArrType_Type, PyVoidArrType_Type,
    }
    Expand description

    All type objects exported by the NumPy API.

    -

    Variants§

    §

    PyBigArray_Type

    §

    PyArray_Type

    §

    PyArrayDescr_Type

    §

    PyArrayFlags_Type

    §

    PyArrayIter_Type

    §

    PyArrayMultiIter_Type

    §

    NPY_NUMUSERTYPES

    §

    PyBoolArrType_Type

    §

    _PyArrayScalar_BoolValues

    §

    PyGenericArrType_Type

    §

    PyNumberArrType_Type

    §

    PyIntegerArrType_Type

    §

    PySignedIntegerArrType_Type

    §

    PyUnsignedIntegerArrType_Type

    §

    PyInexactArrType_Type

    §

    PyFloatingArrType_Type

    §

    PyComplexFloatingArrType_Type

    §

    PyFlexibleArrType_Type

    §

    PyCharacterArrType_Type

    §

    PyByteArrType_Type

    §

    PyShortArrType_Type

    §

    PyIntArrType_Type

    §

    PyLongArrType_Type

    §

    PyLongLongArrType_Type

    §

    PyUByteArrType_Type

    §

    PyUShortArrType_Type

    §

    PyUIntArrType_Type

    §

    PyULongArrType_Type

    §

    PyULongLongArrType_Type

    §

    PyFloatArrType_Type

    §

    PyDoubleArrType_Type

    §

    PyLongDoubleArrType_Type

    §

    PyCFloatArrType_Type

    §

    PyCDoubleArrType_Type

    §

    PyCLongDoubleArrType_Type

    §

    PyObjectArrType_Type

    §

    PyStringArrType_Type

    §

    PyUnicodeArrType_Type

    §

    PyVoidArrType_Type

    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§

    §

    PyBigArray_Type

    §

    PyArray_Type

    §

    PyArrayDescr_Type

    §

    PyArrayFlags_Type

    §

    PyArrayIter_Type

    §

    PyArrayMultiIter_Type

    §

    NPY_NUMUSERTYPES

    §

    PyBoolArrType_Type

    §

    _PyArrayScalar_BoolValues

    §

    PyGenericArrType_Type

    §

    PyNumberArrType_Type

    §

    PyIntegerArrType_Type

    §

    PySignedIntegerArrType_Type

    §

    PyUnsignedIntegerArrType_Type

    §

    PyInexactArrType_Type

    §

    PyFloatingArrType_Type

    §

    PyComplexFloatingArrType_Type

    §

    PyFlexibleArrType_Type

    §

    PyCharacterArrType_Type

    §

    PyByteArrType_Type

    §

    PyShortArrType_Type

    §

    PyIntArrType_Type

    §

    PyLongArrType_Type

    §

    PyLongLongArrType_Type

    §

    PyUByteArrType_Type

    §

    PyUShortArrType_Type

    §

    PyUIntArrType_Type

    §

    PyULongArrType_Type

    §

    PyULongLongArrType_Type

    §

    PyFloatArrType_Type

    §

    PyDoubleArrType_Type

    §

    PyLongDoubleArrType_Type

    §

    PyCFloatArrType_Type

    §

    PyCDoubleArrType_Type

    §

    PyCLongDoubleArrType_Type

    §

    PyObjectArrType_Type

    §

    PyStringArrType_Type

    §

    PyUnicodeArrType_Type

    §

    PyVoidArrType_Type

    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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/array/fn.PyArray_Check.html b/numpy/npyffi/array/fn.PyArray_Check.html index 48def3c56..4585d0500 100644 --- a/numpy/npyffi/array/fn.PyArray_Check.html +++ b/numpy/npyffi/array/fn.PyArray_Check.html @@ -1,2 +1,2 @@ -PyArray_Check in numpy::npyffi::array - Rust

    Function numpy::npyffi::array::PyArray_Check

    source ·
    pub unsafe fn PyArray_Check<'py>(py: Python<'py>, op: *mut PyObject) -> c_int
    Expand description

    Checks that op is an instance of PyArray or not.

    +PyArray_Check in numpy::npyffi::array - Rust
    numpy::npyffi::array

    Function PyArray_Check

    source
    pub unsafe fn PyArray_Check<'py>(py: Python<'py>, op: *mut PyObject) -> c_int
    Expand description

    Checks that op is an instance of PyArray or not.

    \ No newline at end of file diff --git a/numpy/npyffi/array/fn.PyArray_CheckExact.html b/numpy/npyffi/array/fn.PyArray_CheckExact.html index b8cde81d0..274601ee9 100644 --- a/numpy/npyffi/array/fn.PyArray_CheckExact.html +++ b/numpy/npyffi/array/fn.PyArray_CheckExact.html @@ -1,5 +1,5 @@ -PyArray_CheckExact in numpy::npyffi::array - Rust

    Function numpy::npyffi::array::PyArray_CheckExact

    source ·
    pub unsafe fn PyArray_CheckExact<'py>(
    +PyArray_CheckExact in numpy::npyffi::array - Rust
    numpy::npyffi::array

    Function PyArray_CheckExact

    source
    pub unsafe fn PyArray_CheckExact<'py>(
         py: Python<'py>,
    -    op: *mut PyObject,
    -) -> c_int
    Expand description

    Checks that op is an exact instance of PyArray or not.

    + op: *mut PyObject, +) -> c_int
    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 70fd422cc..532e90b24 100644 --- a/numpy/npyffi/array/index.html +++ b/numpy/npyffi/array/index.html @@ -1,6 +1,6 @@ -numpy::npyffi::array - Rust

    Module numpy::npyffi::array

    source ·
    Expand description

    Low-Level binding for Array API

    +numpy::npyffi::array - Rust
    numpy::npyffi

    Module 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§

    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 c2e78b962..097f85917 100644 --- a/numpy/npyffi/array/static.PY_ARRAY_API.html +++ b/numpy/npyffi/array/static.PY_ARRAY_API.html @@ -1,4 +1,4 @@ -PY_ARRAY_API in numpy::npyffi::array - Rust

    Static numpy::npyffi::array::PY_ARRAY_API

    source ·
    pub static PY_ARRAY_API: PyArrayAPI
    Expand description

    A global variable which stores a ‘capsule’ +PY_ARRAY_API in numpy::npyffi::array - Rust

    numpy::npyffi::array

    Static PY_ARRAY_API

    source
    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.

    diff --git a/numpy/npyffi/array/struct.PyArrayAPI.html b/numpy/npyffi/array/struct.PyArrayAPI.html index 858b4bf7d..386d24a7e 100644 --- a/numpy/npyffi/array/struct.PyArrayAPI.html +++ b/numpy/npyffi/array/struct.PyArrayAPI.html @@ -1,1496 +1,1496 @@ -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>( +PyArrayAPI in numpy::npyffi::array - Rust
    numpy::npyffi::array

    Struct 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>( &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_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_Pack<'py>( + object: *mut PyObject, +) -> *mut PyObject

    source

    pub unsafe fn PyArray_Pack<'py>( &self, py: Python<'py>, - descr: *mut PyArray_Descr, - item: *mut c_void, - value: *const PyObject, -) -> *mut PyObject

    source

    pub unsafe fn PyArray_GetCastFunc<'py>( + descr: *mut PyArray_Descr, + item: *mut c_void, + value: *const 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_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_DescrProto, -) -> c_int

    source

    pub unsafe fn PyArray_RegisterCastFunc<'py>( + descr: *mut PyArray_DescrProto, +) -> 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

    pub unsafe fn PyDataMem_SetHandler<'py>( + arr: *mut PyArrayObject, + base: *mut PyArrayObject, +) -> c_int

    source

    pub unsafe fn PyDataMem_SetHandler<'py>( &self, py: Python<'py>, - handler: *mut PyObject, -) -> *mut PyObject

    source

    pub unsafe fn PyDataMem_GetHandler<'py>(&self, py: Python<'py>) -> *mut PyObject

    source

    pub unsafe fn NpyDatetime_ConvertDatetime64ToDatetimeStruct<'py>( + handler: *mut PyObject, +) -> *mut PyObject

    source

    pub unsafe fn PyDataMem_GetHandler<'py>(&self, py: Python<'py>) -> *mut PyObject

    source

    pub unsafe fn NpyDatetime_ConvertDatetime64ToDatetimeStruct<'py>( &self, py: Python<'py>, - meta: *mut PyArray_DatetimeMetaData, + meta: *mut PyArray_DatetimeMetaData, dt: npy_datetime, - out: *mut npy_datetimestruct, -) -> c_int

    source

    pub unsafe fn NpyDatetime_ConvertDatetimeStructToDatetime64<'py>( + out: *mut npy_datetimestruct, +) -> c_int

    source

    pub unsafe fn NpyDatetime_ConvertDatetimeStructToDatetime64<'py>( &self, py: Python<'py>, - meta: *mut PyArray_DatetimeMetaData, - dts: *const npy_datetimestruct, - out: *mut npy_datetime, -) -> c_int

    source

    pub unsafe fn NpyDatetime_ConvertPyDateTimeToDatetimeStruct<'py>( + meta: *mut PyArray_DatetimeMetaData, + dts: *const npy_datetimestruct, + out: *mut npy_datetime, +) -> c_int

    source

    pub unsafe fn NpyDatetime_ConvertPyDateTimeToDatetimeStruct<'py>( &self, py: Python<'py>, - obj: *mut PyObject, - out: *mut npy_datetimestruct, - out_bestunit: *mut NPY_DATETIMEUNIT, - apply_tzinfo: c_int, -) -> c_int

    source

    pub unsafe fn NpyDatetime_GetDatetimeISO8601StrLen<'py>( + obj: *mut PyObject, + out: *mut npy_datetimestruct, + out_bestunit: *mut NPY_DATETIMEUNIT, + apply_tzinfo: c_int, +) -> c_int

    source

    pub unsafe fn NpyDatetime_GetDatetimeISO8601StrLen<'py>( &self, py: Python<'py>, - local: c_int, + local: c_int, base: NPY_DATETIMEUNIT, -) -> c_int

    source

    pub unsafe fn NpyDatetime_MakeISO8601Datetime<'py>( +) -> c_int

    source

    pub unsafe fn NpyDatetime_MakeISO8601Datetime<'py>( &self, py: Python<'py>, - dts: *mut npy_datetimestruct, - outstr: *mut c_char, + dts: *mut npy_datetimestruct, + outstr: *mut c_char, outlen: npy_intp, - local: c_int, - utc: c_int, + local: c_int, + utc: c_int, base: NPY_DATETIMEUNIT, - tzoffset: c_int, + tzoffset: c_int, casting: NPY_CASTING, -) -> c_int

    source

    pub unsafe fn NpyDatetime_ParseISO8601Datetime<'py>( +) -> c_int

    source

    pub unsafe fn NpyDatetime_ParseISO8601Datetime<'py>( &self, py: Python<'py>, - str: *const c_char, + str: *const c_char, len: Py_ssize_t, unit: NPY_DATETIMEUNIT, casting: NPY_CASTING, - out: *mut npy_datetimestruct, - out_bestunit: *mut NPY_DATETIMEUNIT, - out_special: *mut npy_bool, -) -> c_int

    source

    pub unsafe fn NpyString_load<'py>( + out: *mut npy_datetimestruct, + out_bestunit: *mut NPY_DATETIMEUNIT, + out_special: *mut npy_bool, +) -> c_int

    source

    pub unsafe fn NpyString_load<'py>( &self, py: Python<'py>, - allocator: *mut npy_string_allocator, - packed_string: *const npy_packed_static_string, - unpacked_string: *mut npy_static_string, -) -> c_int

    source

    pub unsafe fn NpyString_pack<'py>( + allocator: *mut npy_string_allocator, + packed_string: *const npy_packed_static_string, + unpacked_string: *mut npy_static_string, +) -> c_int

    source

    pub unsafe fn NpyString_pack<'py>( &self, py: Python<'py>, - out: *mut npy_packed_static_string, -) -> c_int

    source

    pub unsafe fn NpyString_pack_null<'py>( + out: *mut npy_packed_static_string, +) -> c_int

    source

    pub unsafe fn NpyString_pack_null<'py>( &self, py: Python<'py>, - allocator: *mut npy_string_allocator, - packed_string: *mut npy_packed_static_string, -) -> c_int

    source

    pub unsafe fn NpyString_acquire_allocator<'py>( + allocator: *mut npy_string_allocator, + packed_string: *mut npy_packed_static_string, +) -> c_int

    source

    pub unsafe fn NpyString_acquire_allocator<'py>( &self, py: Python<'py>, - descr: *const PyArray_StringDTypeObject, -) -> *mut npy_string_allocator

    source

    pub unsafe fn NpyString_acquire_allocators<'py>( + descr: *const PyArray_StringDTypeObject, +) -> *mut npy_string_allocator

    source

    pub unsafe fn NpyString_acquire_allocators<'py>( &self, py: Python<'py>, - n_descriptors: usize, - descrs: *const *mut PyArray_Descr, - allocators: *mut *mut npy_string_allocator, + n_descriptors: usize, + descrs: *const *mut PyArray_Descr, + allocators: *mut *mut npy_string_allocator, )

    source

    pub unsafe fn NpyString_release_allocator<'py>( &self, py: Python<'py>, - allocator: *mut npy_string_allocator, + allocator: *mut npy_string_allocator, )

    source

    pub unsafe fn NpyString_release_allocators<'py>( &self, py: Python<'py>, - length: usize, - allocators: *mut *mut npy_string_allocator, + length: usize, + allocators: *mut *mut npy_string_allocator, )

    source

    pub unsafe fn PyArray_GetDefaultDescr<'py>( &self, py: Python<'py>, - DType: *mut PyArray_DTypeMeta, -) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArrayInitDTypeMeta_FromSpec<'py>( + DType: *mut PyArray_DTypeMeta, +) -> *mut PyArray_Descr

    source

    pub unsafe fn PyArrayInitDTypeMeta_FromSpec<'py>( &self, py: Python<'py>, - DType: *mut PyArray_DTypeMeta, - spec: *mut PyArrayDTypeMeta_Spec, -) -> c_int

    source

    pub unsafe fn PyArray_CommonDType<'py>( + DType: *mut PyArray_DTypeMeta, + spec: *mut PyArrayDTypeMeta_Spec, +) -> c_int

    source

    pub unsafe fn PyArray_CommonDType<'py>( &self, py: Python<'py>, - dtype1: *mut PyArray_DTypeMeta, - dtype2: *mut PyArray_DTypeMeta, + dtype1: *mut PyArray_DTypeMeta, + dtype2: *mut PyArray_DTypeMeta, ) -> PyArray_DTypeMeta

    source

    pub unsafe fn PyArray_PromoteDTypeSequence<'py>( &self, py: Python<'py>, length: npy_intp, - dtypes_in: *mut *mut PyArray_DTypeMeta, -) -> *mut PyArray_DTypeMeta

    source

    pub unsafe fn _PyDataType_GetArrFuncs<'py>( + dtypes_in: *mut *mut PyArray_DTypeMeta, +) -> *mut PyArray_DTypeMeta

    source

    pub unsafe fn _PyDataType_GetArrFuncs<'py>( &self, py: Python<'py>, - descr: *const PyArray_Descr, -) -> *mut PyArray_ArrFuncs

    source

    pub unsafe fn PyArray_CopyInto<'py>( + descr: *const PyArray_Descr, +) -> *mut PyArray_ArrFuncs

    source

    pub unsafe fn PyArray_CopyInto<'py>( &self, py: Python<'py>, - dst: *mut PyArrayObject, - src: *mut PyArrayObject, -) -> c_int

    source

    pub unsafe fn PyArray_CastAnyTo<'py>( + dst: *mut PyArrayObject, + src: *mut PyArrayObject, +) -> c_int

    source

    pub unsafe fn PyArray_CastAnyTo<'py>( &self, py: Python<'py>, - out: *mut PyArrayObject, - mp: *mut PyArrayObject, -) -> c_int

    source§

    impl PyArrayAPI

    source

    pub unsafe fn get_type_object<'py>( + out: *mut PyArrayObject, + mp: *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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/constant.API_VERSION_2_0.html b/numpy/npyffi/constant.API_VERSION_2_0.html index d8f644e00..cd55d110a 100644 --- a/numpy/npyffi/constant.API_VERSION_2_0.html +++ b/numpy/npyffi/constant.API_VERSION_2_0.html @@ -1 +1 @@ -API_VERSION_2_0 in numpy::npyffi - Rust

    Constant numpy::npyffi::API_VERSION_2_0

    source ·
    pub const API_VERSION_2_0: c_uint = 0x00000012;
    \ No newline at end of file +API_VERSION_2_0 in numpy::npyffi - Rust
    numpy::npyffi

    Constant API_VERSION_2_0

    source
    pub const API_VERSION_2_0: c_uint = 0x00000012;
    \ 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 bcfce8aee..844ff1b5c 100644 --- a/numpy/npyffi/flags/constant.NPY_ALIGNED_STRUCT.html +++ b/numpy/npyffi/flags/constant.NPY_ALIGNED_STRUCT.html @@ -1 +1 @@ -NPY_ALIGNED_STRUCT in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ALIGNED_STRUCT

    source ·
    pub const NPY_ALIGNED_STRUCT: u64 = 0x80;
    \ No newline at end of file +NPY_ALIGNED_STRUCT in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ALIGNED_STRUCT

    source
    pub const NPY_ALIGNED_STRUCT: u64 = 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 60b7762db..8f7b7ca3c 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ALIGNED.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ALIGNED.html @@ -1 +1 @@ -NPY_ARRAY_ALIGNED in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_ALIGNED

    source ·
    pub const NPY_ARRAY_ALIGNED: c_int = 0x0100;
    \ No newline at end of file +NPY_ARRAY_ALIGNED in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_ALIGNED

    source
    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 57ac7f1cb..fa1b7c6db 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED.html @@ -1 +1 @@ -NPY_ARRAY_BEHAVED in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_BEHAVED

    source ·
    pub const NPY_ARRAY_BEHAVED: c_int = _; // 1_280i32
    \ No newline at end of file +NPY_ARRAY_BEHAVED in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_BEHAVED

    source
    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 98ab84670..b24d84535 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED_NS.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_BEHAVED_NS.html @@ -1 +1 @@ -NPY_ARRAY_BEHAVED_NS in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_BEHAVED_NS

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_BEHAVED_NS

    source
    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 e4826428f..be65db5d2 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY.html @@ -1 +1 @@ -NPY_ARRAY_CARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_CARRAY

    source ·
    pub const NPY_ARRAY_CARRAY: c_int = _; // 1_281i32
    \ No newline at end of file +NPY_ARRAY_CARRAY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_CARRAY

    source
    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 5aa061510..90fc24741 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY_RO.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_CARRAY_RO.html @@ -1 +1 @@ -NPY_ARRAY_CARRAY_RO in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_CARRAY_RO

    source ·
    pub const NPY_ARRAY_CARRAY_RO: c_int = _; // 257i32
    \ No newline at end of file +NPY_ARRAY_CARRAY_RO in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_CARRAY_RO

    source
    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 53661c446..d0f17238a 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_C_CONTIGUOUS.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_C_CONTIGUOUS.html @@ -1 +1 @@ -NPY_ARRAY_C_CONTIGUOUS in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_C_CONTIGUOUS

    source ·
    pub const NPY_ARRAY_C_CONTIGUOUS: c_int = 0x0001;
    \ No newline at end of file +NPY_ARRAY_C_CONTIGUOUS in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_C_CONTIGUOUS

    source
    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 a1ebb29a8..728070d67 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_DEFAULT.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_DEFAULT.html @@ -1 +1 @@ -NPY_ARRAY_DEFAULT in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_DEFAULT

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_DEFAULT

    source
    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 a1de8b6ea..2eb61c090 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ELEMENTSTRIDES.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ELEMENTSTRIDES.html @@ -1 +1 @@ -NPY_ARRAY_ELEMENTSTRIDES in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_ELEMENTSTRIDES

    source ·
    pub const NPY_ARRAY_ELEMENTSTRIDES: c_int = 0x0080;
    \ No newline at end of file +NPY_ARRAY_ELEMENTSTRIDES in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_ELEMENTSTRIDES

    source
    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 cec47a39e..74c05742a 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ENSUREARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ENSUREARRAY.html @@ -1 +1 @@ -NPY_ARRAY_ENSUREARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_ENSUREARRAY

    source ·
    pub const NPY_ARRAY_ENSUREARRAY: c_int = 0x0040;
    \ No newline at end of file +NPY_ARRAY_ENSUREARRAY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_ENSUREARRAY

    source
    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 57ef6b70e..e29803c0c 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_ENSURECOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_ENSURECOPY.html @@ -1 +1 @@ -NPY_ARRAY_ENSURECOPY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_ENSURECOPY

    source ·
    pub const NPY_ARRAY_ENSURECOPY: c_int = 0x0020;
    \ No newline at end of file +NPY_ARRAY_ENSURECOPY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_ENSURECOPY

    source
    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 c41c25301..319869be0 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY.html @@ -1 +1 @@ -NPY_ARRAY_FARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_FARRAY

    source ·
    pub const NPY_ARRAY_FARRAY: c_int = _; // 1_282i32
    \ No newline at end of file +NPY_ARRAY_FARRAY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_FARRAY

    source
    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 7decefbfb..825190f79 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY_RO.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_FARRAY_RO.html @@ -1 +1 @@ -NPY_ARRAY_FARRAY_RO in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_FARRAY_RO

    source ·
    pub const NPY_ARRAY_FARRAY_RO: c_int = _; // 258i32
    \ No newline at end of file +NPY_ARRAY_FARRAY_RO in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_FARRAY_RO

    source
    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 56d638780..636b90601 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_FORCECAST.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_FORCECAST.html @@ -1 +1 @@ -NPY_ARRAY_FORCECAST in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_FORCECAST

    source ·
    pub const NPY_ARRAY_FORCECAST: c_int = 0x0010;
    \ No newline at end of file +NPY_ARRAY_FORCECAST in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_FORCECAST

    source
    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 b8781d11a..369753f20 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_F_CONTIGUOUS.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_F_CONTIGUOUS.html @@ -1 +1 @@ -NPY_ARRAY_F_CONTIGUOUS in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_F_CONTIGUOUS

    source ·
    pub const NPY_ARRAY_F_CONTIGUOUS: c_int = 0x0002;
    \ No newline at end of file +NPY_ARRAY_F_CONTIGUOUS in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_F_CONTIGUOUS

    source
    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 96bd5507d..a934d77ac 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY.html @@ -1 +1 @@ -NPY_ARRAY_INOUT_ARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_INOUT_ARRAY

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_INOUT_ARRAY

    source
    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 b990a9a85..623a75347 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY2.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_ARRAY2.html @@ -1 +1 @@ -NPY_ARRAY_INOUT_ARRAY2 in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_INOUT_ARRAY2

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_INOUT_ARRAY2

    source
    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 cb95fabbc..bb1b7786e 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY.html @@ -1 +1 @@ -NPY_ARRAY_INOUT_FARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_INOUT_FARRAY

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_INOUT_FARRAY

    source
    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 b7383beae..83205284f 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY2.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_INOUT_FARRAY2.html @@ -1 +1 @@ -NPY_ARRAY_INOUT_FARRAY2 in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_INOUT_FARRAY2

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_INOUT_FARRAY2

    source
    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 41086af07..eb6be9a0d 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_IN_ARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_IN_ARRAY.html @@ -1 +1 @@ -NPY_ARRAY_IN_ARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_IN_ARRAY

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_IN_ARRAY

    source
    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 57e640c3b..66801c182 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_IN_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_IN_FARRAY.html @@ -1 +1 @@ -NPY_ARRAY_IN_FARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_IN_FARRAY

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_IN_FARRAY

    source
    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 6f864a83f..e26cafb56 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_NOTSWAPPED.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_NOTSWAPPED.html @@ -1 +1 @@ -NPY_ARRAY_NOTSWAPPED in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_NOTSWAPPED

    source ·
    pub const NPY_ARRAY_NOTSWAPPED: c_int = 0x0200;
    \ No newline at end of file +NPY_ARRAY_NOTSWAPPED in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_NOTSWAPPED

    source
    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 3cdf43ce4..b8cfdf2a1 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_ARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_ARRAY.html @@ -1 +1 @@ -NPY_ARRAY_OUT_ARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_OUT_ARRAY

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_OUT_ARRAY

    source
    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 9768c752c..d309d4eab 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_FARRAY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_OUT_FARRAY.html @@ -1 +1 @@ -NPY_ARRAY_OUT_FARRAY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_OUT_FARRAY

    source ·
    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
    numpy::npyffi::flags

    Constant NPY_ARRAY_OUT_FARRAY

    source
    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 28be4a030..11f54b01d 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_OWNDATA.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_OWNDATA.html @@ -1 +1 @@ -NPY_ARRAY_OWNDATA in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_OWNDATA

    source ·
    pub const NPY_ARRAY_OWNDATA: c_int = 0x0004;
    \ No newline at end of file +NPY_ARRAY_OWNDATA in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_OWNDATA

    source
    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 ca4ce8d20..f311fd4ce 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATEIFCOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATEIFCOPY.html @@ -1 +1 @@ -NPY_ARRAY_UPDATEIFCOPY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_UPDATEIFCOPY

    source ·
    pub const NPY_ARRAY_UPDATEIFCOPY: c_int = 0x1000;
    \ No newline at end of file +NPY_ARRAY_UPDATEIFCOPY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_UPDATEIFCOPY

    source
    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 da661e215..26f8bd1bc 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATE_ALL.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_UPDATE_ALL.html @@ -1 +1 @@ -NPY_ARRAY_UPDATE_ALL in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_UPDATE_ALL

    source ·
    pub const NPY_ARRAY_UPDATE_ALL: c_int = _; // 3i32
    \ No newline at end of file +NPY_ARRAY_UPDATE_ALL in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_UPDATE_ALL

    source
    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 430a130f3..b70de0d88 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEABLE.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEABLE.html @@ -1 +1 @@ -NPY_ARRAY_WRITEABLE in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_WRITEABLE

    source ·
    pub const NPY_ARRAY_WRITEABLE: c_int = 0x0400;
    \ No newline at end of file +NPY_ARRAY_WRITEABLE in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_WRITEABLE

    source
    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 ed59a57a7..774845d8a 100644 --- a/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEBACKIFCOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ARRAY_WRITEBACKIFCOPY.html @@ -1 +1 @@ -NPY_ARRAY_WRITEBACKIFCOPY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ARRAY_WRITEBACKIFCOPY

    source ·
    pub const NPY_ARRAY_WRITEBACKIFCOPY: c_int = 0x2000;
    \ No newline at end of file +NPY_ARRAY_WRITEBACKIFCOPY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ARRAY_WRITEBACKIFCOPY

    source
    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 286a466f0..69d37af79 100644 --- a/numpy/npyffi/flags/constant.NPY_FROM_FIELDS.html +++ b/numpy/npyffi/flags/constant.NPY_FROM_FIELDS.html @@ -1 +1 @@ -NPY_FROM_FIELDS in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_FROM_FIELDS

    source ·
    pub const NPY_FROM_FIELDS: u64 = _; // 27u64
    \ No newline at end of file +NPY_FROM_FIELDS in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_FROM_FIELDS

    source
    pub const NPY_FROM_FIELDS: u64 = _; // 27u64
    \ 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 98b65f129..ed7ab54e0 100644 --- a/numpy/npyffi/flags/constant.NPY_ITEM_HASOBJECT.html +++ b/numpy/npyffi/flags/constant.NPY_ITEM_HASOBJECT.html @@ -1 +1 @@ -NPY_ITEM_HASOBJECT in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITEM_HASOBJECT

    source ·
    pub const NPY_ITEM_HASOBJECT: u64 = 0x01;
    \ No newline at end of file +NPY_ITEM_HASOBJECT in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITEM_HASOBJECT

    source
    pub const NPY_ITEM_HASOBJECT: u64 = 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 ed1f15b87..0c80b2473 100644 --- a/numpy/npyffi/flags/constant.NPY_ITEM_IS_POINTER.html +++ b/numpy/npyffi/flags/constant.NPY_ITEM_IS_POINTER.html @@ -1 +1 @@ -NPY_ITEM_IS_POINTER in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITEM_IS_POINTER

    source ·
    pub const NPY_ITEM_IS_POINTER: u64 = 0x04;
    \ No newline at end of file +NPY_ITEM_IS_POINTER in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITEM_IS_POINTER

    source
    pub const NPY_ITEM_IS_POINTER: u64 = 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 9154b35f0..1c34c1487 100644 --- a/numpy/npyffi/flags/constant.NPY_ITEM_REFCOUNT.html +++ b/numpy/npyffi/flags/constant.NPY_ITEM_REFCOUNT.html @@ -1 +1 @@ -NPY_ITEM_REFCOUNT in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITEM_REFCOUNT

    source ·
    pub const NPY_ITEM_REFCOUNT: u64 = 0x01;
    \ No newline at end of file +NPY_ITEM_REFCOUNT in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITEM_REFCOUNT

    source
    pub const NPY_ITEM_REFCOUNT: u64 = 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 b71520adf..e2bcea99f 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ALIGNED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ALIGNED.html @@ -1 +1 @@ -NPY_ITER_ALIGNED in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_ALIGNED

    source ·
    pub const NPY_ITER_ALIGNED: npy_uint32 = 0x00100000;
    \ No newline at end of file +NPY_ITER_ALIGNED in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_ALIGNED

    source
    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 4c694af8d..142e45666 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ALLOCATE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ALLOCATE.html @@ -1 +1 @@ -NPY_ITER_ALLOCATE in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_ALLOCATE

    source ·
    pub const NPY_ITER_ALLOCATE: npy_uint32 = 0x01000000;
    \ No newline at end of file +NPY_ITER_ALLOCATE in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_ALLOCATE

    source
    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 c4e5f02a7..281cc8ad6 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ARRAYMASK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ARRAYMASK.html @@ -1 +1 @@ -NPY_ITER_ARRAYMASK in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_ARRAYMASK

    source ·
    pub const NPY_ITER_ARRAYMASK: npy_uint32 = 0x20000000;
    \ No newline at end of file +NPY_ITER_ARRAYMASK in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_ARRAYMASK

    source
    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 e6f3857f5..71da85720 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_BUFFERED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_BUFFERED.html @@ -1 +1 @@ -NPY_ITER_BUFFERED in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_BUFFERED

    source ·
    pub const NPY_ITER_BUFFERED: npy_uint32 = 0x00000200;
    \ No newline at end of file +NPY_ITER_BUFFERED in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_BUFFERED

    source
    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 6419e36c5..d19476d2b 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_COMMON_DTYPE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_COMMON_DTYPE.html @@ -1 +1 @@ -NPY_ITER_COMMON_DTYPE in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_COMMON_DTYPE

    source ·
    pub const NPY_ITER_COMMON_DTYPE: npy_uint32 = 0x00000010;
    \ No newline at end of file +NPY_ITER_COMMON_DTYPE in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_COMMON_DTYPE

    source
    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 acc13312f..4187dae1e 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_CONTIG.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_CONTIG.html @@ -1 +1 @@ -NPY_ITER_CONTIG in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_CONTIG

    source ·
    pub const NPY_ITER_CONTIG: npy_uint32 = 0x00200000;
    \ No newline at end of file +NPY_ITER_CONTIG in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_CONTIG

    source
    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 f0252c454..ca922c392 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_COPY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_COPY.html @@ -1 +1 @@ -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 +NPY_ITER_COPY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant 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 655a086a1..f52c60a77 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_COPY_IF_OVERLAP.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_COPY_IF_OVERLAP.html @@ -1 +1 @@ -NPY_ITER_COPY_IF_OVERLAP in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_COPY_IF_OVERLAP

    source ·
    pub const NPY_ITER_COPY_IF_OVERLAP: npy_uint32 = 0x00002000;
    \ No newline at end of file +NPY_ITER_COPY_IF_OVERLAP in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_COPY_IF_OVERLAP

    source
    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 d599bfb3a..832c5febd 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_C_INDEX.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_C_INDEX.html @@ -1 +1 @@ -NPY_ITER_C_INDEX in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_C_INDEX

    source ·
    pub const NPY_ITER_C_INDEX: npy_uint32 = 0x00000001;
    \ No newline at end of file +NPY_ITER_C_INDEX in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_C_INDEX

    source
    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 3f7889015..7d6343f8f 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_DELAY_BUFALLOC.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_DELAY_BUFALLOC.html @@ -1 +1 @@ -NPY_ITER_DELAY_BUFALLOC in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_DELAY_BUFALLOC

    source ·
    pub const NPY_ITER_DELAY_BUFALLOC: npy_uint32 = 0x00000800;
    \ No newline at end of file +NPY_ITER_DELAY_BUFALLOC in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_DELAY_BUFALLOC

    source
    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 f10d29225..f9b6feecb 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_DONT_NEGATE_STRIDES.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_DONT_NEGATE_STRIDES.html @@ -1 +1 @@ -NPY_ITER_DONT_NEGATE_STRIDES in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_DONT_NEGATE_STRIDES

    source ·
    pub const NPY_ITER_DONT_NEGATE_STRIDES: npy_uint32 = 0x00001000;
    \ No newline at end of file +NPY_ITER_DONT_NEGATE_STRIDES in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_DONT_NEGATE_STRIDES

    source
    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 e998e2890..7ae404a87 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_EXTERNAL_LOOP.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_EXTERNAL_LOOP.html @@ -1 +1 @@ -NPY_ITER_EXTERNAL_LOOP in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_EXTERNAL_LOOP

    source ·
    pub const NPY_ITER_EXTERNAL_LOOP: npy_uint32 = 0x00000008;
    \ No newline at end of file +NPY_ITER_EXTERNAL_LOOP in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_EXTERNAL_LOOP

    source
    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 5580a74b1..9e6d21d5f 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_F_INDEX.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_F_INDEX.html @@ -1 +1 @@ -NPY_ITER_F_INDEX in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_F_INDEX

    source ·
    pub const NPY_ITER_F_INDEX: npy_uint32 = 0x00000002;
    \ No newline at end of file +NPY_ITER_F_INDEX in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_F_INDEX

    source
    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 cf261d5a5..1e2725a5e 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_GLOBAL_FLAGS.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_GLOBAL_FLAGS.html @@ -1 +1 @@ -NPY_ITER_GLOBAL_FLAGS in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_GLOBAL_FLAGS

    source ·
    pub const NPY_ITER_GLOBAL_FLAGS: npy_uint32 = 0x0000ffff;
    \ No newline at end of file +NPY_ITER_GLOBAL_FLAGS in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_GLOBAL_FLAGS

    source
    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 6a094b342..e6d15932b 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_GROWINNER.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_GROWINNER.html @@ -1 +1 @@ -NPY_ITER_GROWINNER in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_GROWINNER

    source ·
    pub const NPY_ITER_GROWINNER: npy_uint32 = 0x00000400;
    \ No newline at end of file +NPY_ITER_GROWINNER in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_GROWINNER

    source
    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 9c8120263..0e9b6cfd2 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_MULTI_INDEX.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_MULTI_INDEX.html @@ -1 +1 @@ -NPY_ITER_MULTI_INDEX in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_MULTI_INDEX

    source ·
    pub const NPY_ITER_MULTI_INDEX: npy_uint32 = 0x00000004;
    \ No newline at end of file +NPY_ITER_MULTI_INDEX in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_MULTI_INDEX

    source
    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 e5717ac3d..12f0f9397 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_NBO.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_NBO.html @@ -1 +1 @@ -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 +NPY_ITER_NBO in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant 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 1c4eef0b9..cc4b48b13 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_NO_BROADCAST.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_NO_BROADCAST.html @@ -1 +1 @@ -NPY_ITER_NO_BROADCAST in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_NO_BROADCAST

    source ·
    pub const NPY_ITER_NO_BROADCAST: npy_uint32 = 0x08000000;
    \ No newline at end of file +NPY_ITER_NO_BROADCAST in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_NO_BROADCAST

    source
    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 214782b7f..5e8648561 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_NO_SUBTYPE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_NO_SUBTYPE.html @@ -1 +1 @@ -NPY_ITER_NO_SUBTYPE in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_NO_SUBTYPE

    source ·
    pub const NPY_ITER_NO_SUBTYPE: npy_uint32 = 0x02000000;
    \ No newline at end of file +NPY_ITER_NO_SUBTYPE in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_NO_SUBTYPE

    source
    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 59fa4315e..1b8dd6a07 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE.html @@ -1 +1 @@ -NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE

    source ·
    pub const NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE: npy_uint32 = 0x40000000;
    \ No newline at end of file +NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE

    source
    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 70111ec39..efb31de8d 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_PER_OP_FLAGS.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_PER_OP_FLAGS.html @@ -1 +1 @@ -NPY_ITER_PER_OP_FLAGS in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_PER_OP_FLAGS

    source ·
    pub const NPY_ITER_PER_OP_FLAGS: npy_uint32 = 0xffff0000;
    \ No newline at end of file +NPY_ITER_PER_OP_FLAGS in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_PER_OP_FLAGS

    source
    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 5adf0fd91..6288751ad 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_RANGED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_RANGED.html @@ -1 +1 @@ -NPY_ITER_RANGED in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_RANGED

    source ·
    pub const NPY_ITER_RANGED: npy_uint32 = 0x00000100;
    \ No newline at end of file +NPY_ITER_RANGED in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_RANGED

    source
    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 032dcc9fd..6591a4d24 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_READONLY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_READONLY.html @@ -1 +1 @@ -NPY_ITER_READONLY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_READONLY

    source ·
    pub const NPY_ITER_READONLY: npy_uint32 = 0x00020000;
    \ No newline at end of file +NPY_ITER_READONLY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_READONLY

    source
    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 cd9188df9..4689dcdcd 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_READWRITE.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_READWRITE.html @@ -1 +1 @@ -NPY_ITER_READWRITE in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_READWRITE

    source ·
    pub const NPY_ITER_READWRITE: npy_uint32 = 0x00010000;
    \ No newline at end of file +NPY_ITER_READWRITE in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_READWRITE

    source
    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 70888f188..9dffc7b23 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_REDUCE_OK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_REDUCE_OK.html @@ -1 +1 @@ -NPY_ITER_REDUCE_OK in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_REDUCE_OK

    source ·
    pub const NPY_ITER_REDUCE_OK: npy_uint32 = 0x00000080;
    \ No newline at end of file +NPY_ITER_REDUCE_OK in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_REDUCE_OK

    source
    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 52243b050..53e97be8e 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_REFS_OK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_REFS_OK.html @@ -1 +1 @@ -NPY_ITER_REFS_OK in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_REFS_OK

    source ·
    pub const NPY_ITER_REFS_OK: npy_uint32 = 0x00000020;
    \ No newline at end of file +NPY_ITER_REFS_OK in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_REFS_OK

    source
    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 486de8a1a..6ce177a15 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_UPDATEIFCOPY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_UPDATEIFCOPY.html @@ -1 +1 @@ -NPY_ITER_UPDATEIFCOPY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_UPDATEIFCOPY

    source ·
    pub const NPY_ITER_UPDATEIFCOPY: npy_uint32 = 0x00800000;
    \ No newline at end of file +NPY_ITER_UPDATEIFCOPY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_UPDATEIFCOPY

    source
    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 fa229079f..b507dc92a 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_VIRTUAL.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_VIRTUAL.html @@ -1 +1 @@ -NPY_ITER_VIRTUAL in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_VIRTUAL

    source ·
    pub const NPY_ITER_VIRTUAL: npy_uint32 = 0x04000000;
    \ No newline at end of file +NPY_ITER_VIRTUAL in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_VIRTUAL

    source
    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 5319fd6f3..39d845c65 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_WRITEMASKED.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_WRITEMASKED.html @@ -1 +1 @@ -NPY_ITER_WRITEMASKED in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_WRITEMASKED

    source ·
    pub const NPY_ITER_WRITEMASKED: npy_uint32 = 0x10000000;
    \ No newline at end of file +NPY_ITER_WRITEMASKED in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_WRITEMASKED

    source
    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 927197cc1..a8d81115a 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_WRITEONLY.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_WRITEONLY.html @@ -1 +1 @@ -NPY_ITER_WRITEONLY in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_WRITEONLY

    source ·
    pub const NPY_ITER_WRITEONLY: npy_uint32 = 0x00040000;
    \ No newline at end of file +NPY_ITER_WRITEONLY in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_WRITEONLY

    source
    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 dc2f78383..be87c840c 100644 --- a/numpy/npyffi/flags/constant.NPY_ITER_ZEROSIZE_OK.html +++ b/numpy/npyffi/flags/constant.NPY_ITER_ZEROSIZE_OK.html @@ -1 +1 @@ -NPY_ITER_ZEROSIZE_OK in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_ITER_ZEROSIZE_OK

    source ·
    pub const NPY_ITER_ZEROSIZE_OK: npy_uint32 = 0x00000040;
    \ No newline at end of file +NPY_ITER_ZEROSIZE_OK in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_ITER_ZEROSIZE_OK

    source
    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 d1bdef087..575274fee 100644 --- a/numpy/npyffi/flags/constant.NPY_LIST_PICKLE.html +++ b/numpy/npyffi/flags/constant.NPY_LIST_PICKLE.html @@ -1 +1 @@ -NPY_LIST_PICKLE in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_LIST_PICKLE

    source ·
    pub const NPY_LIST_PICKLE: u64 = 0x02;
    \ No newline at end of file +NPY_LIST_PICKLE in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_LIST_PICKLE

    source
    pub const NPY_LIST_PICKLE: u64 = 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 3759b761e..80ef5159a 100644 --- a/numpy/npyffi/flags/constant.NPY_NEEDS_INIT.html +++ b/numpy/npyffi/flags/constant.NPY_NEEDS_INIT.html @@ -1 +1 @@ -NPY_NEEDS_INIT in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_NEEDS_INIT

    source ·
    pub const NPY_NEEDS_INIT: u64 = 0x08;
    \ No newline at end of file +NPY_NEEDS_INIT in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_NEEDS_INIT

    source
    pub const NPY_NEEDS_INIT: u64 = 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 aa68158ce..e89086d76 100644 --- a/numpy/npyffi/flags/constant.NPY_NEEDS_PYAPI.html +++ b/numpy/npyffi/flags/constant.NPY_NEEDS_PYAPI.html @@ -1 +1 @@ -NPY_NEEDS_PYAPI in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_NEEDS_PYAPI

    source ·
    pub const NPY_NEEDS_PYAPI: u64 = 0x10;
    \ No newline at end of file +NPY_NEEDS_PYAPI in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_NEEDS_PYAPI

    source
    pub const NPY_NEEDS_PYAPI: u64 = 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 20a2f15de..a01323a80 100644 --- a/numpy/npyffi/flags/constant.NPY_OBJECT_DTYPE_FLAGS.html +++ b/numpy/npyffi/flags/constant.NPY_OBJECT_DTYPE_FLAGS.html @@ -1 +1 @@ -NPY_OBJECT_DTYPE_FLAGS in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_OBJECT_DTYPE_FLAGS

    source ·
    pub const NPY_OBJECT_DTYPE_FLAGS: u64 = _; // 63u64
    \ No newline at end of file +NPY_OBJECT_DTYPE_FLAGS in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_OBJECT_DTYPE_FLAGS

    source
    pub const NPY_OBJECT_DTYPE_FLAGS: u64 = _; // 63u64
    \ 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 f5484d665..53cd521d7 100644 --- a/numpy/npyffi/flags/constant.NPY_USE_GETITEM.html +++ b/numpy/npyffi/flags/constant.NPY_USE_GETITEM.html @@ -1 +1 @@ -NPY_USE_GETITEM in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_USE_GETITEM

    source ·
    pub const NPY_USE_GETITEM: u64 = 0x20;
    \ No newline at end of file +NPY_USE_GETITEM in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_USE_GETITEM

    source
    pub const NPY_USE_GETITEM: u64 = 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 073ffe670..25e2aa56e 100644 --- a/numpy/npyffi/flags/constant.NPY_USE_SETITEM.html +++ b/numpy/npyffi/flags/constant.NPY_USE_SETITEM.html @@ -1 +1 @@ -NPY_USE_SETITEM in numpy::npyffi::flags - Rust

    Constant numpy::npyffi::flags::NPY_USE_SETITEM

    source ·
    pub const NPY_USE_SETITEM: u64 = 0x40;
    \ No newline at end of file +NPY_USE_SETITEM in numpy::npyffi::flags - Rust
    numpy::npyffi::flags

    Constant NPY_USE_SETITEM

    source
    pub const NPY_USE_SETITEM: u64 = 0x40;
    \ No newline at end of file diff --git a/numpy/npyffi/flags/index.html b/numpy/npyffi/flags/index.html index 6653b8bff..7fb572975 100644 --- a/numpy/npyffi/flags/index.html +++ b/numpy/npyffi/flags/index.html @@ -1 +1 @@ -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/fn.is_numpy_2.html b/numpy/npyffi/fn.is_numpy_2.html index 986f95492..e6247482a 100644 --- a/numpy/npyffi/fn.is_numpy_2.html +++ b/numpy/npyffi/fn.is_numpy_2.html @@ -1,2 +1,2 @@ -is_numpy_2 in numpy::npyffi - Rust

    Function numpy::npyffi::is_numpy_2

    source ·
    pub fn is_numpy_2<'py>(py: Python<'py>) -> bool
    Expand description

    Returns whether the runtime numpy version is 2.0 or greater.

    +is_numpy_2 in numpy::npyffi - Rust
    numpy::npyffi

    Function is_numpy_2

    source
    pub fn is_numpy_2<'py>(py: Python<'py>) -> bool
    Expand description

    Returns whether the runtime numpy version is 2.0 or greater.

    \ No newline at end of file diff --git a/numpy/npyffi/index.html b/numpy/npyffi/index.html index 6760bd096..1e2765722 100644 --- a/numpy/npyffi/index.html +++ b/numpy/npyffi/index.html @@ -1,3 +1,3 @@ -numpy::npyffi - Rust

    Module numpy::npyffi

    source ·
    Expand description

    Low-Level bindings for NumPy C API.

    +numpy::npyffi - Rust
    numpy

    Module npyffi

    source
    Expand description

    Low-Level bindings for NumPy C API.

    https://numpy.org/doc/stable/reference/c-api

    -

    Re-exports§

    Modules§

    Constants§

    Functions§

    • Returns whether the runtime numpy version is 2.0 or greater.
    \ No newline at end of file +

    Re-exports§

    Modules§

    Constants§

    Functions§

    • Returns whether the runtime numpy version is 2.0 or greater.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_ALIGNMENT.html b/numpy/npyffi/objects/fn.PyDataType_ALIGNMENT.html index e43c64744..db0b89272 100644 --- a/numpy/npyffi/objects/fn.PyDataType_ALIGNMENT.html +++ b/numpy/npyffi/objects/fn.PyDataType_ALIGNMENT.html @@ -1,4 +1,4 @@ -PyDataType_ALIGNMENT in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_ALIGNMENT

    source ·
    pub unsafe fn PyDataType_ALIGNMENT<'py>(
    +PyDataType_ALIGNMENT in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_ALIGNMENT

    source
    pub unsafe fn PyDataType_ALIGNMENT<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    +    dtype: *const PyArray_Descr,
     ) -> npy_intp
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_C_METADATA.html b/numpy/npyffi/objects/fn.PyDataType_C_METADATA.html index 6eae7cec3..7f19d94ad 100644 --- a/numpy/npyffi/objects/fn.PyDataType_C_METADATA.html +++ b/numpy/npyffi/objects/fn.PyDataType_C_METADATA.html @@ -1,4 +1,4 @@ -PyDataType_C_METADATA in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_C_METADATA

    source ·
    pub unsafe fn PyDataType_C_METADATA<'py>(
    +PyDataType_C_METADATA in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_C_METADATA

    source
    pub unsafe fn PyDataType_C_METADATA<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    -) -> *mut NpyAuxData
    \ No newline at end of file + dtype: *const PyArray_Descr, +) -> *mut NpyAuxData
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_ELSIZE.html b/numpy/npyffi/objects/fn.PyDataType_ELSIZE.html index 79a409ba5..8d1c95772 100644 --- a/numpy/npyffi/objects/fn.PyDataType_ELSIZE.html +++ b/numpy/npyffi/objects/fn.PyDataType_ELSIZE.html @@ -1,4 +1,4 @@ -PyDataType_ELSIZE in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_ELSIZE

    source ·
    pub unsafe fn PyDataType_ELSIZE<'py>(
    +PyDataType_ELSIZE in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_ELSIZE

    source
    pub unsafe fn PyDataType_ELSIZE<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    +    dtype: *const PyArray_Descr,
     ) -> npy_intp
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_FIELDS.html b/numpy/npyffi/objects/fn.PyDataType_FIELDS.html index 8746e97b2..05ba80f23 100644 --- a/numpy/npyffi/objects/fn.PyDataType_FIELDS.html +++ b/numpy/npyffi/objects/fn.PyDataType_FIELDS.html @@ -1,4 +1,4 @@ -PyDataType_FIELDS in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_FIELDS

    source ·
    pub unsafe fn PyDataType_FIELDS<'py>(
    +PyDataType_FIELDS in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_FIELDS

    source
    pub unsafe fn PyDataType_FIELDS<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    -) -> *mut PyObject
    \ No newline at end of file + dtype: *const PyArray_Descr, +) -> *mut PyObject
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_FLAGS.html b/numpy/npyffi/objects/fn.PyDataType_FLAGS.html index 57c258873..d27b938f7 100644 --- a/numpy/npyffi/objects/fn.PyDataType_FLAGS.html +++ b/numpy/npyffi/objects/fn.PyDataType_FLAGS.html @@ -1,4 +1,4 @@ -PyDataType_FLAGS in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_FLAGS

    source ·
    pub unsafe fn PyDataType_FLAGS<'py>(
    +PyDataType_FLAGS in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_FLAGS

    source
    pub unsafe fn PyDataType_FLAGS<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    +    dtype: *const PyArray_Descr,
     ) -> npy_uint64
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_ISLEGACY.html b/numpy/npyffi/objects/fn.PyDataType_ISLEGACY.html index 608d6583a..b5db30035 100644 --- a/numpy/npyffi/objects/fn.PyDataType_ISLEGACY.html +++ b/numpy/npyffi/objects/fn.PyDataType_ISLEGACY.html @@ -1 +1 @@ -PyDataType_ISLEGACY in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_ISLEGACY

    source ·
    pub unsafe fn PyDataType_ISLEGACY(dtype: *const PyArray_Descr) -> bool
    \ No newline at end of file +PyDataType_ISLEGACY in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_ISLEGACY

    source
    pub unsafe fn PyDataType_ISLEGACY(dtype: *const PyArray_Descr) -> bool
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_METADATA.html b/numpy/npyffi/objects/fn.PyDataType_METADATA.html index 8e53d62dc..278fbb478 100644 --- a/numpy/npyffi/objects/fn.PyDataType_METADATA.html +++ b/numpy/npyffi/objects/fn.PyDataType_METADATA.html @@ -1,4 +1,4 @@ -PyDataType_METADATA in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_METADATA

    source ·
    pub unsafe fn PyDataType_METADATA<'py>(
    +PyDataType_METADATA in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_METADATA

    source
    pub unsafe fn PyDataType_METADATA<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    -) -> *mut PyObject
    \ No newline at end of file + dtype: *const PyArray_Descr, +) -> *mut PyObject
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_NAMES.html b/numpy/npyffi/objects/fn.PyDataType_NAMES.html index 00e71a9ec..72fae9d71 100644 --- a/numpy/npyffi/objects/fn.PyDataType_NAMES.html +++ b/numpy/npyffi/objects/fn.PyDataType_NAMES.html @@ -1,4 +1,4 @@ -PyDataType_NAMES in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_NAMES

    source ·
    pub unsafe fn PyDataType_NAMES<'py>(
    +PyDataType_NAMES in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_NAMES

    source
    pub unsafe fn PyDataType_NAMES<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    -) -> *mut PyObject
    \ No newline at end of file + dtype: *const PyArray_Descr, +) -> *mut PyObject
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_SET_ELSIZE.html b/numpy/npyffi/objects/fn.PyDataType_SET_ELSIZE.html index 0ba9a46fa..8d3ab381d 100644 --- a/numpy/npyffi/objects/fn.PyDataType_SET_ELSIZE.html +++ b/numpy/npyffi/objects/fn.PyDataType_SET_ELSIZE.html @@ -1,5 +1,5 @@ -PyDataType_SET_ELSIZE in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_SET_ELSIZE

    source ·
    pub unsafe fn PyDataType_SET_ELSIZE<'py>(
    +PyDataType_SET_ELSIZE in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_SET_ELSIZE

    source
    pub unsafe fn PyDataType_SET_ELSIZE<'py>(
         py: Python<'py>,
    -    dtype: *mut PyArray_Descr,
    +    dtype: *mut PyArray_Descr,
         size: npy_intp,
     )
    \ No newline at end of file diff --git a/numpy/npyffi/objects/fn.PyDataType_SUBARRAY.html b/numpy/npyffi/objects/fn.PyDataType_SUBARRAY.html index 3dc971cef..136603b40 100644 --- a/numpy/npyffi/objects/fn.PyDataType_SUBARRAY.html +++ b/numpy/npyffi/objects/fn.PyDataType_SUBARRAY.html @@ -1,4 +1,4 @@ -PyDataType_SUBARRAY in numpy::npyffi::objects - Rust

    Function numpy::npyffi::objects::PyDataType_SUBARRAY

    source ·
    pub unsafe fn PyDataType_SUBARRAY<'py>(
    +PyDataType_SUBARRAY in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Function PyDataType_SUBARRAY

    source
    pub unsafe fn PyDataType_SUBARRAY<'py>(
         py: Python<'py>,
    -    dtype: *const PyArray_Descr,
    -) -> *mut PyArray_ArrayDescr
    \ No newline at end of file + dtype: *const PyArray_Descr, +) -> *mut PyArray_ArrayDescr
    \ No newline at end of file diff --git a/numpy/npyffi/objects/index.html b/numpy/npyffi/objects/index.html index 3f54796f4..81274b7da 100644 --- a/numpy/npyffi/objects/index.html +++ b/numpy/npyffi/objects/index.html @@ -1,3 +1,3 @@ -numpy::npyffi::objects - Rust

    Module numpy::npyffi::objects

    source ·
    Expand description

    Low-Lebel binding for NumPy C API C-objects

    +numpy::npyffi::objects - Rust
    numpy::npyffi

    Module objects

    source
    Expand description

    Structs§

    Functions§

    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 76e19af24..8063c1eff 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

    Struct numpy::npyffi::objects::NpyAuxData

    source ·
    #[repr(C)]
    pub struct NpyAuxData { +NpyAuxData in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct NpyAuxData

    source
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.NpyIter.html b/numpy/npyffi/objects/struct.NpyIter.html index 8bdfbeac2..099a2f5dd 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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
    numpy::npyffi::objects

    Struct 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    §

    impl<T> Ungil for T
    where + T: Send,

    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayDTypeMeta_Spec.html b/numpy/npyffi/objects/struct.PyArrayDTypeMeta_Spec.html index 4a466aeee..0a21b01e6 100644 --- a/numpy/npyffi/objects/struct.PyArrayDTypeMeta_Spec.html +++ b/numpy/npyffi/objects/struct.PyArrayDTypeMeta_Spec.html @@ -1,21 +1,21 @@ -PyArrayDTypeMeta_Spec in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayDTypeMeta_Spec

    source ·
    #[repr(C)]
    pub struct PyArrayDTypeMeta_Spec { - pub typeobj: *mut PyTypeObject, - pub flags: c_int, - pub casts: *mut *mut PyArrayMethod_Spec, - pub slots: *mut PyType_Slot, - pub baseclass: *mut PyTypeObject, -}

    Fields§

    §typeobj: *mut PyTypeObject§flags: c_int§casts: *mut *mut PyArrayMethod_Spec§slots: *mut PyType_Slot§baseclass: *mut PyTypeObject

    Trait Implementations§

    source§

    impl Clone for PyArrayDTypeMeta_Spec

    source§

    fn clone(&self) -> PyArrayDTypeMeta_Spec

    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 PyArrayDTypeMeta_Spec

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +PyArrayDTypeMeta_Spec in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayDTypeMeta_Spec

    source
    #[repr(C)]
    pub struct PyArrayDTypeMeta_Spec { + pub typeobj: *mut PyTypeObject, + pub flags: c_int, + pub casts: *mut *mut PyArrayMethod_Spec, + pub slots: *mut PyType_Slot, + pub baseclass: *mut PyTypeObject, +}

    Fields§

    §typeobj: *mut PyTypeObject§flags: c_int§casts: *mut *mut PyArrayMethod_Spec§slots: *mut PyType_Slot§baseclass: *mut PyTypeObject

    Trait Implementations§

    source§

    impl Clone for PyArrayDTypeMeta_Spec

    source§

    fn clone(&self) -> PyArrayDTypeMeta_Spec

    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 PyArrayDTypeMeta_Spec

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayFlagsObject.html b/numpy/npyffi/objects/struct.PyArrayFlagsObject.html index 4b9becee5..30b000ae2 100644 --- a/numpy/npyffi/objects/struct.PyArrayFlagsObject.html +++ b/numpy/npyffi/objects/struct.PyArrayFlagsObject.html @@ -1,17 +1,17 @@ -PyArrayFlagsObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayFlagsObject

    source ·
    #[repr(C)]
    pub struct PyArrayFlagsObject { +PyArrayFlagsObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayFlagsObject

    source
    #[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

    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

    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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayInterface.html b/numpy/npyffi/objects/struct.PyArrayInterface.html index ae444dcdf..3c59cd3dc 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

    Struct numpy::npyffi::objects::PyArrayInterface

    source ·
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +PyArrayInterface in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayInterface

    source
    #[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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayIterObject.html b/numpy/npyffi/objects/struct.PyArrayIterObject.html index 4197fd29c..89185e229 100644 --- a/numpy/npyffi/objects/struct.PyArrayIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayIterObject.html @@ -1,30 +1,30 @@ -PyArrayIterObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayIterObject

    source ·
    #[repr(C)]
    pub struct PyArrayIterObject {
    Show 16 fields +PyArrayIterObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayIterObject

    source
    #[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

    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

    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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayMapIterObject.html b/numpy/npyffi/objects/struct.PyArrayMapIterObject.html index 8edb0d3ef..8dc53c53a 100644 --- a/numpy/npyffi/objects/struct.PyArrayMapIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayMapIterObject.html @@ -1,47 +1,47 @@ -PyArrayMapIterObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayMapIterObject

    source ·
    #[repr(C)]
    pub struct PyArrayMapIterObject {
    Show 33 fields +PyArrayMapIterObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayMapIterObject

    source
    #[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

    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

    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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayMethod_Spec.html b/numpy/npyffi/objects/struct.PyArrayMethod_Spec.html index 34d355612..fdd7bb17a 100644 --- a/numpy/npyffi/objects/struct.PyArrayMethod_Spec.html +++ b/numpy/npyffi/objects/struct.PyArrayMethod_Spec.html @@ -1,23 +1,23 @@ -PyArrayMethod_Spec in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayMethod_Spec

    source ·
    #[repr(C)]
    pub struct PyArrayMethod_Spec { - pub name: *const c_char, - pub nin: c_int, - pub nout: c_int, +PyArrayMethod_Spec in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayMethod_Spec

    source
    #[repr(C)]
    pub struct PyArrayMethod_Spec { + pub name: *const c_char, + pub nin: c_int, + pub nout: c_int, pub casting: NPY_CASTING, pub flags: NPY_ARRAYMETHOD_FLAGS, - pub dtypes: *mut *mut PyArray_DTypeMeta, - pub slots: *mut PyType_Slot, -}

    Fields§

    §name: *const c_char§nin: c_int§nout: c_int§casting: NPY_CASTING§flags: NPY_ARRAYMETHOD_FLAGS§dtypes: *mut *mut PyArray_DTypeMeta§slots: *mut PyType_Slot

    Trait Implementations§

    source§

    impl Clone for PyArrayMethod_Spec

    source§

    fn clone(&self) -> PyArrayMethod_Spec

    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 PyArrayMethod_Spec

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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 dtypes: *mut *mut PyArray_DTypeMeta, + pub slots: *mut PyType_Slot, +}

    Fields§

    §name: *const c_char§nin: c_int§nout: c_int§casting: NPY_CASTING§flags: NPY_ARRAYMETHOD_FLAGS§dtypes: *mut *mut PyArray_DTypeMeta§slots: *mut PyType_Slot

    Trait Implementations§

    source§

    impl Clone for PyArrayMethod_Spec

    source§

    fn clone(&self) -> PyArrayMethod_Spec

    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 PyArrayMethod_Spec

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html b/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html index 76d0f3658..f3d9cf737 100644 --- a/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayMultiIterObject.html @@ -1,21 +1,21 @@ -PyArrayMultiIterObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayMultiIterObject

    source ·
    #[repr(C)]
    pub struct PyArrayMultiIterObject { +PyArrayMultiIterObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayMultiIterObject

    source
    #[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]

    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]

    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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html b/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html index dc27853ac..f1dddfb7f 100644 --- a/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html +++ b/numpy/npyffi/objects/struct.PyArrayNeighborhoodIterObject.html @@ -1,35 +1,35 @@ -PyArrayNeighborhoodIterObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayNeighborhoodIterObject

    source ·
    #[repr(C)]
    pub struct PyArrayNeighborhoodIterObject {
    Show 21 fields +PyArrayNeighborhoodIterObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayNeighborhoodIterObject

    source
    #[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

    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

    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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArrayObject.html b/numpy/npyffi/objects/struct.PyArrayObject.html index c0f9c2d10..f9e4fce56 100644 --- a/numpy/npyffi/objects/struct.PyArrayObject.html +++ b/numpy/npyffi/objects/struct.PyArrayObject.html @@ -1,23 +1,23 @@ -PyArrayObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArrayObject

    source ·
    #[repr(C)]
    pub struct PyArrayObject { +PyArrayObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArrayObject

    source
    #[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

    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

    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

    source§

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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 a5026cd73..10f1f71cb 100644 --- a/numpy/npyffi/objects/struct.PyArray_ArrFuncs.html +++ b/numpy/npyffi/objects/struct.PyArray_ArrFuncs.html @@ -1,5 +1,5 @@ -PyArray_ArrFuncs in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArray_ArrFuncs

    source ·
    #[repr(C)]
    pub struct PyArray_ArrFuncs {
    Show 23 fields - pub cast: [PyArray_VectorUnaryFunc; 21], +PyArray_ArrFuncs in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_ArrFuncs

    source
    #[repr(C)]
    pub struct PyArray_ArrFuncs {
    Show 23 fields + pub cast: [PyArray_VectorUnaryFunc; 21], pub getitem: PyArray_GetItemFunc, pub setitem: PyArray_SetItemFunc, pub copyswapn: PyArray_CopySwapNFunc, @@ -12,28 +12,28 @@ 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

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

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

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

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

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

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

    source§

    type Error = Infallible

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

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

    Performs the conversion.
    source§

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

    source§

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

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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 ff8c68e4f..334f0507f 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

    Struct numpy::npyffi::objects::PyArray_ArrayDescr

    source ·
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +PyArray_ArrayDescr in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_ArrayDescr

    source
    #[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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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 f37834a03..7dc4458c8 100644 --- a/numpy/npyffi/objects/struct.PyArray_Chunk.html +++ b/numpy/npyffi/objects/struct.PyArray_Chunk.html @@ -1,19 +1,19 @@ -PyArray_Chunk in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArray_Chunk

    source ·
    #[repr(C)]
    pub struct PyArray_Chunk { +PyArray_Chunk in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_Chunk

    source
    #[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

    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

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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 a321db7e3..b61c1a38e 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

    Struct numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData

    source ·
    #[repr(C)]
    pub struct PyArray_DatetimeDTypeMetaData { +PyArray_DatetimeDTypeMetaData in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_DatetimeDTypeMetaData

    source
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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 7a242df3e..2084c933f 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

    Struct numpy::npyffi::objects::PyArray_DatetimeMetaData

    source ·
    #[repr(C)]
    pub struct PyArray_DatetimeMetaData { +PyArray_DatetimeMetaData in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_DatetimeMetaData

    source
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 17e274c12..527e5a21d 100644 --- a/numpy/npyffi/objects/struct.PyArray_Descr.html +++ b/numpy/npyffi/objects/struct.PyArray_Descr.html @@ -1,21 +1,21 @@ -PyArray_Descr in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArray_Descr

    source ·
    #[repr(C)]
    pub struct PyArray_Descr { +PyArray_Descr in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_Descr

    source
    #[repr(C)]
    pub struct PyArray_Descr { pub ob_base: PyObject, - pub typeobj: *mut PyTypeObject, - pub kind: c_char, - pub type_: c_char, - pub byteorder: c_char, - pub _former_flags: c_char, - pub type_num: c_int, -}

    Fields§

    §ob_base: PyObject§typeobj: *mut PyTypeObject§kind: c_char§type_: c_char§byteorder: c_char§_former_flags: c_char§type_num: c_int

    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 typeobj: *mut PyTypeObject, + pub kind: c_char, + pub type_: c_char, + pub byteorder: c_char, + pub _former_flags: c_char, + pub type_num: c_int, +}

    Fields§

    §ob_base: PyObject§typeobj: *mut PyTypeObject§kind: c_char§type_: c_char§byteorder: c_char§_former_flags: c_char§type_num: c_int

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_DescrProto.html b/numpy/npyffi/objects/struct.PyArray_DescrProto.html index 9c522a477..ee3f5cd28 100644 --- a/numpy/npyffi/objects/struct.PyArray_DescrProto.html +++ b/numpy/npyffi/objects/struct.PyArray_DescrProto.html @@ -1,30 +1,30 @@ -PyArray_DescrProto in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArray_DescrProto

    source ·
    #[repr(C)]
    pub struct PyArray_DescrProto {
    Show 16 fields +PyArray_DescrProto in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_DescrProto

    source
    #[repr(C)]
    pub struct PyArray_DescrProto {
    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

    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

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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 4424794c2..ae2f03bbf 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

    Struct numpy::npyffi::objects::PyArray_Dims

    source ·
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +PyArray_Dims in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_Dims

    source
    #[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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyArray_StringDTypeObject.html b/numpy/npyffi/objects/struct.PyArray_StringDTypeObject.html index 02bdb1ed4..2c4847fef 100644 --- a/numpy/npyffi/objects/struct.PyArray_StringDTypeObject.html +++ b/numpy/npyffi/objects/struct.PyArray_StringDTypeObject.html @@ -1,23 +1,23 @@ -PyArray_StringDTypeObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyArray_StringDTypeObject

    source ·
    #[repr(C)]
    pub struct PyArray_StringDTypeObject { +PyArray_StringDTypeObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyArray_StringDTypeObject

    source
    #[repr(C)]
    pub struct PyArray_StringDTypeObject { pub base: PyArray_Descr, - pub na_object: *mut PyObject, - pub coerce: c_char, - pub has_nan_na: c_char, - pub has_string_na: c_char, - pub array_owned: c_char, + pub na_object: *mut PyObject, + pub coerce: c_char, + pub has_nan_na: c_char, + pub has_string_na: c_char, + pub array_owned: c_char, pub default_string: npy_static_string, pub na_name: npy_static_string, - pub allocator: *mut npy_string_allocator, -}

    Fields§

    §base: PyArray_Descr§na_object: *mut PyObject§coerce: c_char§has_nan_na: c_char§has_string_na: c_char§array_owned: c_char§default_string: npy_static_string§na_name: npy_static_string§allocator: *mut npy_string_allocator

    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 allocator: *mut npy_string_allocator, +}

    Fields§

    §base: PyArray_Descr§na_object: *mut PyObject§coerce: c_char§has_nan_na: c_char§has_string_na: c_char§array_owned: c_char§default_string: npy_static_string§na_name: npy_static_string§allocator: *mut npy_string_allocator

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.PyUFuncObject.html b/numpy/npyffi/objects/struct.PyUFuncObject.html index 879acd4ef..cc08620d0 100644 --- a/numpy/npyffi/objects/struct.PyUFuncObject.html +++ b/numpy/npyffi/objects/struct.PyUFuncObject.html @@ -1,41 +1,41 @@ -PyUFuncObject in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::PyUFuncObject

    source ·
    #[repr(C)]
    pub struct PyUFuncObject {
    Show 27 fields +PyUFuncObject in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct PyUFuncObject

    source
    #[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

    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

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct._PyArray_DescrNumPy2.html b/numpy/npyffi/objects/struct._PyArray_DescrNumPy2.html index 1f906d8e6..80ec4d408 100644 --- a/numpy/npyffi/objects/struct._PyArray_DescrNumPy2.html +++ b/numpy/npyffi/objects/struct._PyArray_DescrNumPy2.html @@ -1,27 +1,27 @@ -_PyArray_DescrNumPy2 in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::_PyArray_DescrNumPy2

    source ·
    #[repr(C)]
    pub struct _PyArray_DescrNumPy2 {
    Show 13 fields +_PyArray_DescrNumPy2 in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct _PyArray_DescrNumPy2

    source
    #[repr(C)]
    pub struct _PyArray_DescrNumPy2 {
    Show 13 fields pub ob_base: PyObject, - pub typeobj: *mut PyTypeObject, - pub kind: c_char, - pub type_: c_char, - pub byteorder: c_char, - pub _former_flags: c_char, - pub type_num: c_int, + pub typeobj: *mut PyTypeObject, + pub kind: c_char, + pub type_: c_char, + pub byteorder: c_char, + pub _former_flags: c_char, + pub type_num: c_int, pub flags: npy_uint64, pub elsize: npy_intp, pub alignment: npy_intp, - pub metadata: *mut PyObject, + pub metadata: *mut PyObject, pub hash: npy_hash_t, - pub reserved_null: [*mut c_void; 2], -
    }

    Fields§

    §ob_base: PyObject§typeobj: *mut PyTypeObject§kind: c_char§type_: c_char§byteorder: c_char§_former_flags: c_char§type_num: c_int§flags: npy_uint64§elsize: npy_intp§alignment: npy_intp§metadata: *mut PyObject§hash: npy_hash_t§reserved_null: [*mut c_void; 2]

    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_null: [*mut c_void; 2], +
    }

    Fields§

    §ob_base: PyObject§typeobj: *mut PyTypeObject§kind: c_char§type_: c_char§byteorder: c_char§_former_flags: c_char§type_num: c_int§flags: npy_uint64§elsize: npy_intp§alignment: npy_intp§metadata: *mut PyObject§hash: npy_hash_t§reserved_null: [*mut c_void; 2]

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/npyffi/objects/struct.npy_static_string.html b/numpy/npyffi/objects/struct.npy_static_string.html index 6a01aee06..5b20f9c21 100644 --- a/numpy/npyffi/objects/struct.npy_static_string.html +++ b/numpy/npyffi/objects/struct.npy_static_string.html @@ -1,18 +1,18 @@ -npy_static_string in numpy::npyffi::objects - Rust

    Struct numpy::npyffi::objects::npy_static_string

    source ·
    #[repr(C)]
    pub struct npy_static_string { - pub size: usize, - pub buf: *const c_char, -}

    Fields§

    §size: usize§buf: *const c_char

    Trait Implementations§

    source§

    impl Clone for npy_static_string

    source§

    fn clone(&self) -> npy_static_string

    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 npy_static_string

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +npy_static_string in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Struct npy_static_string

    source
    #[repr(C)]
    pub struct npy_static_string { + pub size: usize, + pub buf: *const c_char, +}

    Fields§

    §size: usize§buf: *const c_char

    Trait Implementations§

    source§

    impl Clone for npy_static_string

    source§

    fn clone(&self) -> npy_static_string

    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 npy_static_string

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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 2427e1fe0..fd81016b9 100644 --- a/numpy/npyffi/objects/type.NpyAuxData_CloneFunc.html +++ b/numpy/npyffi/objects/type.NpyAuxData_CloneFunc.html @@ -1,6 +1,6 @@ -NpyAuxData_CloneFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::NpyAuxData_CloneFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias NpyAuxData_CloneFunc

    source
    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 c20f6f53f..e6ab13969 100644 --- a/numpy/npyffi/objects/type.NpyAuxData_FreeFunc.html +++ b/numpy/npyffi/objects/type.NpyAuxData_FreeFunc.html @@ -1,6 +1,6 @@ -NpyAuxData_FreeFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::NpyAuxData_FreeFunc

    source ·
    pub type NpyAuxData_FreeFunc = Option<unsafe extern "C" fn(_: *mut NpyAuxData)>;

    Aliased Type§

    enum NpyAuxData_FreeFunc {
    +NpyAuxData_FreeFunc in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Type Alias NpyAuxData_FreeFunc

    source
    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 4caa7f18a..ff127591b 100644 --- a/numpy/npyffi/objects/type.NpyIter_GetMultiIndexFunc.html +++ b/numpy/npyffi/objects/type.NpyIter_GetMultiIndexFunc.html @@ -1,6 +1,6 @@ -NpyIter_GetMultiIndexFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::NpyIter_GetMultiIndexFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias NpyIter_GetMultiIndexFunc

    source
    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 60f254301..81b14ca53 100644 --- a/numpy/npyffi/objects/type.NpyIter_IterNextFunc.html +++ b/numpy/npyffi/objects/type.NpyIter_IterNextFunc.html @@ -1,6 +1,6 @@ -NpyIter_IterNextFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::NpyIter_IterNextFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias NpyIter_IterNextFunc

    source
    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 147dfb89b..5698c17fa 100644 --- a/numpy/npyffi/objects/type.PyArray_ArgFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ArgFunc.html @@ -1,6 +1,6 @@ -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
    numpy::npyffi::objects

    Type Alias 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 71ab38214..d4f961163 100644 --- a/numpy/npyffi/objects/type.PyArray_ArgPartitionFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ArgPartitionFunc.html @@ -1,6 +1,6 @@ -PyArray_ArgPartitionFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_ArgPartitionFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_ArgPartitionFunc

    source
    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 540ed0191..19d4a56ec 100644 --- a/numpy/npyffi/objects/type.PyArray_ArgSortFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ArgSortFunc.html @@ -1,6 +1,6 @@ -PyArray_ArgSortFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_ArgSortFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_ArgSortFunc

    source
    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 207c69d57..b9501bf0e 100644 --- a/numpy/npyffi/objects/type.PyArray_CompareFunc.html +++ b/numpy/npyffi/objects/type.PyArray_CompareFunc.html @@ -1,6 +1,6 @@ -PyArray_CompareFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_CompareFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_CompareFunc

    source
    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 0084c8df1..8ade1de11 100644 --- a/numpy/npyffi/objects/type.PyArray_CopySwapFunc.html +++ b/numpy/npyffi/objects/type.PyArray_CopySwapFunc.html @@ -1,6 +1,6 @@ -PyArray_CopySwapFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_CopySwapFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_CopySwapFunc

    source
    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 755a7b498..811bcbe7f 100644 --- a/numpy/npyffi/objects/type.PyArray_CopySwapNFunc.html +++ b/numpy/npyffi/objects/type.PyArray_CopySwapNFunc.html @@ -1,6 +1,6 @@ -PyArray_CopySwapNFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_CopySwapNFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_CopySwapNFunc

    source
    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_DTypeMeta.html b/numpy/npyffi/objects/type.PyArray_DTypeMeta.html index 8999136c5..fff3b25be 100644 --- a/numpy/npyffi/objects/type.PyArray_DTypeMeta.html +++ b/numpy/npyffi/objects/type.PyArray_DTypeMeta.html @@ -1,51 +1,51 @@ -PyArray_DTypeMeta in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_DTypeMeta

    source ·
    pub type PyArray_DTypeMeta = PyTypeObject;

    Aliased Type§

    struct PyArray_DTypeMeta {
    Show 49 fields +PyArray_DTypeMeta in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Type Alias PyArray_DTypeMeta

    source
    pub type PyArray_DTypeMeta = PyTypeObject;

    Aliased Type§

    struct PyArray_DTypeMeta {
    Show 49 fields pub ob_base: PyVarObject, - pub tp_name: *const i8, - pub tp_basicsize: isize, - pub tp_itemsize: isize, - pub tp_dealloc: Option<unsafe extern "C" fn(_: *mut PyObject)>, - pub tp_vectorcall_offset: isize, - pub tp_getattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8) -> *mut PyObject>, - pub tp_setattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8, _: *mut PyObject) -> i32>, - pub tp_as_async: *mut PyAsyncMethods, - pub tp_repr: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, - pub tp_as_number: *mut PyNumberMethods, - pub tp_as_sequence: *mut PySequenceMethods, - pub tp_as_mapping: *mut PyMappingMethods, - pub tp_hash: Option<unsafe extern "C" fn(_: *mut PyObject) -> isize>, - pub tp_call: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, - pub tp_str: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, - pub tp_getattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, - pub tp_setattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>, - pub tp_as_buffer: *mut PyBufferProcs, - pub tp_flags: u64, - pub tp_doc: *const i8, - pub tp_traverse: Option<unsafe extern "C" fn(_: *mut PyObject, _: unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void) -> i32, _: *mut c_void) -> i32>, - pub tp_clear: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>, - pub tp_richcompare: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: i32) -> *mut PyObject>, - pub tp_weaklistoffset: isize, - pub tp_iter: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, - pub tp_iternext: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, - pub tp_methods: *mut PyMethodDef, - pub tp_members: *mut PyMemberDef, - pub tp_getset: *mut PyGetSetDef, - pub tp_base: *mut PyTypeObject, - pub tp_dict: *mut PyObject, - pub tp_descr_get: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, - pub tp_descr_set: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>, - pub tp_dictoffset: isize, - pub tp_init: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>, - pub tp_alloc: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: isize) -> *mut PyObject>, - pub tp_new: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, - pub tp_free: Option<unsafe extern "C" fn(_: *mut c_void)>, - pub tp_is_gc: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>, - pub tp_bases: *mut PyObject, - pub tp_mro: *mut PyObject, - pub tp_cache: *mut PyObject, - pub tp_subclasses: *mut PyObject, - pub tp_weaklist: *mut PyObject, - pub tp_del: Option<unsafe extern "C" fn(_: *mut PyObject)>, - pub tp_version_tag: u32, - pub tp_finalize: Option<unsafe extern "C" fn(_: *mut PyObject)>, - pub tp_vectorcall: Option<unsafe extern "C" fn(_: *mut PyObject, _: *const *mut PyObject, _: usize, _: *mut PyObject) -> *mut PyObject>, -
    }

    Fields§

    §ob_base: PyVarObject§tp_name: *const i8§tp_basicsize: isize§tp_itemsize: isize§tp_dealloc: Option<unsafe extern "C" fn(_: *mut PyObject)>§tp_vectorcall_offset: isize§tp_getattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8) -> *mut PyObject>§tp_setattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8, _: *mut PyObject) -> i32>§tp_as_async: *mut PyAsyncMethods§tp_repr: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_as_number: *mut PyNumberMethods§tp_as_sequence: *mut PySequenceMethods§tp_as_mapping: *mut PyMappingMethods§tp_hash: Option<unsafe extern "C" fn(_: *mut PyObject) -> isize>§tp_call: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_str: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_getattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_setattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>§tp_as_buffer: *mut PyBufferProcs§tp_flags: u64§tp_doc: *const i8§tp_traverse: Option<unsafe extern "C" fn(_: *mut PyObject, _: unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void) -> i32, _: *mut c_void) -> i32>§tp_clear: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>§tp_richcompare: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: i32) -> *mut PyObject>§tp_weaklistoffset: isize§tp_iter: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_iternext: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_methods: *mut PyMethodDef§tp_members: *mut PyMemberDef§tp_getset: *mut PyGetSetDef§tp_base: *mut PyTypeObject§tp_dict: *mut PyObject§tp_descr_get: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_descr_set: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>§tp_dictoffset: isize§tp_init: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>§tp_alloc: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: isize) -> *mut PyObject>§tp_new: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_free: Option<unsafe extern "C" fn(_: *mut c_void)>§tp_is_gc: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>§tp_bases: *mut PyObject§tp_mro: *mut PyObject§tp_cache: *mut PyObject§tp_subclasses: *mut PyObject§tp_weaklist: *mut PyObject§tp_del: Option<unsafe extern "C" fn(_: *mut PyObject)>§tp_version_tag: u32§tp_finalize: Option<unsafe extern "C" fn(_: *mut PyObject)>§tp_vectorcall: Option<unsafe extern "C" fn(_: *mut PyObject, _: *const *mut PyObject, _: usize, _: *mut PyObject) -> *mut PyObject>
    \ No newline at end of file + pub tp_name: *const i8, + pub tp_basicsize: isize, + pub tp_itemsize: isize, + pub tp_dealloc: Option<unsafe extern "C" fn(_: *mut PyObject)>, + pub tp_vectorcall_offset: isize, + pub tp_getattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8) -> *mut PyObject>, + pub tp_setattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8, _: *mut PyObject) -> i32>, + pub tp_as_async: *mut PyAsyncMethods, + pub tp_repr: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, + pub tp_as_number: *mut PyNumberMethods, + pub tp_as_sequence: *mut PySequenceMethods, + pub tp_as_mapping: *mut PyMappingMethods, + pub tp_hash: Option<unsafe extern "C" fn(_: *mut PyObject) -> isize>, + pub tp_call: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, + pub tp_str: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, + pub tp_getattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, + pub tp_setattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>, + pub tp_as_buffer: *mut PyBufferProcs, + pub tp_flags: u64, + pub tp_doc: *const i8, + pub tp_traverse: Option<unsafe extern "C" fn(_: *mut PyObject, _: unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void) -> i32, _: *mut c_void) -> i32>, + pub tp_clear: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>, + pub tp_richcompare: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: i32) -> *mut PyObject>, + pub tp_weaklistoffset: isize, + pub tp_iter: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, + pub tp_iternext: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>, + pub tp_methods: *mut PyMethodDef, + pub tp_members: *mut PyMemberDef, + pub tp_getset: *mut PyGetSetDef, + pub tp_base: *mut PyTypeObject, + pub tp_dict: *mut PyObject, + pub tp_descr_get: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, + pub tp_descr_set: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>, + pub tp_dictoffset: isize, + pub tp_init: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>, + pub tp_alloc: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: isize) -> *mut PyObject>, + pub tp_new: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>, + pub tp_free: Option<unsafe extern "C" fn(_: *mut c_void)>, + pub tp_is_gc: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>, + pub tp_bases: *mut PyObject, + pub tp_mro: *mut PyObject, + pub tp_cache: *mut PyObject, + pub tp_subclasses: *mut PyObject, + pub tp_weaklist: *mut PyObject, + pub tp_del: Option<unsafe extern "C" fn(_: *mut PyObject)>, + pub tp_version_tag: u32, + pub tp_finalize: Option<unsafe extern "C" fn(_: *mut PyObject)>, + pub tp_vectorcall: Option<unsafe extern "C" fn(_: *mut PyObject, _: *const *mut PyObject, _: usize, _: *mut PyObject) -> *mut PyObject>, +
    }

    Fields§

    §ob_base: PyVarObject§tp_name: *const i8§tp_basicsize: isize§tp_itemsize: isize§tp_dealloc: Option<unsafe extern "C" fn(_: *mut PyObject)>§tp_vectorcall_offset: isize§tp_getattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8) -> *mut PyObject>§tp_setattr: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut i8, _: *mut PyObject) -> i32>§tp_as_async: *mut PyAsyncMethods§tp_repr: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_as_number: *mut PyNumberMethods§tp_as_sequence: *mut PySequenceMethods§tp_as_mapping: *mut PyMappingMethods§tp_hash: Option<unsafe extern "C" fn(_: *mut PyObject) -> isize>§tp_call: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_str: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_getattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_setattro: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>§tp_as_buffer: *mut PyBufferProcs§tp_flags: u64§tp_doc: *const i8§tp_traverse: Option<unsafe extern "C" fn(_: *mut PyObject, _: unsafe extern "C" fn(_: *mut PyObject, _: *mut c_void) -> i32, _: *mut c_void) -> i32>§tp_clear: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>§tp_richcompare: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: i32) -> *mut PyObject>§tp_weaklistoffset: isize§tp_iter: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_iternext: Option<unsafe extern "C" fn(_: *mut PyObject) -> *mut PyObject>§tp_methods: *mut PyMethodDef§tp_members: *mut PyMemberDef§tp_getset: *mut PyGetSetDef§tp_base: *mut PyTypeObject§tp_dict: *mut PyObject§tp_descr_get: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_descr_set: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>§tp_dictoffset: isize§tp_init: Option<unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> i32>§tp_alloc: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: isize) -> *mut PyObject>§tp_new: Option<unsafe extern "C" fn(_: *mut PyTypeObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject>§tp_free: Option<unsafe extern "C" fn(_: *mut c_void)>§tp_is_gc: Option<unsafe extern "C" fn(_: *mut PyObject) -> i32>§tp_bases: *mut PyObject§tp_mro: *mut PyObject§tp_cache: *mut PyObject§tp_subclasses: *mut PyObject§tp_weaklist: *mut PyObject§tp_del: Option<unsafe extern "C" fn(_: *mut PyObject)>§tp_version_tag: u32§tp_finalize: Option<unsafe extern "C" fn(_: *mut PyObject)>§tp_vectorcall: Option<unsafe extern "C" fn(_: *mut PyObject, _: *const *mut PyObject, _: usize, _: *mut PyObject) -> *mut PyObject>
    \ 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 390414d41..7612ecdd2 100644 --- a/numpy/npyffi/objects/type.PyArray_DotFunc.html +++ b/numpy/npyffi/objects/type.PyArray_DotFunc.html @@ -1,6 +1,6 @@ -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
    numpy::npyffi::objects

    Type Alias 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 46cf6bd15..49938726e 100644 --- a/numpy/npyffi/objects/type.PyArray_FastClipFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FastClipFunc.html @@ -1,6 +1,6 @@ -PyArray_FastClipFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_FastClipFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_FastClipFunc

    source
    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 09d9fa243..5464733a8 100644 --- a/numpy/npyffi/objects/type.PyArray_FastPutmaskFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FastPutmaskFunc.html @@ -1,6 +1,6 @@ -PyArray_FastPutmaskFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_FastPutmaskFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_FastPutmaskFunc

    source
    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 848c27f13..ebf4142ec 100644 --- a/numpy/npyffi/objects/type.PyArray_FastTakeFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FastTakeFunc.html @@ -1,6 +1,6 @@ -PyArray_FastTakeFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_FastTakeFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_FastTakeFunc

    source
    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 d226c4d67..512661363 100644 --- a/numpy/npyffi/objects/type.PyArray_FillFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FillFunc.html @@ -1,6 +1,6 @@ -PyArray_FillFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_FillFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_FillFunc

    source
    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 b01b3786b..803ac3da2 100644 --- a/numpy/npyffi/objects/type.PyArray_FillWithScalarFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FillWithScalarFunc.html @@ -1,6 +1,6 @@ -PyArray_FillWithScalarFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_FillWithScalarFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_FillWithScalarFunc

    source
    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 f0aa3f0ab..e746f7b7f 100644 --- a/numpy/npyffi/objects/type.PyArray_FromStrFunc.html +++ b/numpy/npyffi/objects/type.PyArray_FromStrFunc.html @@ -1,6 +1,6 @@ -PyArray_FromStrFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_FromStrFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_FromStrFunc

    source
    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 527277ae9..82b25aee2 100644 --- a/numpy/npyffi/objects/type.PyArray_GetItemFunc.html +++ b/numpy/npyffi/objects/type.PyArray_GetItemFunc.html @@ -1,6 +1,6 @@ -PyArray_GetItemFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_GetItemFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_GetItemFunc

    source
    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 27e6e24ae..b5c6cc31d 100644 --- a/numpy/npyffi/objects/type.PyArray_NonzeroFunc.html +++ b/numpy/npyffi/objects/type.PyArray_NonzeroFunc.html @@ -1,6 +1,6 @@ -PyArray_NonzeroFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_NonzeroFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_NonzeroFunc

    source
    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 a76174c49..33303abdf 100644 --- a/numpy/npyffi/objects/type.PyArray_PartitionFunc.html +++ b/numpy/npyffi/objects/type.PyArray_PartitionFunc.html @@ -1,6 +1,6 @@ -PyArray_PartitionFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_PartitionFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_PartitionFunc

    source
    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 55c14adaa..0a22642e3 100644 --- a/numpy/npyffi/objects/type.PyArray_ScalarKindFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ScalarKindFunc.html @@ -1,6 +1,6 @@ -PyArray_ScalarKindFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_ScalarKindFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_ScalarKindFunc

    source
    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 0e912d202..7ead500a5 100644 --- a/numpy/npyffi/objects/type.PyArray_ScanFunc.html +++ b/numpy/npyffi/objects/type.PyArray_ScanFunc.html @@ -1,6 +1,6 @@ -PyArray_ScanFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_ScanFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_ScanFunc

    source
    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 a91d7e2d2..20f31877f 100644 --- a/numpy/npyffi/objects/type.PyArray_SetItemFunc.html +++ b/numpy/npyffi/objects/type.PyArray_SetItemFunc.html @@ -1,6 +1,6 @@ -PyArray_SetItemFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_SetItemFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_SetItemFunc

    source
    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 377e1155a..f5bfe4d4b 100644 --- a/numpy/npyffi/objects/type.PyArray_SortFunc.html +++ b/numpy/npyffi/objects/type.PyArray_SortFunc.html @@ -1,6 +1,6 @@ -PyArray_SortFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_SortFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_SortFunc

    source
    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 b6de3cab3..c12a004d1 100644 --- a/numpy/npyffi/objects/type.PyArray_VectorUnaryFunc.html +++ b/numpy/npyffi/objects/type.PyArray_VectorUnaryFunc.html @@ -1,6 +1,6 @@ -PyArray_VectorUnaryFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyArray_VectorUnaryFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyArray_VectorUnaryFunc

    source
    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 6e83cc7bc..a707ab41c 100644 --- a/numpy/npyffi/objects/type.PyDataMem_EventHookFunc.html +++ b/numpy/npyffi/objects/type.PyDataMem_EventHookFunc.html @@ -1,6 +1,6 @@ -PyDataMem_EventHookFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyDataMem_EventHookFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyDataMem_EventHookFunc

    source
    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 fd96aed9b..d97474981 100644 --- a/numpy/npyffi/objects/type.PyUFuncGenericFunction.html +++ b/numpy/npyffi/objects/type.PyUFuncGenericFunction.html @@ -1,6 +1,6 @@ -PyUFuncGenericFunction in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyUFuncGenericFunction

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyUFuncGenericFunction

    source
    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 234cb4e14..df87a4169 100644 --- a/numpy/npyffi/objects/type.PyUFunc_LegacyInnerLoopSelectionFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_LegacyInnerLoopSelectionFunc.html @@ -1,6 +1,6 @@ -PyUFunc_LegacyInnerLoopSelectionFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyUFunc_LegacyInnerLoopSelectionFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyUFunc_LegacyInnerLoopSelectionFunc

    source
    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 ab92a7e6d..b16ce6cb5 100644 --- a/numpy/npyffi/objects/type.PyUFunc_MaskedInnerLoopSelectionFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_MaskedInnerLoopSelectionFunc.html @@ -1,6 +1,6 @@ -PyUFunc_MaskedInnerLoopSelectionFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyUFunc_MaskedInnerLoopSelectionFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyUFunc_MaskedInnerLoopSelectionFunc

    source
    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 6dfb9770c..947a4e31b 100644 --- a/numpy/npyffi/objects/type.PyUFunc_MaskedStridedInnerLoopFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_MaskedStridedInnerLoopFunc.html @@ -1,6 +1,6 @@ -PyUFunc_MaskedStridedInnerLoopFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyUFunc_MaskedStridedInnerLoopFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyUFunc_MaskedStridedInnerLoopFunc

    source
    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 aac8f8feb..f98049964 100644 --- a/numpy/npyffi/objects/type.PyUFunc_TypeResolutionFunc.html +++ b/numpy/npyffi/objects/type.PyUFunc_TypeResolutionFunc.html @@ -1,6 +1,6 @@ -PyUFunc_TypeResolutionFunc in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::PyUFunc_TypeResolutionFunc

    source ·
    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
    numpy::npyffi::objects

    Type Alias PyUFunc_TypeResolutionFunc

    source
    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 61986ab78..282c8a660 100644 --- a/numpy/npyffi/objects/type.npy_iter_get_dataptr_t.html +++ b/numpy/npyffi/objects/type.npy_iter_get_dataptr_t.html @@ -1,6 +1,6 @@ -npy_iter_get_dataptr_t in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::npy_iter_get_dataptr_t

    source ·
    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
    numpy::npyffi::objects

    Type Alias npy_iter_get_dataptr_t

    source
    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/objects/type.npy_packed_static_string.html b/numpy/npyffi/objects/type.npy_packed_static_string.html index 810f9f9e3..80a869bec 100644 --- a/numpy/npyffi/objects/type.npy_packed_static_string.html +++ b/numpy/npyffi/objects/type.npy_packed_static_string.html @@ -1 +1 @@ -npy_packed_static_string in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::npy_packed_static_string

    source ·
    pub type npy_packed_static_string = c_void;

    Aliased Type§

    enum npy_packed_static_string {}

    Variants§

    \ No newline at end of file +npy_packed_static_string in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Type Alias npy_packed_static_string

    source
    pub type npy_packed_static_string = c_void;

    Aliased Type§

    enum npy_packed_static_string {}

    Variants§

    \ No newline at end of file diff --git a/numpy/npyffi/objects/type.npy_string_allocator.html b/numpy/npyffi/objects/type.npy_string_allocator.html index c6f83b4f3..825544665 100644 --- a/numpy/npyffi/objects/type.npy_string_allocator.html +++ b/numpy/npyffi/objects/type.npy_string_allocator.html @@ -1 +1 @@ -npy_string_allocator in numpy::npyffi::objects - Rust

    Type Alias numpy::npyffi::objects::npy_string_allocator

    source ·
    pub type npy_string_allocator = c_void;

    Aliased Type§

    enum npy_string_allocator {}

    Variants§

    \ No newline at end of file +npy_string_allocator in numpy::npyffi::objects - Rust
    numpy::npyffi::objects

    Type Alias npy_string_allocator

    source
    pub type npy_string_allocator = c_void;

    Aliased Type§

    enum npy_string_allocator {}

    Variants§

    \ No newline at end of file diff --git a/numpy/npyffi/types/enum.NPY_ARRAYMETHOD_FLAGS.html b/numpy/npyffi/types/enum.NPY_ARRAYMETHOD_FLAGS.html index 1e922b4d4..8e1b96f40 100644 --- a/numpy/npyffi/types/enum.NPY_ARRAYMETHOD_FLAGS.html +++ b/numpy/npyffi/types/enum.NPY_ARRAYMETHOD_FLAGS.html @@ -1,27 +1,27 @@ -NPY_ARRAYMETHOD_FLAGS in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS

    source ·
    #[repr(i32)]
    pub enum NPY_ARRAYMETHOD_FLAGS { +NPY_ARRAYMETHOD_FLAGS in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_ARRAYMETHOD_FLAGS

    source
    #[repr(i32)]
    pub enum NPY_ARRAYMETHOD_FLAGS { NPY_METH_REQUIRES_PYAPI = 1, NPY_METH_NO_FLOATINGPOINT_ERRORS = 2, NPY_METH_SUPPORTS_UNALIGNED = 4, NPY_METH_IS_REORDERABLE = 8, _NPY_METH_FORCE_CAST_INPUTS = 131_072, NPY_METH_RUNTIME_FLAGS = 3, -}

    Variants§

    §

    NPY_METH_REQUIRES_PYAPI = 1

    §

    NPY_METH_NO_FLOATINGPOINT_ERRORS = 2

    §

    NPY_METH_SUPPORTS_UNALIGNED = 4

    §

    NPY_METH_IS_REORDERABLE = 8

    §

    _NPY_METH_FORCE_CAST_INPUTS = 131_072

    §

    NPY_METH_RUNTIME_FLAGS = 3

    Trait Implementations§

    source§

    impl Clone for NPY_ARRAYMETHOD_FLAGS

    source§

    fn clone(&self) -> NPY_ARRAYMETHOD_FLAGS

    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_ARRAYMETHOD_FLAGS

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for NPY_ARRAYMETHOD_FLAGS

    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_ARRAYMETHOD_FLAGS

    source§

    fn eq(&self, other: &NPY_ARRAYMETHOD_FLAGS) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl Copy for NPY_ARRAYMETHOD_FLAGS

    source§

    impl Eq for NPY_ARRAYMETHOD_FLAGS

    source§

    impl StructuralPartialEq for NPY_ARRAYMETHOD_FLAGS

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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_METH_REQUIRES_PYAPI = 1

    §

    NPY_METH_NO_FLOATINGPOINT_ERRORS = 2

    §

    NPY_METH_SUPPORTS_UNALIGNED = 4

    §

    NPY_METH_IS_REORDERABLE = 8

    §

    _NPY_METH_FORCE_CAST_INPUTS = 131_072

    §

    NPY_METH_RUNTIME_FLAGS = 3

    Trait Implementations§

    source§

    impl Clone for NPY_ARRAYMETHOD_FLAGS

    source§

    fn clone(&self) -> NPY_ARRAYMETHOD_FLAGS

    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_ARRAYMETHOD_FLAGS

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for NPY_ARRAYMETHOD_FLAGS

    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_ARRAYMETHOD_FLAGS

    source§

    fn eq(&self, other: &NPY_ARRAYMETHOD_FLAGS) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Copy for NPY_ARRAYMETHOD_FLAGS

    source§

    impl Eq for NPY_ARRAYMETHOD_FLAGS

    source§

    impl StructuralPartialEq for NPY_ARRAYMETHOD_FLAGS

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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_BYTEORDER_CHAR.html b/numpy/npyffi/types/enum.NPY_BYTEORDER_CHAR.html index c6325d6f6..0f58168b0 100644 --- a/numpy/npyffi/types/enum.NPY_BYTEORDER_CHAR.html +++ b/numpy/npyffi/types/enum.NPY_BYTEORDER_CHAR.html @@ -1,26 +1,26 @@ -NPY_BYTEORDER_CHAR in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_BYTEORDER_CHAR

    source ·
    #[repr(u8)]
    pub enum NPY_BYTEORDER_CHAR { +NPY_BYTEORDER_CHAR in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_BYTEORDER_CHAR

    source
    #[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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 b11e8643a..16439cb64 100644 --- a/numpy/npyffi/types/enum.NPY_CASTING.html +++ b/numpy/npyffi/types/enum.NPY_CASTING.html @@ -1,26 +1,26 @@ -NPY_CASTING in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_CASTING

    source ·
    #[repr(u32)]
    pub enum NPY_CASTING { +NPY_CASTING in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_CASTING

    source
    #[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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 323db44b5..511048676 100644 --- a/numpy/npyffi/types/enum.NPY_CLIPMODE.html +++ b/numpy/npyffi/types/enum.NPY_CLIPMODE.html @@ -1,23 +1,23 @@ -NPY_CLIPMODE in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_CLIPMODE

    source ·
    #[repr(u32)]
    pub enum NPY_CLIPMODE { +NPY_CLIPMODE in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_CLIPMODE

    source
    #[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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 48c253258..b7d7e4e0b 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

    Enum numpy::npyffi::types::NPY_DATETIMEUNIT

    source ·
    #[repr(u32)]
    pub enum NPY_DATETIMEUNIT { +NPY_DATETIMEUNIT in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_DATETIMEUNIT

    source
    #[repr(u32)]
    pub enum NPY_DATETIMEUNIT {
    Show 14 variants NPY_FR_Y = 0, NPY_FR_M = 1, NPY_FR_W = 2, @@ -13,23 +13,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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 e8cbd6a5e..f46984fc2 100644 --- a/numpy/npyffi/types/enum.NPY_ORDER.html +++ b/numpy/npyffi/types/enum.NPY_ORDER.html @@ -1,25 +1,25 @@ -NPY_ORDER in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_ORDER

    source ·
    #[repr(i32)]
    pub enum NPY_ORDER { +NPY_ORDER in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_ORDER

    source
    #[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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 5524c2918..65cfea954 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

    Enum numpy::npyffi::types::NPY_SCALARKIND

    source ·
    #[repr(i32)]
    pub enum NPY_SCALARKIND { +NPY_SCALARKIND in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_SCALARKIND

    source
    #[repr(i32)]
    pub enum NPY_SCALARKIND { NPY_NOSCALAR = -1, NPY_BOOL_SCALAR = 0, NPY_INTPOS_SCALAR = 1, @@ -6,23 +6,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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 0a628278c..3fb025098 100644 --- a/numpy/npyffi/types/enum.NPY_SEARCHSIDE.html +++ b/numpy/npyffi/types/enum.NPY_SEARCHSIDE.html @@ -1,23 +1,23 @@ -NPY_SEARCHSIDE in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_SEARCHSIDE

    source ·
    #[repr(u32)]
    pub enum NPY_SEARCHSIDE { +NPY_SEARCHSIDE in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_SEARCHSIDE

    source
    #[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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 76e8a2163..efa06028c 100644 --- a/numpy/npyffi/types/enum.NPY_SELECTKIND.html +++ b/numpy/npyffi/types/enum.NPY_SELECTKIND.html @@ -1,22 +1,22 @@ -NPY_SELECTKIND in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_SELECTKIND

    source ·
    #[repr(u32)]
    pub enum NPY_SELECTKIND { +NPY_SELECTKIND in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_SELECTKIND

    source
    #[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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 ddd49a9ae..445274b1f 100644 --- a/numpy/npyffi/types/enum.NPY_SORTKIND.html +++ b/numpy/npyffi/types/enum.NPY_SORTKIND.html @@ -1,24 +1,24 @@ -NPY_SORTKIND in numpy::npyffi::types - Rust

    Enum numpy::npyffi::types::NPY_SORTKIND

    source ·
    #[repr(u32)]
    pub enum NPY_SORTKIND { +NPY_SORTKIND in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_SORTKIND

    source
    #[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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 5873ce69e..6e8bdcf57 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

    Enum numpy::npyffi::types::NPY_TYPECHAR

    source ·
    #[repr(u8)]
    pub enum NPY_TYPECHAR { +NPY_TYPECHAR in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_TYPECHAR

    source
    #[repr(u8)]
    pub enum NPY_TYPECHAR {
    Show 28 variants NPY_BOOLLTR = 63, NPY_BYTELTR = 98, NPY_UBYTELTR = 66, @@ -27,19 +27,19 @@ 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 b3a42a429..745816462 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

    Enum numpy::npyffi::types::NPY_TYPEKINDCHAR

    source ·
    #[repr(u8)]
    pub enum NPY_TYPEKINDCHAR { +NPY_TYPEKINDCHAR in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_TYPEKINDCHAR

    source
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 24c1c96fa..a88fd8129 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

    Enum numpy::npyffi::types::NPY_TYPES

    source ·
    #[repr(u32)]
    pub enum NPY_TYPES { +NPY_TYPES in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Enum NPY_TYPES

    source
    #[repr(u32)]
    pub enum NPY_TYPES {
    Show 29 variants NPY_BOOL = 0, NPY_BYTE = 1, NPY_UBYTE = 2, @@ -28,29 +28,29 @@ NPY_CHAR = 26, NPY_USERDEF = 256, NPY_VSTRING = 2_056, -
    }

    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_LEGACY = 24

    §

    NPY_NOTYPE = 25

    §

    NPY_CHAR = 26

    §

    NPY_USERDEF = 256

    §

    NPY_VSTRING = 2_056

    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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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_LEGACY = 24

    §

    NPY_NOTYPE = 25

    §

    NPY_CHAR = 26

    §

    NPY_USERDEF = 256

    §

    NPY_VSTRING = 2_056

    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,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for NPY_TYPES

    source§

    fn eq(&self, other: &NPY_TYPES) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl 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

    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

    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

    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

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 c44f73cb5..1d33d7d2c 100644 --- a/numpy/npyffi/types/index.html +++ b/numpy/npyffi/types/index.html @@ -1 +1 @@ -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 1be3ed51d..2a6b9ab56 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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +npy_cdouble in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Struct 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 d2e2b17c6..44ba7f5f9 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

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    +npy_cfloat in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Struct 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 dd6eac151..9a27cb213 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

    Struct numpy::npyffi::types::npy_clongdouble

    source ·
    #[repr(C)]
    pub struct npy_clongdouble { +npy_clongdouble in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Struct npy_clongdouble

    source
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 0a3cfa833..6e20e1827 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

    Struct numpy::npyffi::types::npy_datetimestruct

    source ·
    #[repr(C)]
    pub struct npy_datetimestruct { +npy_datetimestruct in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Struct npy_datetimestruct

    source
    #[repr(C)]
    pub struct npy_datetimestruct { pub year: npy_int64, pub month: npy_int32, pub day: npy_int32, @@ -8,19 +8,19 @@ 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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 c87b6aebe..7225d54a5 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

    Struct numpy::npyffi::types::npy_stride_sort_item

    source ·
    #[repr(C)]
    pub struct npy_stride_sort_item { +npy_stride_sort_item in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Struct npy_stride_sort_item

    source
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 7e088c038..7af0a55b4 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

    Struct numpy::npyffi::types::npy_timedeltastruct

    source ·
    #[repr(C)]
    pub struct npy_timedeltastruct { +npy_timedeltastruct in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Struct npy_timedeltastruct

    source
    #[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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where - U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 83cf551c0..2d7b7c8b6 100644 --- a/numpy/npyffi/types/type.npy_bool.html +++ b/numpy/npyffi/types/type.npy_bool.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 ea5b5ab2b..69ea08f4b 100644 --- a/numpy/npyffi/types/type.npy_byte.html +++ b/numpy/npyffi/types/type.npy_byte.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 31a1a7d89..508fe8cb5 100644 --- a/numpy/npyffi/types/type.npy_char.html +++ b/numpy/npyffi/types/type.npy_char.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 75524c040..8305313f6 100644 --- a/numpy/npyffi/types/type.npy_complex128.html +++ b/numpy/npyffi/types/type.npy_complex128.html @@ -1,4 +1,4 @@ -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 +npy_complex128 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 diff --git a/numpy/npyffi/types/type.npy_complex256.html b/numpy/npyffi/types/type.npy_complex256.html index b1d3f5ca0..3646a410d 100644 --- a/numpy/npyffi/types/type.npy_complex256.html +++ b/numpy/npyffi/types/type.npy_complex256.html @@ -1,4 +1,4 @@ -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 +npy_complex256 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 diff --git a/numpy/npyffi/types/type.npy_complex64.html b/numpy/npyffi/types/type.npy_complex64.html index 9113f148a..0c4d3af91 100644 --- a/numpy/npyffi/types/type.npy_complex64.html +++ b/numpy/npyffi/types/type.npy_complex64.html @@ -1,4 +1,4 @@ -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 +npy_complex64 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 diff --git a/numpy/npyffi/types/type.npy_datetime.html b/numpy/npyffi/types/type.npy_datetime.html index 4d8631d81..fe65fe0ba 100644 --- a/numpy/npyffi/types/type.npy_datetime.html +++ b/numpy/npyffi/types/type.npy_datetime.html @@ -1 +1 @@ -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 +npy_datetime in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 e3690bab7..8b19c9667 100644 --- a/numpy/npyffi/types/type.npy_double.html +++ b/numpy/npyffi/types/type.npy_double.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 ffedd7adc..7f2cf3866 100644 --- a/numpy/npyffi/types/type.npy_float.html +++ b/numpy/npyffi/types/type.npy_float.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 e36b3debb..26d2d2eb6 100644 --- a/numpy/npyffi/types/type.npy_float128.html +++ b/numpy/npyffi/types/type.npy_float128.html @@ -1 +1 @@ -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 +npy_float128 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 30254916b..0c2312994 100644 --- a/numpy/npyffi/types/type.npy_float16.html +++ b/numpy/npyffi/types/type.npy_float16.html @@ -1 +1 @@ -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 +npy_float16 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 0f1666052..083331a92 100644 --- a/numpy/npyffi/types/type.npy_float32.html +++ b/numpy/npyffi/types/type.npy_float32.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 42b50c1de..7459d1874 100644 --- a/numpy/npyffi/types/type.npy_float64.html +++ b/numpy/npyffi/types/type.npy_float64.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 258215131..7951791b2 100644 --- a/numpy/npyffi/types/type.npy_half.html +++ b/numpy/npyffi/types/type.npy_half.html @@ -1 +1 @@ -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 +npy_half in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 3cd9afe69..90d77ed36 100644 --- a/numpy/npyffi/types/type.npy_hash_t.html +++ b/numpy/npyffi/types/type.npy_hash_t.html @@ -1 +1 @@ -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 +npy_hash_t in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 cb49ac0d8..71c14b068 100644 --- a/numpy/npyffi/types/type.npy_int.html +++ b/numpy/npyffi/types/type.npy_int.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 d95273c18..ee4dc49eb 100644 --- a/numpy/npyffi/types/type.npy_int16.html +++ b/numpy/npyffi/types/type.npy_int16.html @@ -1 +1 @@ -npy_int16 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_int16

    source ·
    pub type npy_int16 = i16;
    \ No newline at end of file +npy_int16 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_int16

    source
    pub type npy_int16 = i16;
    \ 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 cca2577de..49f490039 100644 --- a/numpy/npyffi/types/type.npy_int32.html +++ b/numpy/npyffi/types/type.npy_int32.html @@ -1 +1 @@ -npy_int32 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_int32

    source ·
    pub type npy_int32 = i32;
    \ No newline at end of file +npy_int32 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_int32

    source
    pub type npy_int32 = i32;
    \ 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 263d58ff8..72bfdd20a 100644 --- a/numpy/npyffi/types/type.npy_int64.html +++ b/numpy/npyffi/types/type.npy_int64.html @@ -1 +1 @@ -npy_int64 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_int64

    source ·
    pub type npy_int64 = i64;
    \ No newline at end of file +npy_int64 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_int64

    source
    pub type npy_int64 = i64;
    \ 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 89f5ff08a..44d225dbf 100644 --- a/numpy/npyffi/types/type.npy_int8.html +++ b/numpy/npyffi/types/type.npy_int8.html @@ -1 +1 @@ -npy_int8 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_int8

    source ·
    pub type npy_int8 = i8;
    \ No newline at end of file +npy_int8 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_int8

    source
    pub type npy_int8 = i8;
    \ 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 27deee80b..adc1de987 100644 --- a/numpy/npyffi/types/type.npy_intp.html +++ b/numpy/npyffi/types/type.npy_intp.html @@ -1 +1 @@ -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 +npy_intp in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 07ed02024..40f09d7a2 100644 --- a/numpy/npyffi/types/type.npy_long.html +++ b/numpy/npyffi/types/type.npy_long.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 4347fb64b..c6906e64f 100644 --- a/numpy/npyffi/types/type.npy_longdouble.html +++ b/numpy/npyffi/types/type.npy_longdouble.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 9c5364254..b931a0f44 100644 --- a/numpy/npyffi/types/type.npy_longlong.html +++ b/numpy/npyffi/types/type.npy_longlong.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 ee527bc6f..1cc760087 100644 --- a/numpy/npyffi/types/type.npy_short.html +++ b/numpy/npyffi/types/type.npy_short.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 d41ead85e..4b6983649 100644 --- a/numpy/npyffi/types/type.npy_timedelta.html +++ b/numpy/npyffi/types/type.npy_timedelta.html @@ -1 +1 @@ -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 +npy_timedelta in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 4bcbdc4ee..0493f4b82 100644 --- a/numpy/npyffi/types/type.npy_ubyte.html +++ b/numpy/npyffi/types/type.npy_ubyte.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 8d3a3ca8f..3563791eb 100644 --- a/numpy/npyffi/types/type.npy_ucs4.html +++ b/numpy/npyffi/types/type.npy_ucs4.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 ac287d533..69d8dd5db 100644 --- a/numpy/npyffi/types/type.npy_uint.html +++ b/numpy/npyffi/types/type.npy_uint.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 05c977c2d..4327e8af5 100644 --- a/numpy/npyffi/types/type.npy_uint16.html +++ b/numpy/npyffi/types/type.npy_uint16.html @@ -1 +1 @@ -npy_uint16 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_uint16

    source ·
    pub type npy_uint16 = u16;
    \ No newline at end of file +npy_uint16 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_uint16

    source
    pub type npy_uint16 = u16;
    \ 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 33c018c97..44e3efd47 100644 --- a/numpy/npyffi/types/type.npy_uint32.html +++ b/numpy/npyffi/types/type.npy_uint32.html @@ -1 +1 @@ -npy_uint32 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_uint32

    source ·
    pub type npy_uint32 = u32;
    \ No newline at end of file +npy_uint32 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_uint32

    source
    pub type npy_uint32 = u32;
    \ 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 a4f7e683b..41a38af74 100644 --- a/numpy/npyffi/types/type.npy_uint64.html +++ b/numpy/npyffi/types/type.npy_uint64.html @@ -1 +1 @@ -npy_uint64 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_uint64

    source ·
    pub type npy_uint64 = u64;
    \ No newline at end of file +npy_uint64 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_uint64

    source
    pub type npy_uint64 = u64;
    \ 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 417be479a..f3536b40b 100644 --- a/numpy/npyffi/types/type.npy_uint8.html +++ b/numpy/npyffi/types/type.npy_uint8.html @@ -1 +1 @@ -npy_uint8 in numpy::npyffi::types - Rust

    Type Alias numpy::npyffi::types::npy_uint8

    source ·
    pub type npy_uint8 = u8;
    \ No newline at end of file +npy_uint8 in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias npy_uint8

    source
    pub type npy_uint8 = u8;
    \ 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 7164daf9a..6622a566d 100644 --- a/numpy/npyffi/types/type.npy_uintp.html +++ b/numpy/npyffi/types/type.npy_uintp.html @@ -1 +1 @@ -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 +npy_uintp in numpy::npyffi::types - Rust
    numpy::npyffi::types

    Type Alias 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 24c2dd32e..7f622bd5d 100644 --- a/numpy/npyffi/types/type.npy_ulong.html +++ b/numpy/npyffi/types/type.npy_ulong.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 fcd6e52a4..905178c5a 100644 --- a/numpy/npyffi/types/type.npy_ulonglong.html +++ b/numpy/npyffi/types/type.npy_ulonglong.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 ad42d9fe1..7d73aba42 100644 --- a/numpy/npyffi/types/type.npy_ushort.html +++ b/numpy/npyffi/types/type.npy_ushort.html @@ -1 +1 @@ -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
    numpy::npyffi::types

    Type Alias 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 d19fda709..bef1ef1e9 100644 --- a/numpy/npyffi/ufunc/index.html +++ b/numpy/npyffi/ufunc/index.html @@ -1,3 +1,3 @@ -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/prelude/index.html b/numpy/prelude/index.html index bd805674b..aa7e49ba6 100644 --- a/numpy/prelude/index.html +++ b/numpy/prelude/index.html @@ -1,4 +1,4 @@ -numpy::prelude - Rust

    Module numpy::prelude

    source ·
    Expand description

    A prelude

    +numpy::prelude - Rust
    numpy

    Module 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:

    diff --git a/numpy/prelude/trait.PyArrayDescrMethods.html b/numpy/prelude/trait.PyArrayDescrMethods.html index 234bb6b97..9278f06cf 100644 --- a/numpy/prelude/trait.PyArrayDescrMethods.html +++ b/numpy/prelude/trait.PyArrayDescrMethods.html @@ -1,82 +1,82 @@ -PyArrayDescrMethods in numpy::prelude - Rust

    Trait numpy::prelude::PyArrayDescrMethods

    source ·
    pub trait PyArrayDescrMethods<'py>: Sealed {
    +PyArrayDescrMethods in numpy::prelude - Rust
    numpy::prelude

    Trait PyArrayDescrMethods

    source
    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 itemsize(&self) -> usize; - fn alignment(&self) -> usize; - fn flags(&self) -> u64; - fn ndim(&self) -> usize; + fn itemsize(&self) -> usize; + fn alignment(&self) -> usize; + fn flags(&self) -> u64; + fn ndim(&self) -> usize; fn base(&self) -> Bound<'py, PyArrayDescr>; - fn shape(&self) -> Vec<usize>; - fn has_subarray(&self) -> bool; - fn has_fields(&self) -> bool; - fn names(&self) -> Option<Vec<String>>; + fn shape(&self) -> Vec<usize>; + fn has_subarray(&self) -> bool; + fn has_fields(&self) -> bool; + fn names(&self) -> Option<Vec<String>>; 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 byteorder(&self) -> u8 { ... } - fn char(&self) -> u8 { ... } - fn kind(&self) -> u8 { ... } - fn has_object(&self) -> bool { ... } - fn is_aligned_struct(&self) -> bool { ... } - fn is_native_byteorder(&self) -> Option<bool> { ... } + fn num(&self) -> c_int { ... } + fn byteorder(&self) -> u8 { ... } + fn char(&self) -> u8 { ... } + fn kind(&self) -> u8 { ... } + fn has_object(&self) -> bool { ... } + fn is_aligned_struct(&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 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 flags(&self) -> u64

    Returns bit-flags describing how this type descriptor is to be interpreted.

    +
    source

    fn flags(&self) -> u64

    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 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 has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    +
    source

    fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    Equivalent to PyDataType_HASSUBARRAY(self).

    -
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    +
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    Equivalent to PyDataType_HASFIELDS(self).

    -
    source

    fn names(&self) -> Option<Vec<String>>

    Returns an ordered list of field names, or None if there are no fields.

    +
    source

    fn names(&self) -> Option<Vec<String>>

    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 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 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 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 itemsize(&self) -> usize

    source§

    fn alignment(&self) -> usize

    source§

    fn flags(&self) -> u64

    source§

    fn ndim(&self) -> usize

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn has_subarray(&self) -> bool

    source§

    fn has_fields(&self) -> bool

    source§

    fn names(&self) -> Option<Vec<String>>

    source§

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Implementors§

    \ No newline at end of file +
    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 itemsize(&self) -> usize

    source§

    fn alignment(&self) -> usize

    source§

    fn flags(&self) -> u64

    source§

    fn ndim(&self) -> usize

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn has_subarray(&self) -> bool

    source§

    fn has_fields(&self) -> bool

    source§

    fn names(&self) -> Option<Vec<String>>

    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 52d14e449..d42f0e39a 100644 --- a/numpy/prelude/trait.PyUntypedArrayMethods.html +++ b/numpy/prelude/trait.PyUntypedArrayMethods.html @@ -1,19 +1,19 @@ -PyUntypedArrayMethods in numpy::prelude - Rust

    Trait numpy::prelude::PyUntypedArrayMethods

    source ·
    pub trait PyUntypedArrayMethods<'py>: Sealed {
    +PyUntypedArrayMethods in numpy::prelude - Rust
    numpy::prelude

    Trait PyUntypedArrayMethods

    source
    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.

    +

    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
    @@ -26,7 +26,7 @@
    §Example
    assert!(array.dtype().is_equiv_to(&dtype::<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
    use numpy::{PyArray1, PyUntypedArrayMethods};
    @@ -41,9 +41,9 @@ 
    §Example
    .downcast_into::<PyArray1<i32>>()?; 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
    use numpy::{PyArray3, PyUntypedArrayMethods};
    @@ -54,7 +54,7 @@ 
    §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
    use numpy::{PyArray3, PyUntypedArrayMethods};
    @@ -65,7 +65,7 @@ 
    §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
    use numpy::{PyArray3, PyUntypedArrayMethods};
    @@ -76,6 +76,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 c4bb14701..c04f007c0 100644 --- a/numpy/struct.AllowTypeChange.html +++ b/numpy/struct.AllowTypeChange.html @@ -1,15 +1,15 @@ -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).

    +AllowTypeChange in numpy - Rust
    numpy

    Struct 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).

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 72e21e576..42e003761 100644 --- a/numpy/struct.FromVecError.html +++ b/numpy/struct.FromVecError.html @@ -1,16 +1,16 @@ -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)>

    Returns 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).

    +FromVecError in numpy - Rust
    numpy

    Struct 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)>

    Returns 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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 7b877c474..c3238cb85 100644 --- a/numpy/struct.NotContiguousError.html +++ b/numpy/struct.NotContiguousError.html @@ -1,16 +1,16 @@ -NotContiguousError in numpy - Rust

    Struct numpy::NotContiguousError

    source ·
    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)>

    Returns 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).

    +NotContiguousError in numpy - Rust
    numpy

    Struct NotContiguousError

    source
    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)>

    Returns 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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 259ba5d6c..8ad06e868 100644 --- a/numpy/struct.PyArrayDescr.html +++ b/numpy/struct.PyArrayDescr.html @@ -1,4 +1,4 @@ -PyArrayDescr in numpy - Rust

    Struct numpy::PyArrayDescr

    source ·
    pub struct PyArrayDescr(/* private fields */);
    Expand description

    Binding of numpy.dtype.

    +PyArrayDescr in numpy - Rust
    numpy

    Struct PyArrayDescr

    source
    pub struct PyArrayDescr(/* private fields */);
    Expand description

    Binding of numpy.dtype.

    §Example

    use numpy::{dtype, get_array_module, PyArrayDescr, PyArrayDescrMethods};
     use numpy::pyo3::{types::{IntoPyDict, PyAnyMethods}, Python, ffi::c_str};
    @@ -15,25 +15,25 @@ 

    §Example

    Implementations§

    source§

    impl PyArrayDescr

    source

    pub fn new<'a, 'py, T>(py: Python<'py>, ob: T) -> PyResult<Bound<'py, Self>>
    where T: IntoPyObject<'py>,

    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>>

    👎Deprecated since 0.23.0: renamed to PyArrayDescr::new

    Deprecated name for PyArrayDescr::new.

    source

    pub fn object(py: Python<'_>) -> Bound<'_, Self>

    Shortcut for creating a type descriptor of object type.

    source

    pub fn object_bound(py: Python<'_>) -> Bound<'_, Self>

    👎Deprecated since 0.23.0: renamed to PyArrayDescr::object

    Deprecated name for PyArrayDescr::object.

    source

    pub fn of<'py, T: Element>(py: Python<'py>) -> Bound<'py, Self>

    Returns the type descriptor for a registered type.

    source

    pub fn of_bound<'py, T: Element>(py: Python<'py>) -> Bound<'py, Self>

    👎Deprecated since 0.23.0: renamed to PyArrayDescr::of

    Deprecated name for PyArrayDescr::of.

    -

    Trait Implementations§

    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 Deref for PyArrayDescr

    source§

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    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.
    §

    fn type_object(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
    Deprecated name for [PyTypeInfo::type_object].
    §

    fn is_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
    Deprecated name for [PyTypeInfo::is_type_of].
    §

    fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
    Deprecated name for [PyTypeInfo::is_exact_type_of].
    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.

    -
    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 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 Deref for PyArrayDescr

    source§

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    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.
    §

    fn type_object(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
    Deprecated name for [PyTypeInfo::type_object].
    §

    fn is_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
    Deprecated name for [PyTypeInfo::is_type_of].
    §

    fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
    Deprecated name for [PyTypeInfo::is_exact_type_of].
    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.

    +
    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<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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/struct.PyArrayLike.html b/numpy/struct.PyArrayLike.html index 1256a69c4..df493ee29 100644 --- a/numpy/struct.PyArrayLike.html +++ b/numpy/struct.PyArrayLike.html @@ -1,4 +1,4 @@ -PyArrayLike in numpy - Rust

    Struct numpy::PyArrayLike

    source ·
    pub struct PyArrayLike<'py, T, D, C = TypeMustMatch>(/* private fields */)
    +PyArrayLike in numpy - Rust
    numpy

    Struct PyArrayLike

    source
    pub struct PyArrayLike<'py, T, D, C = TypeMustMatch>(/* private fields */)
     where
         T: Element,
         D: Dimension,
    @@ -61,13 +61,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, @@ -110,7 +110,7 @@
    §Panics

    source

    pub fn as_matrix(&self) -> DMatrixView<'_, N, Dyn, Dyn>

    Convert this two-dimensional array into a nalgebra::DMatrixView using dynamic strides.

    §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.

    @@ -149,17 +149,17 @@
    §Examples
    §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.

    +

    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};
     
    @@ -209,7 +209,7 @@ 
    assert!(obj.as_super().pyrepr().is_ok()); })

    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.

    +

    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 @@ -218,33 +218,33 @@

    §Safety

    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.

    -

    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,

    source§

    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,

    source§

    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

    Auto Trait Implementations§

    §

    impl<'py, T, D, C> Freeze for PyArrayLike<'py, T, D, C>

    §

    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, - T: Unpin, - D: Unpin,

    §

    impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where - C: UnwindSafe, - T: UnwindSafe, - D: 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

    Auto Trait Implementations§

    §

    impl<'py, T, D, C> Freeze for PyArrayLike<'py, T, D, C>

    §

    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, + T: Unpin, + D: Unpin,

    §

    impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where + C: UnwindSafe, + T: UnwindSafe, + D: 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: 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).

    + 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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/struct.PyFixedString.html b/numpy/struct.PyFixedString.html index ca0a200bf..a3573ca1d 100644 --- a/numpy/struct.PyFixedString.html +++ b/numpy/struct.PyFixedString.html @@ -1,15 +1,13 @@ -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
    numpy

    Struct 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,

    -
    array = numpy.array([b"foo", b"bar", b"foobar"])
    -
    +
    array = numpy.array([b"foo", b"bar", b"foobar"])

    yields S6 for array.dtype.

    On the Rust side however, the length N of PyFixedString<N> must always be given explicitly and as a compile-time constant. For this work reliably, the Python code should set the dtype explicitly, e.g.

    -
    numpy.array([b"foo", b"bar", b"foobar"], dtype='S12')
    -
    +
    numpy.array([b"foo", b"bar", b"foobar"], dtype='S12')

    always matching PyArray1<PyFixedString<12>>.

    §Example

    use numpy::{PyArray1, PyUntypedArrayMethods, PyFixedString};
    @@ -17,34 +15,34 @@ 

    §Example

    let array = PyArray1::<PyFixedString<3>>::from_vec(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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( +

    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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Self, D>, ) -> Array<Self, D>
    where - D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl<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

    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

    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

    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

    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> Freeze for PyFixedString<N>

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    + D: Dimension,
    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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,

    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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl<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

    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

    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

    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

    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> Freeze for PyFixedString<N>

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 c5858be2e..cafb57066 100644 --- a/numpy/struct.PyFixedUnicode.html +++ b/numpy/struct.PyFixedUnicode.html @@ -1,15 +1,13 @@ -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
    numpy

    Struct 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,

    -
    numpy.array(["foo🐍", "bar🦀", "foobar"])
    -
    +
    numpy.array(["foo🐍", "bar🦀", "foobar"])

    yields U6 for array.dtype.

    On the Rust side however, the length N of PyFixedUnicode<N> must always be given explicitly and as a compile-time constant. For this work reliably, the Python code should set the dtype explicitly, e.g.

    -
    numpy.array(["foo🐍", "bar🦀", "foobar"], dtype='U12')
    -
    +
    numpy.array(["foo🐍", "bar🦀", "foobar"], dtype='U12')

    always matching PyArray1<PyFixedUnicode<12>>.

    §Example

    use numpy::{PyArray1, PyUntypedArrayMethods, PyFixedUnicode};
    @@ -17,34 +15,34 @@ 

    §Example

    let array = PyArray1::<PyFixedUnicode<3>>::from_vec(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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( +

    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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Self, D>, ) -> Array<Self, D>
    where - D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    source§

    impl<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

    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

    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

    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

    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> Freeze for PyFixedUnicode<N>

    §

    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> CloneToUninit for T
    where - T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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).

    + D: Dimension,
    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    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,

    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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl<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

    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

    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

    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

    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> Freeze for PyFixedUnicode<N>

    §

    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> CloneToUninit for T
    where + T: Clone,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. 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

    source§

    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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    source§

    impl<T> 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 6c67a7607..c22504e9d 100644 --- a/numpy/struct.PyUntypedArray.html +++ b/numpy/struct.PyUntypedArray.html @@ -1,4 +1,4 @@ -PyUntypedArray in numpy - Rust

    Struct numpy::PyUntypedArray

    source ·
    pub struct PyUntypedArray(/* private fields */);
    Expand description

    A safe, untyped wrapper for NumPy’s ndarray class.

    +PyUntypedArray in numpy - Rust
    numpy

    Struct 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, @@ -32,17 +32,17 @@

    §Example

    Err(PyTypeError::new_err(format!("Unsupported element type: {}", element_type))) } }
    -

    Trait Implementations§

    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 Deref for PyUntypedArray

    source§

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    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(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
    Deprecated name for [PyTypeInfo::type_object].
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
    Deprecated name for [PyTypeInfo::is_type_of].
    §

    fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
    Deprecated name for [PyTypeInfo::is_exact_type_of].
    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.

    -
    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 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 Deref for PyUntypedArray

    source§

    type Target = PyAny

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &PyAny

    Dereferences the value.
    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(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
    Deprecated name for [PyTypeInfo::type_object].
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
    Deprecated name for [PyTypeInfo::is_type_of].
    §

    fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
    Deprecated name for [PyTypeInfo::is_exact_type_of].
    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.

    +
    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<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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ 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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    \ No newline at end of file diff --git a/numpy/struct.TypeMustMatch.html b/numpy/struct.TypeMustMatch.html index 9c2df61b5..59aa13ee5 100644 --- a/numpy/struct.TypeMustMatch.html +++ b/numpy/struct.TypeMustMatch.html @@ -1,15 +1,15 @@ -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).

    +TypeMustMatch in numpy - Rust
    numpy

    Struct 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).

    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

    source§

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where - U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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 0390db159..149905144 100644 --- a/numpy/trait.Element.html +++ b/numpy/trait.Element.html @@ -1,8 +1,8 @@ -Element in numpy - Rust

    Trait numpy::Element

    source ·
    pub unsafe trait Element:
    -    Sized
    -    + Send
    -    + Sync {
    -    const IS_COPY: bool;
    +Element in numpy - Rust
    numpy

    Trait Element

    source
    pub unsafe trait Element:
    +    Sized
    +    + Send
    +    + Sync {
    +    const IS_COPY: bool;
     
         // Required methods
         fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>;
    @@ -10,7 +10,7 @@
     
         // Provided methods
         fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr> { ... }
    -    fn vec_from_slice(py: Python<'_>, slc: &[Self]) -> Vec<Self> { ... }
    +    fn vec_from_slice(py: Python<'_>, slc: &[Self]) -> Vec<Self> { ... }
         fn array_from_view<D>(
             py: Python<'_>,
             view: ArrayView<'_, Self, D>,
    @@ -23,9 +23,9 @@
     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.

    +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 @@ -42,7 +42,7 @@

    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 @@ -50,7 +50,7 @@

    Required Methods§

    source

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.

    source

    fn clone_ref(&self, py: Python<'_>) -> Self

    Create a clone of the value while the GIL is guaranteed to be held.

    Provided Methods§

    source

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype

    Deprecated name for Element::get_dtype.

    -
    source

    fn vec_from_slice(py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held.

    +
    source

    fn vec_from_slice(py: Python<'_>, slc: &[Self]) -> Vec<Self>

    Create an owned copy of the slice while the GIL is guaranteed to be held.

    Some types may provide implementations of this method that are more efficient than simply mapping the py_clone method to each element in the slice.

    source

    fn array_from_view<D>( @@ -60,66 +60,66 @@

    Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held.

    Some types may provide implementations of this method that are more efficient than simply mapping the py_clone method to each element in the view.

    -

    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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> bool

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[bool]) -> Vec<bool>

    source§

    fn array_from_view<D>( +

    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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> bool

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[bool]) -> Vec<bool>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, bool, D>, -) -> Array<bool, D>
    where - D: Dimension,

    source§

    impl Element for f32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> f32

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f32]) -> Vec<f32>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, bool, D>, +) -> Array<bool, D>
    where + D: Dimension,

    source§

    impl Element for f32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> f32

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f32]) -> Vec<f32>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, f32, D>, -) -> Array<f32, D>
    where - D: Dimension,

    source§

    impl Element for f64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> f64

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f64]) -> Vec<f64>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, f32, D>, +) -> Array<f32, D>
    where + D: Dimension,

    source§

    impl Element for f64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> f64

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f64]) -> Vec<f64>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, f64, D>, -) -> Array<f64, D>
    where - D: Dimension,

    source§

    impl Element for i8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i8

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i8]) -> Vec<i8>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, f64, D>, +) -> Array<f64, D>
    where + D: Dimension,

    source§

    impl Element for i8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i8

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i8]) -> Vec<i8>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, i8, D>, -) -> Array<i8, D>
    where - D: Dimension,

    source§

    impl Element for i16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i16

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i16]) -> Vec<i16>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, i8, D>, +) -> Array<i8, D>
    where + D: Dimension,

    source§

    impl Element for i16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i16

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i16]) -> Vec<i16>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, i16, D>, -) -> Array<i16, D>
    where - D: Dimension,

    source§

    impl Element for i32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i32

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i32]) -> Vec<i32>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, i16, D>, +) -> Array<i16, D>
    where + D: Dimension,

    source§

    impl Element for i32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i32

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i32]) -> Vec<i32>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, i32, D>, -) -> Array<i32, D>
    where - D: Dimension,

    source§

    impl Element for i64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i64

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i64]) -> Vec<i64>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, i32, D>, +) -> Array<i32, D>
    where + D: Dimension,

    source§

    impl Element for i64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> i64

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i64]) -> Vec<i64>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, i64, D>, -) -> Array<i64, D>
    where - D: Dimension,

    source§

    impl Element for isize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> isize

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[isize]) -> Vec<isize>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, i64, D>, +) -> Array<i64, D>
    where + D: Dimension,

    source§

    impl Element for isize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> isize

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[isize]) -> Vec<isize>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, isize, D>, -) -> Array<isize, D>
    where - D: Dimension,

    source§

    impl Element for u8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u8

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u8]) -> Vec<u8>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, isize, D>, +) -> Array<isize, D>
    where + D: Dimension,

    source§

    impl Element for u8

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u8

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u8]) -> Vec<u8>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, u8, D>, -) -> Array<u8, D>
    where - D: Dimension,

    source§

    impl Element for u16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u16

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u16]) -> Vec<u16>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, u8, D>, +) -> Array<u8, D>
    where + D: Dimension,

    source§

    impl Element for u16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u16

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u16]) -> Vec<u16>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, u16, D>, -) -> Array<u16, D>
    where - D: Dimension,

    source§

    impl Element for u32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u32

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u32]) -> Vec<u32>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, u16, D>, +) -> Array<u16, D>
    where + D: Dimension,

    source§

    impl Element for u32

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u32

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u32]) -> Vec<u32>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, u32, D>, -) -> Array<u32, D>
    where - D: Dimension,

    source§

    impl Element for u64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u64

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u64]) -> Vec<u64>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, u32, D>, +) -> Array<u32, D>
    where + D: Dimension,

    source§

    impl Element for u64

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> u64

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u64]) -> Vec<u64>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, u64, D>, -) -> Array<u64, D>
    where - D: Dimension,

    source§

    impl Element for usize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> usize

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[usize]) -> Vec<usize>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, u64, D>, +) -> Array<u64, D>
    where + D: Dimension,

    source§

    impl Element for usize

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> usize

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[usize]) -> Vec<usize>

    source§

    fn array_from_view<D>( _py: Python<'_>, - view: ArrayView<'_, usize, D>, -) -> Array<usize, D>
    where - D: Dimension,

    source§

    impl Element for bf16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    source§

    fn array_from_view<D>( + view: ArrayView<'_, usize, D>, +) -> Array<usize, D>
    where + D: Dimension,

    source§

    impl Element for bf16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> Self

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Self]) -> Vec<Self>

    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Self, D>, ) -> Array<Self, D>
    where - D: Dimension,

    source§

    impl Element for f16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> f16

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f16]) -> Vec<f16>

    source§

    fn array_from_view<D>( + D: Dimension,

    source§

    impl Element for f16

    source§

    const IS_COPY: bool = true

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, _py: Python<'_>) -> f16

    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f16]) -> Vec<f16>

    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, f16, D>, ) -> Array<f16, D>
    where - D: Dimension,

    source§

    impl Element for PyObject

    source§

    const IS_COPY: bool = false

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, py: Python<'_>) -> Self

    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 + D: Dimension,
    source§

    impl Element for PyObject

    source§

    const IS_COPY: bool = false

    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    source§

    fn clone_ref(&self, py: Python<'_>) -> Self

    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 cb7f90bdc..68ca1071d 100644 --- a/numpy/trait.PyArrayDescrMethods.html +++ b/numpy/trait.PyArrayDescrMethods.html @@ -1,82 +1,82 @@ -PyArrayDescrMethods in numpy - Rust

    Trait numpy::PyArrayDescrMethods

    source ·
    pub trait PyArrayDescrMethods<'py>: Sealed {
    +PyArrayDescrMethods in numpy - Rust
    numpy

    Trait PyArrayDescrMethods

    source
    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 itemsize(&self) -> usize; - fn alignment(&self) -> usize; - fn flags(&self) -> u64; - fn ndim(&self) -> usize; + fn itemsize(&self) -> usize; + fn alignment(&self) -> usize; + fn flags(&self) -> u64; + fn ndim(&self) -> usize; fn base(&self) -> Bound<'py, PyArrayDescr>; - fn shape(&self) -> Vec<usize>; - fn has_subarray(&self) -> bool; - fn has_fields(&self) -> bool; - fn names(&self) -> Option<Vec<String>>; + fn shape(&self) -> Vec<usize>; + fn has_subarray(&self) -> bool; + fn has_fields(&self) -> bool; + fn names(&self) -> Option<Vec<String>>; 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 byteorder(&self) -> u8 { ... } - fn char(&self) -> u8 { ... } - fn kind(&self) -> u8 { ... } - fn has_object(&self) -> bool { ... } - fn is_aligned_struct(&self) -> bool { ... } - fn is_native_byteorder(&self) -> Option<bool> { ... } + fn num(&self) -> c_int { ... } + fn byteorder(&self) -> u8 { ... } + fn char(&self) -> u8 { ... } + fn kind(&self) -> u8 { ... } + fn has_object(&self) -> bool { ... } + fn is_aligned_struct(&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 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 flags(&self) -> u64

    Returns bit-flags describing how this type descriptor is to be interpreted.

    +
    source

    fn flags(&self) -> u64

    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 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 has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    +
    source

    fn has_subarray(&self) -> bool

    Returns true if the type descriptor is a sub-array.

    Equivalent to PyDataType_HASSUBARRAY(self).

    -
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    +
    source

    fn has_fields(&self) -> bool

    Returns true if the type descriptor is a structured type.

    Equivalent to PyDataType_HASFIELDS(self).

    -
    source

    fn names(&self) -> Option<Vec<String>>

    Returns an ordered list of field names, or None if there are no fields.

    +
    source

    fn names(&self) -> Option<Vec<String>>

    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 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 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 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 itemsize(&self) -> usize

    source§

    fn alignment(&self) -> usize

    source§

    fn flags(&self) -> u64

    source§

    fn ndim(&self) -> usize

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn has_subarray(&self) -> bool

    source§

    fn has_fields(&self) -> bool

    source§

    fn names(&self) -> Option<Vec<String>>

    source§

    fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)>

    Implementors§

    \ No newline at end of file +
    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 itemsize(&self) -> usize

    source§

    fn alignment(&self) -> usize

    source§

    fn flags(&self) -> u64

    source§

    fn ndim(&self) -> usize

    source§

    fn base(&self) -> Bound<'py, PyArrayDescr>

    source§

    fn shape(&self) -> Vec<usize>

    source§

    fn has_subarray(&self) -> bool

    source§

    fn has_fields(&self) -> bool

    source§

    fn names(&self) -> Option<Vec<String>>

    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 799ea9cfa..e486eb0eb 100644 --- a/numpy/trait.PyUntypedArrayMethods.html +++ b/numpy/trait.PyUntypedArrayMethods.html @@ -1,19 +1,19 @@ -PyUntypedArrayMethods in numpy - Rust

    Trait numpy::PyUntypedArrayMethods

    source ·
    pub trait PyUntypedArrayMethods<'py>: Sealed {
    +PyUntypedArrayMethods in numpy - Rust
    numpy

    Trait PyUntypedArrayMethods

    source
    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.

    +

    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
    @@ -26,7 +26,7 @@
    §Example
    assert!(array.dtype().is_equiv_to(&dtype::<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
    use numpy::{PyArray1, PyUntypedArrayMethods};
    @@ -41,9 +41,9 @@ 
    §Example
    .downcast_into::<PyArray1<i32>>()?; 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
    use numpy::{PyArray3, PyUntypedArrayMethods};
    @@ -54,7 +54,7 @@ 
    §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
    use numpy::{PyArray3, PyUntypedArrayMethods};
    @@ -65,7 +65,7 @@ 
    §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
    use numpy::{PyArray3, PyUntypedArrayMethods};
    @@ -76,6 +76,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 af8e1a252..3f9cc8ec6 100644 --- a/numpy/type.Complex32.html +++ b/numpy/type.Complex32.html @@ -1,11 +1,11 @@ -Complex32 in numpy - Rust

    Type Alias numpy::Complex32

    source ·
    pub type Complex32 = Complex<f32>;
    Expand description

    Alias for a Complex<f32>

    +Complex32 in numpy - Rust
    numpy

    Type Alias Complex32

    source
    pub type Complex32 = Complex<f32>;
    Expand description

    Alias for a 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

    + 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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Complex32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Complex32]) -> Vec<Complex32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( +

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Complex32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Complex32]) -> Vec<Complex32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Complex32, D>, ) -> Array<Complex32, D>
    where diff --git a/numpy/type.Complex64.html b/numpy/type.Complex64.html index 65ee35999..020f8251b 100644 --- a/numpy/type.Complex64.html +++ b/numpy/type.Complex64.html @@ -1,11 +1,11 @@ -Complex64 in numpy - Rust

    Type Alias numpy::Complex64

    source ·
    pub type Complex64 = Complex<f64>;
    Expand description

    Alias for a Complex<f64>

    +Complex64 in numpy - Rust
    numpy

    Type Alias Complex64

    source
    pub type Complex64 = Complex<f64>;
    Expand description

    Alias for a 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

    + 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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Complex64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Complex64]) -> Vec<Complex64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( +

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> Complex64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[Complex64]) -> Vec<Complex64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Complex64, D>, ) -> Array<Complex64, D>
    where diff --git a/numpy/type.Ix1.html b/numpy/type.Ix1.html index 44a747f06..22b83a474 100644 --- a/numpy/type.Ix1.html +++ b/numpy/type.Ix1.html @@ -1,2 +1,2 @@ -Ix1 in numpy - Rust

    Type Alias numpy::Ix1

    source ·
    pub type Ix1 = Dim<[usize; 1]>;
    Expand description

    one-dimensional

    +Ix1 in numpy - Rust
    numpy

    Type Alias 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 f48c398a7..8f9bd11e6 100644 --- a/numpy/type.Ix2.html +++ b/numpy/type.Ix2.html @@ -1,2 +1,2 @@ -Ix2 in numpy - Rust

    Type Alias numpy::Ix2

    source ·
    pub type Ix2 = Dim<[usize; 2]>;
    Expand description

    two-dimensional

    +Ix2 in numpy - Rust
    numpy

    Type Alias 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 04128b5c4..8206f72aa 100644 --- a/numpy/type.Ix3.html +++ b/numpy/type.Ix3.html @@ -1,2 +1,2 @@ -Ix3 in numpy - Rust

    Type Alias numpy::Ix3

    source ·
    pub type Ix3 = Dim<[usize; 3]>;
    Expand description

    three-dimensional

    +Ix3 in numpy - Rust
    numpy

    Type Alias 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 260d31a53..566651e96 100644 --- a/numpy/type.Ix4.html +++ b/numpy/type.Ix4.html @@ -1,2 +1,2 @@ -Ix4 in numpy - Rust

    Type Alias numpy::Ix4

    source ·
    pub type Ix4 = Dim<[usize; 4]>;
    Expand description

    four-dimensional

    +Ix4 in numpy - Rust
    numpy

    Type Alias 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 0f862f1be..dfc09b38f 100644 --- a/numpy/type.Ix5.html +++ b/numpy/type.Ix5.html @@ -1,2 +1,2 @@ -Ix5 in numpy - Rust

    Type Alias numpy::Ix5

    source ·
    pub type Ix5 = Dim<[usize; 5]>;
    Expand description

    five-dimensional

    +Ix5 in numpy - Rust
    numpy

    Type Alias 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 ba7c211fc..846c13898 100644 --- a/numpy/type.Ix6.html +++ b/numpy/type.Ix6.html @@ -1,2 +1,2 @@ -Ix6 in numpy - Rust

    Type Alias numpy::Ix6

    source ·
    pub type Ix6 = Dim<[usize; 6]>;
    Expand description

    six-dimensional

    +Ix6 in numpy - Rust
    numpy

    Type Alias 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 cffb497ec..d54b7ad60 100644 --- a/numpy/type.IxDyn.html +++ b/numpy/type.IxDyn.html @@ -1,4 +1,4 @@ -IxDyn in numpy - Rust

    Type Alias numpy::IxDyn

    source ·
    pub type IxDyn = Dim<IxDynImpl>;
    Expand description

    dynamic-dimensional

    +IxDyn in numpy - Rust
    numpy

    Type Alias 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 IntoDimension to produce IxDyn).

    diff --git a/numpy/type.PyArrayLike0.html b/numpy/type.PyArrayLike0.html index 7e11c793f..d544f2ada 100644 --- a/numpy/type.PyArrayLike0.html +++ b/numpy/type.PyArrayLike0.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLike0 in numpy - Rust
    numpy

    Type Alias 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 b67296020..a0b5810c7 100644 --- a/numpy/type.PyArrayLike1.html +++ b/numpy/type.PyArrayLike1.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLike1 in numpy - Rust
    numpy

    Type Alias 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 6a3b07485..999572229 100644 --- a/numpy/type.PyArrayLike2.html +++ b/numpy/type.PyArrayLike2.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLike2 in numpy - Rust
    numpy

    Type Alias 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 b759331fa..c6fa2d2f8 100644 --- a/numpy/type.PyArrayLike3.html +++ b/numpy/type.PyArrayLike3.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLike3 in numpy - Rust
    numpy

    Type Alias 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 b51d571b5..cec708f01 100644 --- a/numpy/type.PyArrayLike4.html +++ b/numpy/type.PyArrayLike4.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLike4 in numpy - Rust
    numpy

    Type Alias 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 2437421bc..62c1398ff 100644 --- a/numpy/type.PyArrayLike5.html +++ b/numpy/type.PyArrayLike5.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLike5 in numpy - Rust
    numpy

    Type Alias 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 f7d622b44..7a89a1475 100644 --- a/numpy/type.PyArrayLike6.html +++ b/numpy/type.PyArrayLike6.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLike6 in numpy - Rust
    numpy

    Type Alias 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 942f78bc9..4bbe639d9 100644 --- a/numpy/type.PyArrayLikeDyn.html +++ b/numpy/type.PyArrayLikeDyn.html @@ -1,2 +1,2 @@ -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.

    +PyArrayLikeDyn in numpy - Rust
    numpy

    Type Alias 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/settings.html b/settings.html index 510692c19..02af8349a 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Settings

    Rustdoc settings

    Back
    \ No newline at end of file +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 09f7c4cbc..b6b0a2d26 100644 --- a/src/numpy/array.rs.html +++ b/src/numpy/array.rs.html @@ -1,4 +1,5 @@ -array.rs - source
    1
    +array.rs - source

    numpy/
    array.rs

    +1
     2
     3
     4
    @@ -1793,8 +1794,7 @@
     1793
     1794
     1795
    -1796
    -
    //! Safe interface for NumPy's [N-dimensional arrays][ndarray]
    +1796
    //! Safe interface for NumPy's [N-dimensional arrays][ndarray]
     //!
     //! [ndarray]: https://numpy.org/doc/stable/reference/arrays.ndarray.html
     
    @@ -1913,7 +1913,7 @@
     pub type PyArrayDyn<T> = PyArray<T, IxDyn>;
     
     /// Returns a handle to NumPy's multiarray module.
    -pub fn get_array_module<'py>(py: Python<'py>) -> PyResult<Bound<'_, PyModule>> {
    +pub fn get_array_module<'py>(py: Python<'py>) -> PyResult<Bound<'py, PyModule>> {
         PyModule::import(py, npyffi::array::mod_name(py)?)
     }
     
    diff --git a/src/numpy/array_like.rs.html b/src/numpy/array_like.rs.html
    index d28be6b21..9afb29af7 100644
    --- a/src/numpy/array_like.rs.html
    +++ b/src/numpy/array_like.rs.html
    @@ -1,4 +1,5 @@
    -array_like.rs - source
    1
    +array_like.rs - source

    numpy/
    array_like.rs

    +1
     2
     3
     4
    @@ -203,8 +204,7 @@
     203
     204
     205
    -206
    -
    use std::marker::PhantomData;
    +206
    use std::marker::PhantomData;
     use std::ops::Deref;
     
     use ndarray::{Array1, Dimension, Ix0, Ix1, Ix2, Ix3, Ix4, Ix5, Ix6, IxDyn};
    diff --git a/src/numpy/borrow/mod.rs.html b/src/numpy/borrow/mod.rs.html
    index c1c07a338..7f90b6c7e 100644
    --- a/src/numpy/borrow/mod.rs.html
    +++ b/src/numpy/borrow/mod.rs.html
    @@ -1,4 +1,5 @@
    -mod.rs - source
    1
    +mod.rs - source

    numpy/borrow/
    mod.rs

    +1
     2
     3
     4
    @@ -728,8 +729,7 @@
     728
     729
     730
    -731
    -
    //! Types to safely create references into NumPy arrays
    +731
    //! 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
    diff --git a/src/numpy/borrow/shared.rs.html b/src/numpy/borrow/shared.rs.html
    index 00e812abf..4aed4d777 100644
    --- a/src/numpy/borrow/shared.rs.html
    +++ b/src/numpy/borrow/shared.rs.html
    @@ -1,4 +1,5 @@
    -shared.rs - source
    1
    +shared.rs - source

    numpy/borrow/
    shared.rs

    +1
     2
     3
     4
    @@ -989,8 +990,7 @@
     989
     990
     991
    -992
    -
    use std::collections::hash_map::Entry;
    +992
    use std::collections::hash_map::Entry;
     use std::ffi::{c_void, CString};
     use std::mem::forget;
     use std::os::raw::{c_char, c_int};
    diff --git a/src/numpy/convert.rs.html b/src/numpy/convert.rs.html
    index bf9896570..7d30f1796 100644
    --- a/src/numpy/convert.rs.html
    +++ b/src/numpy/convert.rs.html
    @@ -1,4 +1,5 @@
    -convert.rs - source
    1
    +convert.rs - source

    numpy/
    convert.rs

    +1
     2
     3
     4
    @@ -344,8 +345,7 @@
     344
     345
     346
    -347
    -
    //! Defines conversion traits between Rust types and NumPy data types.
    +347
    //! Defines conversion traits between Rust types and NumPy data types.
     
     use std::{mem, os::raw::c_int, ptr};
     
    diff --git a/src/numpy/datetime.rs.html b/src/numpy/datetime.rs.html
    index ac7ffd717..a48bcda7a 100644
    --- a/src/numpy/datetime.rs.html
    +++ b/src/numpy/datetime.rs.html
    @@ -1,4 +1,5 @@
    -datetime.rs - source
    1
    +datetime.rs - source

    numpy/
    datetime.rs

    +1
     2
     3
     4
    @@ -344,8 +345,7 @@
     344
     345
     346
    -347
    -
    //! Support datetimes and timedeltas
    +347
    //! Support datetimes and timedeltas
     //!
     //! This module provides wrappers for NumPy's [`datetime64`][scalars-datetime64] and [`timedelta64`][scalars-timedelta64] types
     //! which are used for time keeping with with an emphasis on scientific applications.
    diff --git a/src/numpy/dtype.rs.html b/src/numpy/dtype.rs.html
    index 9fc9b0444..e4c360fa4 100644
    --- a/src/numpy/dtype.rs.html
    +++ b/src/numpy/dtype.rs.html
    @@ -1,4 +1,5 @@
    -dtype.rs - source
    1
    +dtype.rs - source

    numpy/
    dtype.rs

    +1
     2
     3
     4
    @@ -862,8 +863,7 @@
     862
     863
     864
    -865
    -
    use std::mem::size_of;
    +865
    use std::mem::size_of;
     use std::os::raw::{c_int, c_long, c_longlong, c_short, c_uint, c_ulong, c_ulonglong, c_ushort};
     use std::ptr;
     
    diff --git a/src/numpy/error.rs.html b/src/numpy/error.rs.html
    index 0ab7a5b21..bade2c6f3 100644
    --- a/src/numpy/error.rs.html
    +++ b/src/numpy/error.rs.html
    @@ -1,4 +1,5 @@
    -error.rs - source
    1
    +error.rs - source

    numpy/
    error.rs

    +1
     2
     3
     4
    @@ -187,8 +188,7 @@
     187
     188
     189
    -190
    -
    //! Defines error types.
    +190
    //! Defines error types.
     
     use std::error::Error;
     use std::fmt;
    diff --git a/src/numpy/lib.rs.html b/src/numpy/lib.rs.html
    index 21c6f89aa..43fa70622 100644
    --- a/src/numpy/lib.rs.html
    +++ b/src/numpy/lib.rs.html
    @@ -1,4 +1,5 @@
    -lib.rs - source
    1
    +lib.rs - source

    numpy/
    lib.rs

    +1
     2
     3
     4
    @@ -194,8 +195,7 @@
     194
     195
     196
    -197
    -
    //! This crate provides Rust interfaces for [NumPy C APIs][c-api],
    +197
    //! This crate provides Rust interfaces for [NumPy C APIs][c-api],
     //! especially for the [ndarray][ndarray] class.
     //!
     //! It uses [`pyo3`] for Rust bindings to CPython, and uses
    diff --git a/src/numpy/npyffi/array.rs.html b/src/numpy/npyffi/array.rs.html
    index 7564fe6d2..79509496e 100644
    --- a/src/numpy/npyffi/array.rs.html
    +++ b/src/numpy/npyffi/array.rs.html
    @@ -1,4 +1,5 @@
    -array.rs - source
    1
    +array.rs - source

    numpy/npyffi/
    array.rs

    +1
     2
     3
     4
    @@ -483,8 +484,7 @@
     483
     484
     485
    -486
    -
    //! Low-Level binding for [Array API](https://numpy.org/doc/stable/reference/c-api/array.html)
    +486
    //! Low-Level binding for [Array API](https://numpy.org/doc/stable/reference/c-api/array.html)
     //!
     //! 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,
    diff --git a/src/numpy/npyffi/flags.rs.html b/src/numpy/npyffi/flags.rs.html
    index 818e8f8fa..56dac073a 100644
    --- a/src/numpy/npyffi/flags.rs.html
    +++ b/src/numpy/npyffi/flags.rs.html
    @@ -1,4 +1,5 @@
    -flags.rs - source
    1
    +flags.rs - source

    numpy/npyffi/
    flags.rs

    +1
     2
     3
     4
    @@ -80,8 +81,7 @@
     80
     81
     82
    -83
    -
    use super::npy_uint32;
    +83
    use super::npy_uint32;
     use std::os::raw::c_int;
     
     pub const NPY_ARRAY_C_CONTIGUOUS: c_int = 0x0001;
    diff --git a/src/numpy/npyffi/mod.rs.html b/src/numpy/npyffi/mod.rs.html
    index c96cf4862..2d94719b2 100644
    --- a/src/numpy/npyffi/mod.rs.html
    +++ b/src/numpy/npyffi/mod.rs.html
    @@ -1,4 +1,5 @@
    -mod.rs - source
    1
    +mod.rs - source

    numpy/npyffi/
    mod.rs

    +1
     2
     3
     4
    @@ -101,8 +102,7 @@
     101
     102
     103
    -104
    -
    //! Low-Level bindings for NumPy C API.
    +104
    //! Low-Level bindings for NumPy C API.
     //!
     //! <https://numpy.org/doc/stable/reference/c-api>
     #![allow(
    diff --git a/src/numpy/npyffi/objects.rs.html b/src/numpy/npyffi/objects.rs.html
    index 54c9751bc..784106eac 100644
    --- a/src/numpy/npyffi/objects.rs.html
    +++ b/src/numpy/npyffi/objects.rs.html
    @@ -1,4 +1,5 @@
    -objects.rs - source
    1
    +objects.rs - source

    numpy/npyffi/
    objects.rs

    +1
     2
     3
     4
    @@ -591,8 +592,7 @@
     591
     592
     593
    -594
    -
    //! Low-Lebel binding for NumPy C API C-objects
    +594
    //! Low-Lebel binding for NumPy C API C-objects
     //!
     //! <https://numpy.org/doc/stable/reference/c-api/types-and-structures.html>
     #![allow(non_camel_case_types)]
    diff --git a/src/numpy/npyffi/types.rs.html b/src/numpy/npyffi/types.rs.html
    index 17239b897..2873ec732 100644
    --- a/src/numpy/npyffi/types.rs.html
    +++ b/src/numpy/npyffi/types.rs.html
    @@ -1,4 +1,5 @@
    -types.rs - source
    1
    +types.rs - source

    numpy/npyffi/
    types.rs

    +1
     2
     3
     4
    @@ -281,8 +282,7 @@
     281
     282
     283
    -284
    -
    use pyo3::ffi::{Py_hash_t, Py_intptr_t, Py_uintptr_t};
    +284
    use pyo3::ffi::{Py_hash_t, Py_intptr_t, Py_uintptr_t};
     use std::os::raw::*;
     
     pub type npy_intp = Py_intptr_t;
    diff --git a/src/numpy/npyffi/ufunc.rs.html b/src/numpy/npyffi/ufunc.rs.html
    index 900622173..47c10bb1a 100644
    --- a/src/numpy/npyffi/ufunc.rs.html
    +++ b/src/numpy/npyffi/ufunc.rs.html
    @@ -1,4 +1,5 @@
    -ufunc.rs - source
    1
    +ufunc.rs - source

    numpy/npyffi/
    ufunc.rs

    +1
     2
     3
     4
    @@ -95,8 +96,7 @@
     95
     96
     97
    -98
    -
    //! Low-Level binding for [UFunc API](https://numpy.org/doc/stable/reference/c-api/ufunc.html)
    +98
    //! Low-Level binding for [UFunc API](https://numpy.org/doc/stable/reference/c-api/ufunc.html)
     
     use std::os::raw::*;
     
    diff --git a/src/numpy/slice_container.rs.html b/src/numpy/slice_container.rs.html
    index 2388d65e9..0f37d5d0a 100644
    --- a/src/numpy/slice_container.rs.html
    +++ b/src/numpy/slice_container.rs.html
    @@ -1,4 +1,5 @@
    -slice_container.rs - source
    1
    +slice_container.rs - source

    numpy/
    slice_container.rs

    +1
     2
     3
     4
    @@ -88,8 +89,7 @@
     88
     89
     90
    -91
    -
    use std::{mem, ptr};
    +91
    use std::{mem, ptr};
     
     use ndarray::{ArrayBase, Dimension, OwnedRepr};
     use pyo3::pyclass;
    diff --git a/src/numpy/strings.rs.html b/src/numpy/strings.rs.html
    index 8447f95bc..6779a41f3 100644
    --- a/src/numpy/strings.rs.html
    +++ b/src/numpy/strings.rs.html
    @@ -1,4 +1,5 @@
    -strings.rs - source
    1
    +strings.rs - source

    numpy/
    strings.rs

    +1
     2
     3
     4
    @@ -231,8 +232,7 @@
     231
     232
     233
    -234
    -
    //! Types to support arrays of [ASCII][ascii] and [UCS4][ucs4] strings
    +234
    //! Types to support arrays of [ASCII][ascii] and [UCS4][ucs4] strings
     //!
     //! [ascii]: https://numpy.org/doc/stable/reference/c-api/dtype.html#c.NPY_STRING
     //! [ucs4]: https://numpy.org/doc/stable/reference/c-api/dtype.html#c.NPY_UNICODE
    diff --git a/src/numpy/sum_products.rs.html b/src/numpy/sum_products.rs.html
    index f1659209d..fa3e1562b 100644
    --- a/src/numpy/sum_products.rs.html
    +++ b/src/numpy/sum_products.rs.html
    @@ -1,4 +1,5 @@
    -sum_products.rs - source
    1
    +sum_products.rs - source

    numpy/
    sum_products.rs

    +1
     2
     3
     4
    @@ -253,8 +254,7 @@
     253
     254
     255
    -256
    -
    use std::borrow::Cow;
    +256
    use std::borrow::Cow;
     use std::ffi::{CStr, CString};
     use std::ptr::null_mut;
     
    diff --git a/src/numpy/untyped_array.rs.html b/src/numpy/untyped_array.rs.html
    index bc4e1f0f7..bd32d6461 100644
    --- a/src/numpy/untyped_array.rs.html
    +++ b/src/numpy/untyped_array.rs.html
    @@ -1,4 +1,5 @@
    -untyped_array.rs - source
    1
    +untyped_array.rs - source

    numpy/
    untyped_array.rs

    +1
     2
     3
     4
    @@ -285,8 +286,7 @@
     285
     286
     287
    -288
    -
    //! Safe, untyped interface for NumPy's [N-dimensional arrays][ndarray]
    +288
    //! Safe, untyped interface for NumPy's [N-dimensional arrays][ndarray]
     //!
     //! [ndarray]: https://numpy.org/doc/stable/reference/arrays.ndarray.html
     use std::slice;
    diff --git a/static.files/main-921df33f47b8780c.js b/static.files/main-921df33f47b8780c.js
    deleted file mode 100644
    index c31555488..000000000
    --- a/static.files/main-921df33f47b8780c.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.innerHTML=`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,errorCallback){const script=document.createElement("script");script.src=url;if(errorCallback!==undefined){script.onerror=errorCallback}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 sendSearchForm(){document.getElementsByClassName("search-form")[0].submit()}function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"),sendSearchForm);loadScript(resourcePath("search-index",".js"),sendSearchForm)}}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)},descShards:new Map(),loadDesc:async function({descShard,descIndex}){if(descShard.promise===null){descShard.promise=new Promise((resolve,reject)=>{descShard.resolve=resolve;const ds=descShard;const fname=`${ds.crate}-desc-${ds.shard}-`;const url=resourcePath(`search.desc/${descShard.crate}/${fname}`,".js",);loadScript(url,reject)})}const list=await descShard.promise;return list[descIndex]},loadedDescShard:function(crate,shard,data){this.descShards.get(crate)[shard].resolve(data.split("\n"))},};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 implElems=document.querySelectorAll(`details > summary > section[id^="${implId}"]`,);onEachLazy(implElems,implElem=>{const numbered=/^(.+?)-([0-9]+)$/.exec(implElem.id);if(implElem.id!==implId&&(!numbered||numbered[1]!==implId)){return false}return 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);return true}},)})}}}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":case"/":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;link.textContent=name;const li=document.createElement("li");if(link.href===current_page){li.classList.add("current")}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("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";document.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}document.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(){function copyContentToClipboard(content){const el=document.createElement("textarea");el.value=content;el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el)}function copyButtonAnimation(button){button.classList.add("clicked");if(button.reset_button_timeout!==undefined){window.clearTimeout(button.reset_button_timeout)}button.reset_button_timeout=window.setTimeout(()=>{button.reset_button_timeout=undefined;button.classList.remove("clicked")},1000)}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)}});copyContentToClipboard(path.join("::"));copyButtonAnimation(but)};function copyCode(codeElem){if(!codeElem){return}copyContentToClipboard(codeElem.textContent)}function getExampleWrap(event){let elem=event.target;while(!hasClass(elem,"example-wrap")){if(elem===document.body||elem.tagName==="A"||elem.tagName==="BUTTON"||hasClass(elem,"docblock")){return null}elem=elem.parentElement}return elem}function addCopyButton(event){const elem=getExampleWrap(event);if(elem===null){return}elem.removeEventListener("mouseover",addCopyButton);const parent=document.createElement("div");parent.className="button-holder";const runButton=elem.querySelector(".test-arrow");if(runButton!==null){parent.appendChild(runButton)}elem.appendChild(parent);const copyButton=document.createElement("button");copyButton.className="copy-button";copyButton.title="Copy code to clipboard";copyButton.addEventListener("click",()=>{copyCode(elem.querySelector("pre > code"));copyButtonAnimation(copyButton)});parent.appendChild(copyButton)}function showHideCodeExampleButtons(event){const elem=getExampleWrap(event);if(elem===null){return}let buttons=elem.querySelector(".button-holder");if(buttons===null){addCopyButton(event);buttons=elem.querySelector(".button-holder");if(buttons===null){return}}buttons.classList.toggle("keep-visible")}onEachLazy(document.querySelectorAll(".docblock .example-wrap"),elem=>{elem.addEventListener("mouseover",addCopyButton);elem.addEventListener("click",showHideCodeExampleButtons)})}()) \ No newline at end of file diff --git a/static.files/main-f070b9041d14864c.js b/static.files/main-f070b9041d14864c.js new file mode 100644 index 000000000..3d672cb6e --- /dev/null +++ b/static.files/main-f070b9041d14864c.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");const toggle=document.getElementById("toggle-all-docs");if(toggle){toggle.setAttribute("disabled","disabled")}}function showMain(){const main=document.getElementById(MAIN_ID);removeClass(main,"hidden");const mainHeading=main.querySelector(".main-heading");if(mainHeading&&searchState.rustdocToolbar){if(searchState.rustdocToolbar.parentElement){searchState.rustdocToolbar.parentElement.removeChild(searchState.rustdocToolbar)}mainHeading.appendChild(searchState.rustdocToolbar)}const toggle=document.getElementById("toggle-all-docs");if(toggle){toggle.removeAttribute("disabled")}}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.innerHTML=`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");const mainHeading=elemToDisplay.querySelector(".main-heading");if(mainHeading&&searchState.rustdocToolbar){if(searchState.rustdocToolbar.parentElement){searchState.rustdocToolbar.parentElement.removeChild(searchState.rustdocToolbar)}mainHeading.appendChild(searchState.rustdocToolbar)}}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,errorCallback){const script=document.createElement("script");script.src=url;if(errorCallback!==undefined){script.onerror=errorCallback}document.head.append(script)}if(getSettingsButton()){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={rustdocToolbar:document.querySelector("rustdoc-toolbar"),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 sendSearchForm(){document.getElementsByClassName("search-form")[0].submit()}function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"),sendSearchForm);loadScript(resourcePath("search-index",".js"),sendSearchForm)}}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)},descShards:new Map(),loadDesc:async function({descShard,descIndex}){if(descShard.promise===null){descShard.promise=new Promise((resolve,reject)=>{descShard.resolve=resolve;const ds=descShard;const fname=`${ds.crate}-desc-${ds.shard}-`;const url=resourcePath(`search.desc/${descShard.crate}/${fname}`,".js",);loadScript(url,reject)})}const list=await descShard.promise;return list[descIndex]},loadedDescShard:function(crate,shard,data){this.descShards.get(crate)[shard].resolve(data.split("\n"))},};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 implElems=document.querySelectorAll(`details > summary > section[id^="${implId}"]`,);onEachLazy(implElems,implElem=>{const numbered=/^(.+?)-([0-9]+)$/.exec(implElem.id);if(implElem.id!==implId&&(!numbered||numbered[1]!==implId)){return false}return 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);return true}},)})}}}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":case"/":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.getElementById("rustdoc-modnav");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;link.textContent=name;const li=document.createElement("li");if(link.href===current_page){li.classList.add("current")}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("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.getElementById("rustdoc-modnav");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.children[0].innerText="Summary"}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.children[0].innerText="Show all"}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=()=>{if(document.querySelector(".rustdoc.src")){return}onEachLazy(document.querySelectorAll(":not(.scraped-example) > .example-wrap > pre:not(.example-line-numbers)",),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.querySelectorAll(".example-wrap > .example-line-numbers"),x=>{x.parentNode.removeChild(x)})};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";document.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}document.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){if(!getHelpButton().contains(document.activeElement)&&!getHelpButton().contains(event.relatedTarget)&&!getSettingsButton().contains(document.activeElement)&&!getSettingsButton().contains(event.relatedTarget)){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("rustdoc-toolbar .popover"),elem=>{elem.style.display="none"});const button=getHelpButton();if(button){removeClass(button,"help-open")}};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){const button=getHelpButton();addClass(button,"help-open");button.querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}const helpLink=document.querySelector(`#${HELP_BUTTON_ID} > a`);if(isHelpPage){buildHelpMenu()}else if(helpLink){helpLink.addEventListener("click",event=>{if(!helpLink.contains(helpLink)||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(){function copyContentToClipboard(content){const el=document.createElement("textarea");el.value=content;el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el)}function copyButtonAnimation(button){button.classList.add("clicked");if(button.reset_button_timeout!==undefined){window.clearTimeout(button.reset_button_timeout)}button.reset_button_timeout=window.setTimeout(()=>{button.reset_button_timeout=undefined;button.classList.remove("clicked")},1000)}const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const title=document.querySelector("title").textContent.replace(" - Rust","");const[item,module]=title.split(" in ");const path=[item];if(module!==undefined){path.unshift(module)}copyContentToClipboard(path.join("::"));copyButtonAnimation(but)};function copyCode(codeElem){if(!codeElem){return}copyContentToClipboard(codeElem.textContent)}function getExampleWrap(event){let elem=event.target;while(!hasClass(elem,"example-wrap")){if(elem===document.body||elem.tagName==="A"||elem.tagName==="BUTTON"||hasClass(elem,"docblock")){return null}elem=elem.parentElement}return elem}function addCopyButton(event){const elem=getExampleWrap(event);if(elem===null){return}elem.removeEventListener("mouseover",addCopyButton);const parent=document.createElement("div");parent.className="button-holder";const runButton=elem.querySelector(".test-arrow");if(runButton!==null){parent.appendChild(runButton)}elem.appendChild(parent);const copyButton=document.createElement("button");copyButton.className="copy-button";copyButton.title="Copy code to clipboard";copyButton.addEventListener("click",()=>{copyCode(elem.querySelector("pre > code"));copyButtonAnimation(copyButton)});parent.appendChild(copyButton);if(!elem.parentElement.classList.contains("scraped-example")){return}const scrapedWrapped=elem.parentElement;window.updateScrapedExample(scrapedWrapped,parent)}function showHideCodeExampleButtons(event){const elem=getExampleWrap(event);if(elem===null){return}let buttons=elem.querySelector(".button-holder");if(buttons===null){addCopyButton(event);buttons=elem.querySelector(".button-holder");if(buttons===null){return}}buttons.classList.toggle("keep-visible")}onEachLazy(document.querySelectorAll(".docblock .example-wrap"),elem=>{elem.addEventListener("mouseover",addCopyButton);elem.addEventListener("click",showHideCodeExampleButtons)})}()) \ No newline at end of file diff --git a/static.files/noscript-0111fcff984fae8f.css b/static.files/noscript-0111fcff984fae8f.css new file mode 100644 index 000000000..a6c18ecaf --- /dev/null +++ b/static.files/noscript-0111fcff984fae8f.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,:root:not([data-theme]){--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%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#595959;--settings-menu-filter:invert(50%);--settings-menu-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;--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,:root:not([data-theme]){--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%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#a5a5a5;--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;--settings-menu-filter:invert(50%);--settings-menu-hover-filter:invert(65%);--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;--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-3b12f09e550e0385.css b/static.files/noscript-3b12f09e550e0385.css deleted file mode 100644 index befe41634..000000000 --- a/static.files/noscript-3b12f09e550e0385.css +++ /dev/null @@ -1 +0,0 @@ - #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,:root:not([data-theme]){--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;--settings-menu-filter:none;--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;--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,:root:not([data-theme]){--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;--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-492a78a4a87dcc01.css b/static.files/rustdoc-492a78a4a87dcc01.css deleted file mode 100644 index e9199f955..000000000 --- a/static.files/rustdoc-492a78a4a87dcc01.css +++ /dev/null @@ -1,47 +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;--sidebar-elems-left-padding:24px;--clipboard-image:url('data:image/svg+xml,\ -\ -\ -');--copy-path-height:34px;--copy-path-width:33px;--checkmark-image:url('data:image/svg+xml,\ -\ -');--button-left-margin:4px;--button-border-radius:2px;}@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,.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-right:0.25rem;border-left:solid var(--sidebar-elems-left-padding) transparent;margin-left:calc(-0.25rem - var(--sidebar-elems-left-padding));background-clip:border-box;}.sidebar h2{text-wrap:balance;overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{text-wrap:balance;overflow-wrap:anywhere;font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:var(--sidebar-elems-left-padding);}.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 calc(-16px - var(--sidebar-elems-left-padding));padding:0 var(--sidebar-elems-left-padding);text-align:center;}.sidebar-crate .logo-container img{margin-top:-16px;border-top:solid 16px transparent;box-sizing:content-box;position:relative;background-clip:border-box;z-index:1;}.sidebar-crate h2 a{display:block;border-left:solid var(--sidebar-elems-left-padding) transparent;background-clip:border-box;margin:0 calc(-24px + 0.25rem) 0 calc(-0.2rem - var(--sidebar-elems-left-padding));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>pre{border-radius:6px;}.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);}.docblock .stab,.docblock-short .stab{display:inline-block;}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:10px;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(.scrape-help):not(.tooltip):hover:not(.doc-anchor),.docblock-short a: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;width:100%;}.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;}.example-wrap>a.test-arrow,.example-wrap .button-holder{visibility:hidden;position:absolute;top:4px;right:4px;z-index:1;}a.test-arrow{height:var(--copy-path-height);padding:6px 4px 0 11px;}a.test-arrow::before{content:url('data:image/svg+xml,');}.example-wrap .button-holder{display:flex;}@media not (pointer:coarse){.example-wrap:hover>a.test-arrow,.example-wrap:hover>.button-holder{visibility:visible;}}.example-wrap .button-holder.keep-visible{visibility:visible;}.example-wrap .button-holder .copy-button,.example-wrap .test-arrow{background:var(--main-background-color);cursor:pointer;border-radius:var(--button-border-radius);height:var(--copy-path-height);width:var(--copy-path-width);}.example-wrap .button-holder .copy-button{margin-left:var(--button-left-margin);padding:2px 0 0 4px;border:0;}.example-wrap .button-holder .copy-button::before,.example-wrap .test-arrow::before{filter:var(--copy-path-img-filter);}.example-wrap .button-holder .copy-button::before{content:var(--clipboard-image);}.example-wrap .button-holder .copy-button:hover::before,.example-wrap .test-arrow:hover::before{filter:var(--copy-path-img-hover-filter);}.example-wrap .button-holder .copy-button.clicked::before{content:var(--checkmark-image);padding-right:5px;}.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;}@keyframes targetfadein{from{background-color:var(--main-background-color);}10%{background-color:var(--target-border-color);}to{background-color:var(--target-background-color);}}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);animation:0.65s cubic-bezier(0,0,0.1,1.0) 0.1s targetfadein;}.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:var(--button-left-margin);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:var(--button-border-radius);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);}#settings-menu>a{line-height:0;font-size:0;}#settings-menu>a:before{content:url('data:image/svg+xml,\ - ');width:22px;height:22px;filter:var(--settings-menu-filter);}#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:var(--copy-path-height);width:var(--copy-path-width);margin-left:10px;padding:0;padding-left:2px;border:0;font-size:0;}#copy-path::before{filter:var(--copy-path-img-filter);content:var(--clipboard-image);}#copy-path:hover::before{filter:var(--copy-path-img-hover-filter);}#copy-path.clicked::before{content:var(--checkmark-image);}@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;white-space:nowrap;text-overflow:ellipsis;}.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);}.item-table>li>.item-name{width:33%;}.item-table>li>div{overflow-wrap:anywhere;}}@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"],:root:not([data-theme]){--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;--settings-menu-filter:none;--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;--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;--settings-menu-filter:none;--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;--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;--settings-menu-filter:invert(100%);--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);--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-b0742ba02757f159.css b/static.files/rustdoc-b0742ba02757f159.css new file mode 100644 index 000000000..9fef311de --- /dev/null +++ b/static.files/rustdoc-b0742ba02757f159.css @@ -0,0 +1,53 @@ + :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;--desktop-sidebar-width:200px;--src-sidebar-width:300px;--desktop-sidebar-z-index:100;--sidebar-elems-left-padding:24px;--clipboard-image:url('data:image/svg+xml,\ +\ +\ +');--copy-path-height:34px;--copy-path-width:33px;--checkmark-image:url('data:image/svg+xml,\ +\ +');--button-left-margin:4px;--button-border-radius:2px;--toolbar-button-border-radius:6px;--code-block-border-radius:6px;}@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;grid-area:main-heading-h1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{position:relative;display:grid;grid-template-areas:"main-heading-breadcrumbs main-heading-breadcrumbs" "main-heading-h1 main-heading-toolbar" "main-heading-sub-heading main-heading-toolbar";grid-template-columns:minmax(105px,1fr) minmax(0,max-content);grid-template-rows:minmax(25px,min-content) min-content min-content;padding-bottom:6px;margin-bottom:11px;}.rustdoc-breadcrumbs{grid-area:main-heading-breadcrumbs;line-height:1.25;display:flex;flex-wrap:wrap;align-items:end;padding-top:5px;}.rustdoc-breadcrumbs a{padding:4px 0;margin:-4px 0;z-index:1;}.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;}.structfield{margin:0.6em 0;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,.sub-heading,span.since,a.src,rustdoc-toolbar,summary.hideme,.scraped-example-list,.rustdoc-breadcrumbs,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,.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 .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,.block ul{padding:0;margin:0;list-style:none;}.block ul a{padding-left:1rem;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-right:0.25rem;border-left:solid var(--sidebar-elems-left-padding) transparent;margin-left:calc(-0.25rem - var(--sidebar-elems-left-padding));background-clip:border-box;}.hide-toc #rustdoc-toc,.hide-toc .in-crate{display:none;}.hide-modnav #rustdoc-modnav{display:none;}.sidebar h2{text-wrap:balance;overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{text-wrap:balance;overflow-wrap:anywhere;font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:var(--sidebar-elems-left-padding);}.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 calc(-16px - var(--sidebar-elems-left-padding));padding:0 var(--sidebar-elems-left-padding);text-align:center;}.sidebar-crate .logo-container img{margin-top:-16px;border-top:solid 16px transparent;box-sizing:content-box;position:relative;background-clip:border-box;z-index:1;}.sidebar-crate h2 a{display:block;border-left:solid var(--sidebar-elems-left-padding) transparent;background-clip:border-box;margin:0 calc(-24px + 0.25rem) 0 calc(-0.2rem - var(--sidebar-elems-left-padding));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>pre,.rustdoc .scraped-example .src-line-numbers,.rustdoc .scraped-example .src-line-numbers>pre{border-radius:6px;}.rustdoc .example-wrap>.example-line-numbers,.rustdoc .scraped-example .src-line-numbers,.rustdoc .scraped-example .src-line-numbers>pre{border-top-right-radius:0;border-bottom-right-radius:0;}.rustdoc .example-wrap>.example-line-numbers+pre,.rustdoc .scraped-example .rust{border-top-left-radius:0;border-bottom-left-radius:0;}.rustdoc .scraped-example{position:relative;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.scraped-example:not(.expanded) .example-wrap{max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .example-wrap{max-height:calc(1.5em * 10 + 10px);}.rustdoc:not(.src) .scraped-example:not(.expanded) .src-line-numbers,.rustdoc:not(.src) .scraped-example:not(.expanded) .src-line-numbers>pre,.rustdoc:not(.src) .scraped-example:not(.expanded) pre.rust{padding-bottom:0;overflow:auto hidden;}.rustdoc:not(.src) .scraped-example .src-line-numbers{padding-top:0;}.rustdoc:not(.src) .scraped-example.expanded .src-line-numbers{padding-bottom:0;}.rustdoc:not(.src) .example-wrap pre{overflow:auto;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap .src-line-numbers{min-width:fit-content;flex-grow:0;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;padding-right:2px;color:var(--src-line-numbers-span-color);}.rustdoc .scraped-example .example-wrap .src-line-numbers{padding:0;}.rustdoc .src-line-numbers pre{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;}.sub-heading{font-size:1rem;flex-grow:0;grid-area:main-heading-sub-heading;line-height:1.25;padding-bottom:4px;}.main-heading rustdoc-toolbar,.main-heading .out-of-band{grid-area:main-heading-toolbar;}rustdoc-toolbar{display:flex;flex-direction:row;flex-wrap:nowrap;min-height:60px;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap,.example-wrap .src-line-numbers{background-color:var(--code-block-background-color);border-radius:var(--code-block-border-radius);}#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);}.docblock .stab,.docblock-short .stab{display:inline-block;}.docblock li{margin-bottom:.4em;}.docblock li p:not(:last-child){margin-bottom:.3em;}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 0 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 -10px 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:10px;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(.scrape-help):not(.tooltip):hover:not(.doc-anchor),.docblock-short a: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;width:100%;}.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;}.search-results-title+.sub-heading{color:var(--main-color);display:flex;align-items:baseline;white-space:nowrap;}#crate-search-div{position:relative;min-width:0;}#crate-search{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;}#settings.popover{--popover-arrow-offset:202px;top:calc(100% - 16px);}#help.popover{max-width:600px;--popover-arrow-offset:118px;top:calc(100% - 16px);}#help dt{float:left;clear:left;margin-right:0.5rem;}#help dd{margin-bottom:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;padding:0 0.5rem;text-wrap-style:balance;}#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{display:flex;margin-bottom:20px;}.side-by-side>div{width:50%;padding:0 20px 0 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,.sub-heading,rustdoc-toolbar{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;}.example-wrap>a.test-arrow,.example-wrap .button-holder{visibility:hidden;position:absolute;top:4px;right:4px;z-index:1;}a.test-arrow{height:var(--copy-path-height);padding:6px 4px 0 11px;}a.test-arrow::before{content:url('data:image/svg+xml,');}.example-wrap .button-holder{display:flex;}@media not (pointer:coarse){.example-wrap:hover>a.test-arrow,.example-wrap:hover>.button-holder{visibility:visible;}}.example-wrap .button-holder.keep-visible{visibility:visible;}.example-wrap .button-holder>*{background:var(--main-background-color);cursor:pointer;border-radius:var(--button-border-radius);height:var(--copy-path-height);width:var(--copy-path-width);border:0;color:var(--code-example-button-color);}.example-wrap .button-holder>*:hover{color:var(--code-example-button-hover-color);}.example-wrap .button-holder>*:not(:first-child){margin-left:var(--button-left-margin);}.example-wrap .button-holder .copy-button{padding:2px 0 0 4px;}.example-wrap .button-holder .copy-button::before,.example-wrap .test-arrow::before{filter:var(--copy-path-img-filter);}.example-wrap .button-holder .copy-button::before{content:var(--clipboard-image);}.example-wrap .button-holder .copy-button:hover::before,.example-wrap .test-arrow:hover::before{filter:var(--copy-path-img-hover-filter);}.example-wrap .button-holder .copy-button.clicked::before{content:var(--checkmark-image);padding-right:5px;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.main-heading span.since::before{content:"Since ";}.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;}@keyframes targetfadein{from{background-color:var(--main-background-color);}10%{background-color:var(--target-border-color);}to{background-color:var(--target-background-color);}}: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";}@media not (prefers-reduced-motion){:target{animation:0.65s cubic-bezier(0,0,0.1,1.0) 0.1s targetfadein;}.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{margin-top:0.25rem;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,button#toggle-all-docs{margin-left:var(--button-left-margin);display:flex;line-height:1.25;min-width:14px;}#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,button#toggle-all-docs{display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid transparent;border-radius:var(--button-border-radius);color:var(--main-color);}#settings-menu>a,#help-button>a,button#toggle-all-docs{width:80px;border-radius:var(--toolbar-button-border-radius);}#settings-menu>a,#help-button>a{min-width:0;}#sidebar-button>a{background-color:var(--button-background-color);border-color:var(--border-color);width:33px;}#settings-menu>a:hover,#settings-menu>a:focus-visible,#help-button>a:hover,#help-button>a:focus-visible,#sidebar-button>a:hover,#sidebar-button>a:focus-visible,button#toggle-all-docs:hover,button#toggle-all-docs:focus-visible{border-color:var(--settings-button-border-focus);text-decoration:none;}#settings-menu>a:before{content:url('data:image/svg+xml,\ + ');width:18px;height:18px;filter:var(--settings-menu-filter);}button#toggle-all-docs:before{content:url('data:image/svg+xml,\ + ');width:18px;height:18px;filter:var(--settings-menu-filter);}#help-button>a:before{content:url('data:image/svg+xml,\ + \ + ?');width:18px;height:18px;filter:var(--settings-menu-filter);}button#toggle-all-docs:before,#help-button>a:before,#settings-menu>a:before{filter:var(--settings-menu-filter);margin:8px;}@media not (pointer:coarse){button#toggle-all-docs:hover:before,#help-button>a:hover:before,#settings-menu>a:hover:before{filter:var(--settings-menu-hover-filter);}}button[disabled]#toggle-all-docs{opacity:0.25;border:solid 1px var(--main-background-color);background-size:cover;}button[disabled]#toggle-all-docs:hover{border:solid 1px var(--main-background-color);cursor:not-allowed;}rustdoc-toolbar span.label{font-size:1rem;flex-grow:1;padding-bottom:4px;}#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:var(--copy-path-height);width:var(--copy-path-width);margin-left:10px;padding:0;padding-left:2px;border:0;font-size:0;}#copy-path::before{filter:var(--copy-path-img-filter);content:var(--clipboard-image);}#copy-path:hover::before{filter:var(--copy-path-img-hover-filter);}#copy-path.clicked::before{content:var(--checkmark-image);}@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.big-toggle{contain:inline-size;}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,\ + ');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.big-toggle>summary:not(.hideme)::before{left:-34px;top:9px;}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,\ + ');}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;}.side-by-side{flex-direction:column-reverse;}.side-by-side>div{width:auto;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}#copy-path{display:none;}rustdoc-toolbar span.label{display:none;}#settings-menu>a,#help-button>a,button#toggle-all-docs{width:33px;}#settings.popover{--popover-arrow-offset:86px;}#help.popover{--popover-arrow-offset:48px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.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;}.src .main-heading{margin-left:8px;}.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;white-space:nowrap;text-overflow:ellipsis;}.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;}#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,.impl-items>section{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 0 -25px 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);}.item-table>li>.item-name{width:33%;}.item-table>li>div{overflow-wrap:anywhere;}}@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:not(.expanded) .example-wrap::before,.scraped-example:not(.expanded) .example-wrap::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .example-wrap::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) .example-wrap::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded){width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded){overflow-x:hidden;}.scraped-example .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .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"],:root:not([data-theme]){--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%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#595959;--settings-menu-filter:invert(50%);--settings-menu-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;--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%);--code-example-button-color:#7f7f7f;--code-example-button-hover-color:#a5a5a5;--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;--settings-menu-filter:invert(50%);--settings-menu-hover-filter:invert(65%);--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;--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%);--code-example-button-color:#b2b2b2;--code-example-button-hover-color:#fff;--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;--settings-menu-filter:invert(70%);--settings-menu-hover-filter:invert(100%);--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);--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/scrape-examples-46fc985aa763a438.js b/static.files/scrape-examples-46fc985aa763a438.js new file mode 100644 index 000000000..87b6065d8 --- /dev/null +++ b/static.files/scrape-examples-46fc985aa763a438.js @@ -0,0 +1 @@ +"use strict";(function(){const DEFAULT_MAX_LINES=5;const HIDDEN_MAX_LINES=10;function scrollToLoc(elt,loc,isHidden){const lines=elt.querySelector(".src-line-numbers > pre");let scrollOffset;const maxLines=isHidden?HIDDEN_MAX_LINES:DEFAULT_MAX_LINES;if(loc[1]-loc[0]>maxLines){const line=Math.max(0,loc[0]-1);scrollOffset=lines.children[line].offsetTop}else{const halfHeight=elt.offsetHeight/2;const offsetTop=lines.children[loc[0]].offsetTop;const lastLine=lines.children[loc[1]];const offsetBot=lastLine.offsetTop+lastLine.offsetHeight;const offsetMid=(offsetTop+offsetBot)/2;scrollOffset=offsetMid-halfHeight}lines.parentElement.scrollTo(0,scrollOffset);elt.querySelector(".rust").scrollTo(0,scrollOffset)}function createScrapeButton(parent,className,content){const button=document.createElement("button");button.className=className;button.innerText=content;parent.insertBefore(button,parent.firstChild);return button}window.updateScrapedExample=(example,buttonHolder)=>{let locIndex=0;const highlights=Array.prototype.slice.call(example.querySelectorAll(".highlight"));const link=example.querySelector(".scraped-example-title a");let expandButton=null;if(!example.classList.contains("expanded")){expandButton=createScrapeButton(buttonHolder,"expand","↕")}const isHidden=example.parentElement.classList.contains("more-scraped-examples");const locs=example.locs;if(locs.length>1){const next=createScrapeButton(buttonHolder,"next","≻");const prev=createScrapeButton(buttonHolder,"prev","≺");const onChangeLoc=changeIndex=>{removeClass(highlights[locIndex],"focus");changeIndex();scrollToLoc(example,locs[locIndex][0],isHidden);addClass(highlights[locIndex],"focus");const url=locs[locIndex][1];const title=locs[locIndex][2];link.href=url;link.innerHTML=title};prev.addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex-1+locs.length)%locs.length})});next.addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex+1)%locs.length})})}if(expandButton){expandButton.addEventListener("click",()=>{if(hasClass(example,"expanded")){removeClass(example,"expanded");scrollToLoc(example,locs[0][0],isHidden)}else{addClass(example,"expanded")}})}};function setupLoc(example,isHidden){example.locs=JSON.parse(example.attributes.getNamedItem("data-locs").textContent);scrollToLoc(example,example.locs[0][0],isHidden)}const firstExamples=document.querySelectorAll(".scraped-example-list > .scraped-example");onEachLazy(firstExamples,el=>setupLoc(el,false));onEachLazy(document.querySelectorAll(".more-examples-toggle"),toggle=>{onEachLazy(toggle.querySelectorAll(".toggle-line, .hide-more"),button=>{button.addEventListener("click",()=>{toggle.open=false})});const moreExamples=toggle.querySelectorAll(".scraped-example");toggle.querySelector("summary").addEventListener("click",()=>{setTimeout(()=>{onEachLazy(moreExamples,el=>setupLoc(el,true))})},{once:true})})})() \ No newline at end of file diff --git a/static.files/scrape-examples-ef1e698c1d417c0c.js b/static.files/scrape-examples-ef1e698c1d417c0c.js deleted file mode 100644 index ba830e374..000000000 --- a/static.files/scrape-examples-ef1e698c1d417c0c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(function(){const DEFAULT_MAX_LINES=5;const HIDDEN_MAX_LINES=10;function scrollToLoc(elt,loc,isHidden){const lines=elt.querySelector(".src-line-numbers");let scrollOffset;const maxLines=isHidden?HIDDEN_MAX_LINES:DEFAULT_MAX_LINES;if(loc[1]-loc[0]>maxLines){const line=Math.max(0,loc[0]-1);scrollOffset=lines.children[line].offsetTop}else{const wrapper=elt.querySelector(".code-wrapper");const halfHeight=wrapper.offsetHeight/2;const offsetTop=lines.children[loc[0]].offsetTop;const lastLine=lines.children[loc[1]];const offsetBot=lastLine.offsetTop+lastLine.offsetHeight;const offsetMid=(offsetTop+offsetBot)/2;scrollOffset=offsetMid-halfHeight}lines.scrollTo(0,scrollOffset);elt.querySelector(".rust").scrollTo(0,scrollOffset)}function updateScrapedExample(example,isHidden){const locs=JSON.parse(example.attributes.getNamedItem("data-locs").textContent);let locIndex=0;const highlights=Array.prototype.slice.call(example.querySelectorAll(".highlight"));const link=example.querySelector(".scraped-example-title a");if(locs.length>1){const onChangeLoc=changeIndex=>{removeClass(highlights[locIndex],"focus");changeIndex();scrollToLoc(example,locs[locIndex][0],isHidden);addClass(highlights[locIndex],"focus");const url=locs[locIndex][1];const title=locs[locIndex][2];link.href=url;link.innerHTML=title};example.querySelector(".prev").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex-1+locs.length)%locs.length})});example.querySelector(".next").addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex+1)%locs.length})})}const expandButton=example.querySelector(".expand");if(expandButton){expandButton.addEventListener("click",()=>{if(hasClass(example,"expanded")){removeClass(example,"expanded");scrollToLoc(example,locs[0][0],isHidden)}else{addClass(example,"expanded")}})}scrollToLoc(example,locs[0][0],isHidden)}const firstExamples=document.querySelectorAll(".scraped-example-list > .scraped-example");onEachLazy(firstExamples,el=>updateScrapedExample(el,false));onEachLazy(document.querySelectorAll(".more-examples-toggle"),toggle=>{onEachLazy(toggle.querySelectorAll(".toggle-line, .hide-more"),button=>{button.addEventListener("click",()=>{toggle.open=false})});const moreExamples=toggle.querySelectorAll(".scraped-example");toggle.querySelector("summary").addEventListener("click",()=>{setTimeout(()=>{onEachLazy(moreExamples,el=>updateScrapedExample(el,true))})},{once:true})})})() \ No newline at end of file diff --git a/static.files/search-a99f1315e7cc5121.js b/static.files/search-a99f1315e7cc5121.js deleted file mode 100644 index aee0fc77f..000000000 --- a/static.files/search-a99f1315e7cc5121.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 TY_GENERIC=itemTypes.indexOf("generic");const TY_IMPORT=itemTypes.indexOf("import");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";const UNBOXING_LIMIT=5;const REGEX_IDENT=/\p{ID_Start}\p{ID_Continue}*|_\p{ID_Continue}+/uy;const REGEX_INVALID_TYPE_FILTER=/[^a-z]/ui;const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;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 isEndCharacter(c){return"=,>-])".indexOf(c)!==-1}function isSeparatorCharacter(c){return c===","||c==="="}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function skipWhitespace(parserState){while(parserState.pos0){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 getFilteredNextElem(query,parserState,elems,isInGenerics){const start=parserState.pos;if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){throw["Expected type filter before ",":"]}getNextElem(query,parserState,elems,isInGenerics);if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}if(elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["Cannot use quotes on type filter"]}const typeFilterElem=elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;getNextElem(query,parserState,elems,isInGenerics)}}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let foundSeparator=false;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;const oldIsInBinding=parserState.isInBinding;parserState.isInBinding=null;let hofParameters=null;let extra="";if(endChar===">"){extra="<"}else if(endChar==="]"){extra="["}else if(endChar===")"){extra="("}else if(endChar===""){extra="->"}else{extra=endChar}while(parserState.pos"," after ","="]}hofParameters=[...elems];elems.length=0;parserState.pos+=2;foundStopChar=true;foundSeparator=false;continue}else if(c===" "){parserState.pos+=1;continue}else if(isSeparatorCharacter(c)){parserState.pos+=1;foundStopChar=true;foundSeparator=true;continue}else if(c===":"&&isPathStart(parserState)){throw["Unexpected ","::",": paths cannot start with ","::"]}else if(isEndCharacter(c)){throw["Unexpected ",c," after ",extra]}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(endChar!==""){throw["Expected ",",",", ","=",", or ",endChar,...extra,", found ",c,]}throw["Expected ",","," or ","=",...extra,", found ",c,]}const posBefore=parserState.pos;getFilteredNextElem(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;if(hofParameters){foundSeparator=false;if([...elems,...hofParameters].some(x=>x.bindingName)||parserState.isInBinding){throw["Unexpected ","="," within ","->"]}const hofElem=makePrimitiveElement("->",{generics:hofParameters,bindings:new Map([["output",[...elems]]]),typeFilter:null,});elems.length=0;elems[0]=hofElem}parserState.typeFilter=oldTypeFilter;parserState.isInBinding=oldIsInBinding;return{foundSeparator}}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 bindingName=parserState.isInBinding;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 if(name==="()"&&generics.length===1&&generics[0].name==="->"){generics[0].typeFilter=typeFilter;elems.push(generics[0])}else{if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive ",name," and ",typeFilter," both specified",]}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}elems.push(makePrimitiveElement(name,{bindingName,generics}))}}else if(parserState.userQuery[parserState.pos]==="&"){if(parserState.typeFilter!==null&&parserState.typeFilter!=="primitive"){throw["Invalid search type: primitive ","&"," and ",parserState.typeFilter," both specified",]}parserState.typeFilter=null;parserState.pos+=1;let c=parserState.userQuery[parserState.pos];while(c===" "&&parserState.pos=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}else if(parserState.pos=end){throw["Found generics without a path"]}if(parserState.isInBinding){throw["Unexpected ","("," after ","="]}parserState.pos+=1;const typeFilter=parserState.typeFilter;parserState.typeFilter=null;getItemsBefore(query,parserState,generics,")");skipWhitespace(parserState);if(isReturnArrow(parserState)){parserState.pos+=2;skipWhitespace(parserState);getFilteredNextElem(query,parserState,generics,isInGenerics);generics[generics.length-1].bindingName=makePrimitiveElement("output")}else{generics.push(makePrimitiveElement(null,{bindingName:makePrimitiveElement("output"),typeFilter:null,}))}parserState.typeFilter=typeFilter}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 checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery.slice(start,parserState.pos).trim();const match=query.match(REGEX_INVALID_TYPE_FILTER);if(match){throw["Unexpected ",match[0]," in type filter (before ",":",")",]}}function createQueryElement(query,parserState,name,generics,isInGenerics){const path=name.trim();if(path.length===0&&generics.length===0){throw["Unexpected ",parserState.userQuery[parserState.pos]]}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){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 makePrimitiveElement("never",{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){if(gen.name!==null){gen.bindingName.generics.unshift(gen)}bindings.set(gen.bindingName.name,gen.bindingName.generics);return false}return true}),bindings,typeFilter,bindingName,}}function makePrimitiveElement(name,extra){return Object.assign({name,id:null,fullPath:[name],pathWithoutLast:[],pathLast:name,normalizedPathLast:name,generics:[],bindings:new Map(),typeFilter:"primitive",bindingName:null,},extra)}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 getIdentEndPosition(parserState){let afterIdent=consumeIdent(parserState);let end=parserState.pos;let macroExclamation=-1;while(parserState.pos0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]," (not a valid identifier)"]}else{throw["Unexpected ",c," (not a valid identifier)"]}parserState.pos+=1;afterIdent=consumeIdent(parserState);end=parserState.pos}if(macroExclamation!==-1){if(parserState.typeFilter===null){parserState.typeFilter="macro"}else if(parserState.typeFilter!=="macro"){throw["Invalid search type: macro ","!"," and ",parserState.typeFilter," both specified",]}end=macroExclamation}return end}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function consumeIdent(parserState){REGEX_IDENT.lastIndex=parserState.pos;const match=parserState.userQuery.match(REGEX_IDENT);if(match){parserState.pos+=match[0].length;return true}return false}function isPathSeparator(c){return c===":"||c===" "}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==125){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){let n=0;let c=this.string.charCodeAt(this.offset);if(c===123){this.offset+=1;return this.decodeList()}while(c<96){n=(n<<4)|(c&0xF);this.offset+=1;c=this.string.charCodeAt(this.offset)}n=(n<<4)|(c&0xF);const[sign,value]=[n&1,n>>1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);if(c>=48&&c<64){this.offset+=1;return this.backrefQueue[c-48]}if(c===96){this.offset+=1;return this.cons(0)}const result=this.cons(this.decode());this.backrefQueue.unshift(result);if(this.backrefQueue.length>16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j=4){offsets=[];for(let j=0;j>3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i=start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i>3]&(1<<(value&7)))}}class DocSearch{constructor(rawSearchIndex,rootPath,searchState){this.searchIndexDeprecated=new Map();this.searchIndexEmptyDesc=new Map();this.functionTypeFingerprint=null;this.typeNameIdMap=new Map();this.ALIASES=new Map();this.rootPath=rootPath;this.searchState=searchState;this.typeNameIdOfArray=this.buildTypeMapIndex("array");this.typeNameIdOfSlice=this.buildTypeMapIndex("slice");this.typeNameIdOfArrayOrSlice=this.buildTypeMapIndex("[]");this.typeNameIdOfTuple=this.buildTypeMapIndex("tuple");this.typeNameIdOfUnit=this.buildTypeMapIndex("unit");this.typeNameIdOfTupleOrUnit=this.buildTypeMapIndex("()");this.typeNameIdOfFn=this.buildTypeMapIndex("fn");this.typeNameIdOfFnMut=this.buildTypeMapIndex("fnmut");this.typeNameIdOfFnOnce=this.buildTypeMapIndex("fnonce");this.typeNameIdOfHof=this.buildTypeMapIndex("->");this.EMPTY_BINDINGS_MAP=new Map();this.EMPTY_GENERICS_ARRAY=[];this.TYPES_POOL=new Map();this.searchIndex=this.buildIndex(rawSearchIndex)}buildTypeMapIndex(name,isAssocType){if(name===""||name===null){return null}if(this.typeNameIdMap.has(name)){const obj=this.typeNameIdMap.get(name);obj.assocOnly=isAssocType&&obj.assocOnly;return obj.id}else{const id=this.typeNameIdMap.size;this.typeNameIdMap.set(name,{id,assocOnly:isAssocType});return id}}buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>this.buildItemSearchType(type,lowercasePaths)):this.EMPTY_GENERICS_ARRAY}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=this.EMPTY_GENERICS_ARRAY;bindings=this.EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=this.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[this.buildItemSearchType(assocType,lowercasePaths,true).id,this.buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=this.EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:this.buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=this.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}}this.TYPES_POOL.set(result.id,result);return result}buildFunctionTypeFingerprint(type,output,fps){let input=type.id;if(input===this.typeNameIdOfArray||input===this.typeNameIdOfSlice){input=this.typeNameIdOfArrayOrSlice}if(input===this.typeNameIdOfTuple||input===this.typeNameIdOfUnit){input=this.typeNameIdOfTupleOrUnit}if(input===this.typeNameIdOfFn||input===this.typeNameIdOfFnMut||input===this.typeNameIdOfFnOnce){input=this.typeNameIdOfHof}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){this.buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:this.EMPTY_GENERICS_ARRAY,bindings:this.EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;this.buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}buildIndex(rawSearchIndex){const buildFunctionSearchTypeCallback=lowercasePaths=>{return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[this.buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths),]}else{inputs=this.buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[this.buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths,),]}else{output=this.buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;inoop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];this.searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));this.searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!this.searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxDecoder=new VlqHexDecoder(crateCorpus.i,noop=>noop);const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(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}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;let lastName="";let lastWord="";for(let i=0;i=descShard.len&&!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}const name=itemNames[i]===""?lastName:itemNames[i];const word=itemNames[i]===""?lastWord:itemNames[i].toLowerCase();const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=this.functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){this.buildFunctionTypeFingerprint(t,fp,fps)}}}}const itemParentIdx=itemParentIdxDecoder.next();const row={crate,ty:itemTypes.charCodeAt(i)-65,name,path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdx>0?paths[itemParentIdx-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}lastName=name;lastWord=word}if(aliases){const currentCrateAliases=new Map();this.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;this.searchState.descShards.set(crate,descShardList)}this.TYPES_POOL=new Map();return searchIndex}static parseQuery(userQuery){function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}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)}}}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 parseInput(query,parserState){let foundStopChar=true;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===" "){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;getFilteredNextElem(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}}}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}async execQuery(parsedQuery,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}const buildHrefAndPath=item=>{let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;let exactPath=item.exactPath;if(type==="mod"){displayPath=path+"::";href=this.rootPath+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=this.rootPath+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=this.rootPath+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor=type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;exactPath=`${myparent.exactPath}::${myparent.name}`;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}if(item.implDisambiguator!==null){anchor=item.implDisambiguator+"/"+anchor}href=this.rootPath+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html#"+anchor}else{displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href,`${exactPath}::${name}`]};function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}const transformResults=results=>{const duplicates=new Set();const out=[];for(const result of results){if(result.id!==-1){const obj=this.searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=res[2]+"|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}if(obj.ty===TY_IMPORT&&duplicates.has(res[2])){continue}if(duplicates.has(res[2]+"|"+TY_IMPORT)){continue}duplicates.add(obj.fullPath);duplicates.add(res[2]);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out};const sortResults=async(results,isType,preferredCrate)=>{const userQuery=parsedQuery.userQuery;const casedUserQuery=parsedQuery.original;const result_list=[];for(const result of results.values()){result.item=this.searchIndex[result.id];result.word=this.searchIndex[result.id].word;result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;a=(aaa.item.name!==casedUserQuery);b=(bbb.item.name!==casedUserQuery);if(a!==b){return 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=this.searchIndexDeprecated.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexDeprecated.get(bbb.item.crate).contains(bbb.item.bitIndex);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=this.searchIndexEmptyDesc.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexEmptyDesc.get(bbb.item.crate).contains(bbb.item.bitIndex);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,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}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,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,unboxingDepth+1,)){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,unboxingDepth+1,)){return true}}else if(unifyFunctionTypes([...fnType.generics,...Array.from(fnType.bindings.values()).flat()],queryElems,whereClause,mgens?new Map(mgens):null,solutionCb,unboxingDepth+1,)){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,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,unboxingDepth,);if(!solution){return false}const simplifiedGenerics=solution.simplifiedGenerics;for(const simplifiedMgens of solution.mgens){const passesUnification=unifyFunctionTypes(simplifiedGenerics,queryElem.generics,whereClause,simplifiedMgens,solutionCb,unboxingDepth,);if(passesUnification){return true}}return false},unboxingDepth,);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,unboxingDepth+1,)){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,unboxingDepth+1,);if(passesUnification){return true}}return false}const unifyFunctionTypeIsMatchCandidate=(fnType,queryElem,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===this.typeNameIdOfArrayOrSlice&&(fnType.id===this.typeNameIdOfSlice||fnType.id===this.typeNameIdOfArray)){}else if(queryElem.id===this.typeNameIdOfTupleOrUnit&&(fnType.id===this.typeNameIdOfTuple||fnType.id===this.typeNameIdOfUnit)){}else if(queryElem.id===this.typeNameIdOfHof&&(fnType.id===this.typeNameIdOfFn||fnType.id===this.typeNameIdOfFnMut||fnType.id===this.typeNameIdOfFnOnce)){}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},unboxingDepth,);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,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}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,unboxingDepth,)}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,unboxingDepth,)}return false}function checkIfInList(list,elem,whereClause,mgens,unboxingDepth){for(const entry of list){if(checkType(entry,elem,whereClause,mgens,unboxingDepth)){return true}}return false}const checkType=(row,elem,whereClause,mgens,unboxingDepth)=>{if(unboxingDepth>=UNBOXING_LIMIT){return false}if(row.bindings.size===0&&elem.bindings.size===0){if(elem.id<0&&mgens===null){return row.id<0||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth+1,)}if(row.id>0&&elem.id>0&&elem.pathWithoutLast.length===0&&typePassesFilter(elem.typeFilter,row.ty)&&elem.generics.length===0&&elem.id!==this.typeNameIdOfArrayOrSlice&&elem.id!==this.typeNameIdOfTupleOrUnit&&elem.id!==this.typeNameIdOfHof){return row.id===elem.id||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth,)}}return unifyFunctionTypes([row],[elem],whereClause,mgens,null,unboxingDepth)};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,descShard:item.descShard,descIndex:item.descIndex,exactPath:item.exactPath,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,bitIndex:item.bitIndex,implDisambiguator:item.implDisambiguator,}}const handleAliases=async(ret,query,filterCrates,currentCrate)=>{const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(this.ALIASES.has(filterCrates)&&this.ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=this.ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(this.searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of this.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(this.searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{return this.searchIndexEmptyDesc.get(alias.crate).contains(alias.bitIndex)?"":this.searchState.loadDesc(alias)};const[crateDescs,descs]=await Promise.all([Promise.all(crateAliases.map(fetchDesc)),Promise.all(aliases.map(fetchDesc)),]);const pushFunc=alias=>{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((alias,i)=>{alias.desc=descs[i]});aliases.forEach(pushFunc);crateAliases.forEach((alias,i)=>{alias.desc=crateDescs[i]});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,null,0);const returned=row.type&&row.type.output&&checkIfInList(row.type.output,elem,row.type.where_clause,null,0);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,null,0,)},0,)){return}results.max_dist=Math.max(results.max_dist||0,tfpDist);addIntoResults(results,row.id,pos,0,tfpDist,0,Number.MAX_VALUE)}const compareTypeFingerprints=(fullId,queryFingerprint)=>{const fh0=this.functionTypeFingerprint[fullId*4];const fh1=this.functionTypeFingerprint[(fullId*4)+1];const fh2=this.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 this.functionTypeFingerprint[(fullId*4)+3]};const 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();const convertNameToId=(elem,isAssocType)=>{const loweredName=elem.pathLast.toLowerCase();if(this.typeNameIdMap.has(loweredName)&&(isAssocType||!this.typeNameIdMap.get(loweredName).assocOnly)){elem.id=this.typeNameIdMap.get(loweredName).id}else if(!parsedQuery.literalSearch){let match=null;let matchDist=maxEditDistance+1;let matchName="";for(const[name,{id,assocOnly}]of this.typeNameIdMap){const dist=Math.min(editDistance(name,loweredName,maxEditDistance),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 this.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(!this.typeNameIdMap.has(name)){parsedQuery.error=["Type parameter ",name," does not exist",];return[null,[]]}for(const elem2 of constraints){convertNameToId(elem2)}return[this.typeNameIdMap.get(name).id,constraints]}),)};const fps=new Set();for(const elem of parsedQuery.elems){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}for(const elem of parsedQuery.returned){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}if(parsedQuery.foundElems===1&&parsedQuery.returned.length===0){if(parsedQuery.elems.length===1){const elem=parsedQuery.elems[0];const length=this.searchIndex.length;for(let i=0,nSearchIndex=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=this.searchIndex.length;i{const descs=await Promise.all(list.map(result=>{return this.searchIndexEmptyDesc.get(result.crate).contains(result.bitIndex)?"":this.searchState.loadDesc(result)}));for(const[i,result]of list.entries()){result.desc=descs[i]}}));if(parsedQuery.error!==null&&ret.others.length!==0){ret.query.error=null}return ret}}let rawSearchIndex;let docSearch;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",];let currentResults;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)}}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"&&window.searchIndex.has(elem.value)){return elem.value}return null}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}async function addTab(array,query,display){const extraClass=display?" active":"";const output=document.createElement("div");if(array.length>0){output.className="search-results "+extraClass;for(const item of array){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""}async 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=DocSearch.parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),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)}}async function search(forced){const query=DocSearch.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="\""+query.original+"\" Search - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await docSearch.execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}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)}function initSearch(searchIndx){rawSearchIndex=searchIndx;if(typeof window!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}else if(typeof exports!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);exports.docSearch=docSearch;exports.parseQuery=DocSearch.parseQuery}}if(typeof exports!=="undefined"){exports.initSearch=initSearch}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-f0d225181b97f9a4.js b/static.files/search-f0d225181b97f9a4.js new file mode 100644 index 000000000..d34fb34c6 --- /dev/null +++ b/static.files/search-f0d225181b97f9a4.js @@ -0,0 +1,6 @@ +"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 TY_GENERIC=itemTypes.indexOf("generic");const TY_IMPORT=itemTypes.indexOf("import");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";const UNBOXING_LIMIT=5;const REGEX_IDENT=/\p{ID_Start}\p{ID_Continue}*|_\p{ID_Continue}+/uy;const REGEX_INVALID_TYPE_FILTER=/[^a-z]/ui;const MAX_RESULTS=200;const NO_TYPE_FILTER=-1;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 isEndCharacter(c){return"=,>-])".indexOf(c)!==-1}function isSeparatorCharacter(c){return c===","||c==="="}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function skipWhitespace(parserState){while(parserState.pos0){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 getFilteredNextElem(query,parserState,elems,isInGenerics){const start=parserState.pos;if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){throw["Expected type filter before ",":"]}getNextElem(query,parserState,elems,isInGenerics);if(parserState.userQuery[parserState.pos]===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"," (expected path after type filter ",parserState.typeFilter+":",")",]}if(elems.length===0){throw["Expected type filter before ",":"]}else if(query.literalSearch){throw["Cannot use quotes on type filter"]}const typeFilterElem=elems.pop();checkExtraTypeFilterCharacters(start,parserState);parserState.typeFilter=typeFilterElem.name;parserState.pos+=1;parserState.totalElems-=1;query.literalSearch=false;getNextElem(query,parserState,elems,isInGenerics)}}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;let foundSeparator=false;const oldTypeFilter=parserState.typeFilter;parserState.typeFilter=null;const oldIsInBinding=parserState.isInBinding;parserState.isInBinding=null;let hofParameters=null;let extra="";if(endChar===">"){extra="<"}else if(endChar==="]"){extra="["}else if(endChar===")"){extra="("}else if(endChar===""){extra="->"}else{extra=endChar}while(parserState.pos"," after ","="]}hofParameters=[...elems];elems.length=0;parserState.pos+=2;foundStopChar=true;foundSeparator=false;continue}else if(c===" "){parserState.pos+=1;continue}else if(isSeparatorCharacter(c)){parserState.pos+=1;foundStopChar=true;foundSeparator=true;continue}else if(c===":"&&isPathStart(parserState)){throw["Unexpected ","::",": paths cannot start with ","::"]}else if(isEndCharacter(c)){throw["Unexpected ",c," after ",extra]}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(endChar!==""){throw["Expected ",",",", ","=",", or ",endChar,...extra,", found ",c,]}throw["Expected ",","," or ","=",...extra,", found ",c,]}const posBefore=parserState.pos;getFilteredNextElem(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;if(hofParameters){foundSeparator=false;if([...elems,...hofParameters].some(x=>x.bindingName)||parserState.isInBinding){throw["Unexpected ","="," within ","->"]}const hofElem=makePrimitiveElement("->",{generics:hofParameters,bindings:new Map([["output",[...elems]]]),typeFilter:null,});elems.length=0;elems[0]=hofElem}parserState.typeFilter=oldTypeFilter;parserState.isInBinding=oldIsInBinding;return{foundSeparator}}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 bindingName=parserState.isInBinding;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 if(name==="()"&&generics.length===1&&generics[0].name==="->"){generics[0].typeFilter=typeFilter;elems.push(generics[0])}else{if(typeFilter!==null&&typeFilter!=="primitive"){throw["Invalid search type: primitive ",name," and ",typeFilter," both specified",]}parserState.totalElems+=1;if(isInGenerics){parserState.genericsElems+=1}elems.push(makePrimitiveElement(name,{bindingName,generics}))}}else if(parserState.userQuery[parserState.pos]==="&"){if(parserState.typeFilter!==null&&parserState.typeFilter!=="primitive"){throw["Invalid search type: primitive ","&"," and ",parserState.typeFilter," both specified",]}parserState.typeFilter=null;parserState.pos+=1;let c=parserState.userQuery[parserState.pos];while(c===" "&&parserState.pos=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}else if(parserState.pos=end){throw["Found generics without a path"]}if(parserState.isInBinding){throw["Unexpected ","("," after ","="]}parserState.pos+=1;const typeFilter=parserState.typeFilter;parserState.typeFilter=null;getItemsBefore(query,parserState,generics,")");skipWhitespace(parserState);if(isReturnArrow(parserState)){parserState.pos+=2;skipWhitespace(parserState);getFilteredNextElem(query,parserState,generics,isInGenerics);generics[generics.length-1].bindingName=makePrimitiveElement("output")}else{generics.push(makePrimitiveElement(null,{bindingName:makePrimitiveElement("output"),typeFilter:null,}))}parserState.typeFilter=typeFilter}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 checkExtraTypeFilterCharacters(start,parserState){const query=parserState.userQuery.slice(start,parserState.pos).trim();const match=query.match(REGEX_INVALID_TYPE_FILTER);if(match){throw["Unexpected ",match[0]," in type filter (before ",":",")",]}}function createQueryElement(query,parserState,name,generics,isInGenerics){const path=name.trim();if(path.length===0&&generics.length===0){throw["Unexpected ",parserState.userQuery[parserState.pos]]}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw["Cannot have more than one element if you use quotes"]}const typeFilter=parserState.typeFilter;parserState.typeFilter=null;if(name.trim()==="!"){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 makePrimitiveElement("never",{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){if(gen.name!==null){gen.bindingName.generics.unshift(gen)}bindings.set(gen.bindingName.name,gen.bindingName.generics);return false}return true}),bindings,typeFilter,bindingName,}}function makePrimitiveElement(name,extra){return Object.assign({name,id:null,fullPath:[name],pathWithoutLast:[],pathLast:name,normalizedPathLast:name,generics:[],bindings:new Map(),typeFilter:"primitive",bindingName:null,},extra)}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 getIdentEndPosition(parserState){let afterIdent=consumeIdent(parserState);let end=parserState.pos;let macroExclamation=-1;while(parserState.pos0){throw["Unexpected ",c," after ",parserState.userQuery[parserState.pos-1]," (not a valid identifier)"]}else{throw["Unexpected ",c," (not a valid identifier)"]}parserState.pos+=1;afterIdent=consumeIdent(parserState);end=parserState.pos}if(macroExclamation!==-1){if(parserState.typeFilter===null){parserState.typeFilter="macro"}else if(parserState.typeFilter!=="macro"){throw["Invalid search type: macro ","!"," and ",parserState.typeFilter," both specified",]}end=macroExclamation}return end}function isSpecialStartCharacter(c){return"<\"".indexOf(c)!==-1}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function consumeIdent(parserState){REGEX_IDENT.lastIndex=parserState.pos;const match=parserState.userQuery.match(REGEX_IDENT);if(match){parserState.pos+=match[0].length;return true}return false}function isPathSeparator(c){return c===":"||c===" "}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==125){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){let n=0;let c=this.string.charCodeAt(this.offset);if(c===123){this.offset+=1;return this.decodeList()}while(c<96){n=(n<<4)|(c&0xF);this.offset+=1;c=this.string.charCodeAt(this.offset)}n=(n<<4)|(c&0xF);const[sign,value]=[n&1,n>>1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);if(c>=48&&c<64){this.offset+=1;return this.backrefQueue[c-48]}if(c===96){this.offset+=1;return this.cons(0)}const result=this.cons(this.decode());this.backrefQueue.unshift(result);if(this.backrefQueue.length>16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j=4){offsets=[];for(let j=0;j>3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i=start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i>3]&(1<<(value&7)))}}class DocSearch{constructor(rawSearchIndex,rootPath,searchState){this.searchIndexDeprecated=new Map();this.searchIndexEmptyDesc=new Map();this.functionTypeFingerprint=null;this.typeNameIdMap=new Map();this.ALIASES=new Map();this.rootPath=rootPath;this.searchState=searchState;this.typeNameIdOfArray=this.buildTypeMapIndex("array");this.typeNameIdOfSlice=this.buildTypeMapIndex("slice");this.typeNameIdOfArrayOrSlice=this.buildTypeMapIndex("[]");this.typeNameIdOfTuple=this.buildTypeMapIndex("tuple");this.typeNameIdOfUnit=this.buildTypeMapIndex("unit");this.typeNameIdOfTupleOrUnit=this.buildTypeMapIndex("()");this.typeNameIdOfFn=this.buildTypeMapIndex("fn");this.typeNameIdOfFnMut=this.buildTypeMapIndex("fnmut");this.typeNameIdOfFnOnce=this.buildTypeMapIndex("fnonce");this.typeNameIdOfHof=this.buildTypeMapIndex("->");this.EMPTY_BINDINGS_MAP=new Map();this.EMPTY_GENERICS_ARRAY=[];this.TYPES_POOL=new Map();this.searchIndex=this.buildIndex(rawSearchIndex)}buildTypeMapIndex(name,isAssocType){if(name===""||name===null){return null}if(this.typeNameIdMap.has(name)){const obj=this.typeNameIdMap.get(name);obj.assocOnly=isAssocType&&obj.assocOnly;return obj.id}else{const id=this.typeNameIdMap.size;this.typeNameIdMap.set(name,{id,assocOnly:isAssocType});return id}}buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>this.buildItemSearchType(type,lowercasePaths)):this.EMPTY_GENERICS_ARRAY}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=this.EMPTY_GENERICS_ARRAY;bindings=this.EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=this.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[this.buildItemSearchType(assocType,lowercasePaths,true).id,this.buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=this.EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:this.buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=this.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}}this.TYPES_POOL.set(result.id,result);return result}buildFunctionTypeFingerprint(type,output,fps){let input=type.id;if(input===this.typeNameIdOfArray||input===this.typeNameIdOfSlice){input=this.typeNameIdOfArrayOrSlice}if(input===this.typeNameIdOfTuple||input===this.typeNameIdOfUnit){input=this.typeNameIdOfTupleOrUnit}if(input===this.typeNameIdOfFn||input===this.typeNameIdOfFnMut||input===this.typeNameIdOfFnOnce){input=this.typeNameIdOfHof}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){this.buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:this.EMPTY_GENERICS_ARRAY,bindings:this.EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;this.buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}buildIndex(rawSearchIndex){const buildFunctionSearchTypeCallback=lowercasePaths=>{return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[this.buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths),]}else{inputs=this.buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[this.buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths,),]}else{output=this.buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;inoop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];this.searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));this.searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!this.searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxDecoder=new VlqHexDecoder(crateCorpus.i,noop=>noop);const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(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}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;let lastName="";let lastWord="";for(let i=0;i=descShard.len&&!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}const name=itemNames[i]===""?lastName:itemNames[i];const word=itemNames[i]===""?lastWord:itemNames[i].toLowerCase();const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=this.functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){this.buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){this.buildFunctionTypeFingerprint(t,fp,fps)}}}}const itemParentIdx=itemParentIdxDecoder.next();const row={crate,ty:itemTypes.charCodeAt(i)-65,name,path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdx>0?paths[itemParentIdx-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!this.searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}lastName=name;lastWord=word}if(aliases){const currentCrateAliases=new Map();this.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;this.searchState.descShards.set(crate,descShardList)}this.TYPES_POOL=new Map();return searchIndex}static parseQuery(userQuery){function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}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)}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),elems:[],returned:[],foundElems:0,totalElems:0,literalSearch:false,hasReturnArrow:false,error:null,correction:null,proposeCorrectionFrom:null,proposeCorrectionTo:null,typeFingerprint:new Uint32Array(4),}}function parseInput(query,parserState){let foundStopChar=true;while(parserState.pos"){if(isReturnArrow(parserState)){query.hasReturnArrow=true;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===" "){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;getFilteredNextElem(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.pos1}query.foundElems=query.elems.length+query.returned.length;query.totalElems=parserState.totalElems;return query}async execQuery(parsedQuery,filterCrates,currentCrate){const results_others=new Map(),results_in_args=new Map(),results_returned=new Map();function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}const buildHrefAndPath=item=>{let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;let exactPath=item.exactPath;if(type==="mod"){displayPath=path+"::";href=this.rootPath+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=this.rootPath+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=this.rootPath+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor=type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;exactPath=`${myparent.exactPath}::${myparent.name}`;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}if(item.implDisambiguator!==null){anchor=item.implDisambiguator+"/"+anchor}href=this.rootPath+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html#"+anchor}else{displayPath=item.path+"::";href=this.rootPath+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href,`${exactPath}::${name}`]};function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}const transformResults=results=>{const duplicates=new Set();const out=[];for(const result of results){if(result.id!==-1){const obj=this.searchIndex[result.id];obj.dist=result.dist;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=res[2]+"|"+obj.ty;if(duplicates.has(obj.fullPath)){continue}if(obj.ty===TY_IMPORT&&duplicates.has(res[2])){continue}if(duplicates.has(res[2]+"|"+TY_IMPORT)){continue}duplicates.add(obj.fullPath);duplicates.add(res[2]);obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out};const sortResults=async(results,isType,preferredCrate)=>{const userQuery=parsedQuery.userQuery;const casedUserQuery=parsedQuery.original;const isMixedCase=casedUserQuery!==userQuery;const result_list=[];for(const result of results.values()){result.item=this.searchIndex[result.id];result.word=this.searchIndex[result.id].word;result_list.push(result)}result_list.sort((aaa,bbb)=>{let a,b;if(isMixedCase){a=(aaa.item.name!==casedUserQuery);b=(bbb.item.name!==casedUserQuery);if(a!==b){return 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=this.searchIndexDeprecated.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexDeprecated.get(bbb.item.crate).contains(bbb.item.bitIndex);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=this.searchIndexEmptyDesc.get(aaa.item.crate).contains(aaa.item.bitIndex);b=this.searchIndexEmptyDesc.get(bbb.item.crate).contains(bbb.item.bitIndex);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,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}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,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,unboxingDepth+1,)){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,unboxingDepth+1,)){return true}}else if(unifyFunctionTypes([...fnType.generics,...Array.from(fnType.bindings.values()).flat()],queryElems,whereClause,mgens?new Map(mgens):null,solutionCb,unboxingDepth+1,)){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,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,unboxingDepth,);if(!solution){return false}const simplifiedGenerics=solution.simplifiedGenerics;for(const simplifiedMgens of solution.mgens){const passesUnification=unifyFunctionTypes(simplifiedGenerics,queryElem.generics,whereClause,simplifiedMgens,solutionCb,unboxingDepth,);if(passesUnification){return true}}return false},unboxingDepth,);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,unboxingDepth+1,)){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,unboxingDepth+1,);if(passesUnification){return true}}return false}const unifyFunctionTypeIsMatchCandidate=(fnType,queryElem,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===this.typeNameIdOfArrayOrSlice&&(fnType.id===this.typeNameIdOfSlice||fnType.id===this.typeNameIdOfArray)){}else if(queryElem.id===this.typeNameIdOfTupleOrUnit&&(fnType.id===this.typeNameIdOfTuple||fnType.id===this.typeNameIdOfUnit)){}else if(queryElem.id===this.typeNameIdOfHof&&(fnType.id===this.typeNameIdOfFn||fnType.id===this.typeNameIdOfFnMut||fnType.id===this.typeNameIdOfFnOnce)){}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},unboxingDepth,);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,unboxingDepth,){if(unboxingDepth>=UNBOXING_LIMIT){return false}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,unboxingDepth,)}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,unboxingDepth,)}return false}function checkIfInList(list,elem,whereClause,mgens,unboxingDepth){for(const entry of list){if(checkType(entry,elem,whereClause,mgens,unboxingDepth)){return true}}return false}const checkType=(row,elem,whereClause,mgens,unboxingDepth)=>{if(unboxingDepth>=UNBOXING_LIMIT){return false}if(row.bindings.size===0&&elem.bindings.size===0){if(elem.id<0&&mgens===null){return row.id<0||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth+1,)}if(row.id>0&&elem.id>0&&elem.pathWithoutLast.length===0&&typePassesFilter(elem.typeFilter,row.ty)&&elem.generics.length===0&&elem.id!==this.typeNameIdOfArrayOrSlice&&elem.id!==this.typeNameIdOfTupleOrUnit&&elem.id!==this.typeNameIdOfHof){return row.id===elem.id||checkIfInList(row.generics,elem,whereClause,mgens,unboxingDepth,)}}return unifyFunctionTypes([row],[elem],whereClause,mgens,null,unboxingDepth)};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,descShard:item.descShard,descIndex:item.descIndex,exactPath:item.exactPath,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,bitIndex:item.bitIndex,implDisambiguator:item.implDisambiguator,}}const handleAliases=async(ret,query,filterCrates,currentCrate)=>{const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(this.ALIASES.has(filterCrates)&&this.ALIASES.get(filterCrates).has(lowerQuery)){const query_aliases=this.ALIASES.get(filterCrates).get(lowerQuery);for(const alias of query_aliases){aliases.push(createAliasFromItem(this.searchIndex[alias]))}}}else{for(const[crate,crateAliasesIndex]of this.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(this.searchIndex[alias]))}}}}const sortFunc=(aaa,bbb)=>{if(aaa.path{return this.searchIndexEmptyDesc.get(alias.crate).contains(alias.bitIndex)?"":this.searchState.loadDesc(alias)};const[crateDescs,descs]=await Promise.all([Promise.all(crateAliases.map(fetchDesc)),Promise.all(aliases.map(fetchDesc)),]);const pushFunc=alias=>{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((alias,i)=>{alias.desc=descs[i]});aliases.forEach(pushFunc);crateAliases.forEach((alias,i)=>{alias.desc=crateDescs[i]});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,null,0);const returned=row.type&&row.type.output&&checkIfInList(row.type.output,elem,row.type.where_clause,null,0);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,null,0,)},0,)){return}results.max_dist=Math.max(results.max_dist||0,tfpDist);addIntoResults(results,row.id,pos,0,tfpDist,0,Number.MAX_VALUE)}const compareTypeFingerprints=(fullId,queryFingerprint)=>{const fh0=this.functionTypeFingerprint[fullId*4];const fh1=this.functionTypeFingerprint[(fullId*4)+1];const fh2=this.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 this.functionTypeFingerprint[(fullId*4)+3]};const 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();const convertNameToId=(elem,isAssocType)=>{const loweredName=elem.pathLast.toLowerCase();if(this.typeNameIdMap.has(loweredName)&&(isAssocType||!this.typeNameIdMap.get(loweredName).assocOnly)){elem.id=this.typeNameIdMap.get(loweredName).id}else if(!parsedQuery.literalSearch){let match=null;let matchDist=maxEditDistance+1;let matchName="";for(const[name,{id,assocOnly}]of this.typeNameIdMap){const dist=Math.min(editDistance(name,loweredName,maxEditDistance),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 this.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(!this.typeNameIdMap.has(name)){parsedQuery.error=["Type parameter ",name," does not exist",];return[null,[]]}for(const elem2 of constraints){convertNameToId(elem2)}return[this.typeNameIdMap.get(name).id,constraints]}),)};const fps=new Set();for(const elem of parsedQuery.elems){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}for(const elem of parsedQuery.returned){convertNameToId(elem);this.buildFunctionTypeFingerprint(elem,parsedQuery.typeFingerprint,fps)}if(parsedQuery.foundElems===1&&!parsedQuery.hasReturnArrow){if(parsedQuery.elems.length===1){const elem=parsedQuery.elems[0];const length=this.searchIndex.length;for(let i=0,nSearchIndex=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=this.searchIndex.length;i{const descs=await Promise.all(list.map(result=>{return this.searchIndexEmptyDesc.get(result.crate).contains(result.bitIndex)?"":this.searchState.loadDesc(result)}));for(const[i,result]of list.entries()){result.desc=descs[i]}}));if(parsedQuery.error!==null&&ret.others.length!==0){ret.query.error=null}return ret}}let rawSearchIndex;let docSearch;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",];let currentResults;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)}}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"&&window.searchIndex.has(elem.value)){return elem.value}return null}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}async function addTab(array,query,display){const extraClass=display?" active":"";const output=document.createElement("div");if(array.length>0){output.className="search-results "+extraClass;for(const item of array){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""}async 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=DocSearch.parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),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;if(searchState.rustdocToolbar){search.querySelector(".main-heading").appendChild(searchState.rustdocToolbar)}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)}}async function search(forced){const query=DocSearch.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="\""+query.original+"\" Search - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await docSearch.execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}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)}function initSearch(searchIndx){rawSearchIndex=searchIndx;if(typeof window!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}else if(typeof exports!=="undefined"){docSearch=new DocSearch(rawSearchIndex,ROOT_PATH,searchState);exports.docSearch=docSearch;exports.parseQuery=DocSearch.parseQuery}}if(typeof exports!=="undefined"){exports.initSearch=initSearch}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/settings-4313503d2e1961c2.js b/static.files/settings-805db61a62df4bd2.js similarity index 50% rename from static.files/settings-4313503d2e1961c2.js rename to static.files/settings-805db61a62df4bd2.js index ab425fe49..4a30479d9 100644 --- a/static.files/settings-4313503d2e1961c2.js +++ b/static.files/settings-805db61a62df4bd2.js @@ -1,4 +1,4 @@ -"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break;case"hide-sidebar":if(value===true){addClass(document.documentElement,"hide-sidebar")}else{removeClass(document.documentElement,"hide-sidebar")}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=()=>{changeSetting(toggle.id,toggle.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\ +"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break;case"hide-sidebar":if(value===true){addClass(document.documentElement,"hide-sidebar")}else{removeClass(document.documentElement,"hide-sidebar")}break;case"hide-toc":if(value===true){addClass(document.documentElement,"hide-toc")}else{removeClass(document.documentElement,"hide-toc")}break;case"hide-modnav":if(value===true){addClass(document.documentElement,"hide-modnav")}else{removeClass(document.documentElement,"hide-modnav")}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=()=>{changeSetting(toggle.id,toggle.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){if(setting==="hr"){output+="
    ";continue}const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\
    ${setting_name}
    `;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\ @@ -14,4 +14,4 @@ \ ${setting_name}\ \ -
    `}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Hide persistent navigation bar","js_name":"hide-sidebar","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
    ${buildSettingsPageSections(settings)}
    `;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display="";onEachLazy(settingsMenu.querySelectorAll("input[type='checkbox']"),el=>{const val=getSettingValue(el.id);const checked=val==="true";if(checked!==el.checked&&val!==null){el.checked=checked}})}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=event=>{event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=event=>{if(settingsMenu.contains(event.target)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file +
    `}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Hide persistent navigation bar","js_name":"hide-sidebar","default":false,},{"name":"Hide table of contents","js_name":"hide-toc","default":false,},{"name":"Hide module navigation","js_name":"hide-modnav","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
    ${buildSettingsPageSections(settings)}
    `;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display="";onEachLazy(settingsMenu.querySelectorAll("input[type='checkbox']"),el=>{const val=getSettingValue(el.id);const checked=val==="true";if(checked!==el.checked&&val!==null){el.checked=checked}})}function settingsBlurHandler(event){if(!getHelpButton().contains(document.activeElement)&&!getHelpButton().contains(event.relatedTarget)&&!getSettingsButton().contains(document.activeElement)&&!getSettingsButton().contains(event.relatedTarget)){window.hidePopoverMenus()}}if(!isSettingsPage){const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=event=>{if(settingsMenu.contains(event.target)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file diff --git a/static.files/storage-118b08c4c78b968e.js b/static.files/storage-1d39b6787ed640ff.js similarity index 71% rename from static.files/storage-118b08c4c78b968e.js rename to static.files/storage-1d39b6787ed640ff.js index 981894677..5aac776b4 100644 --- a/static.files/storage-118b08c4c78b968e.js +++ b/static.files/storage-1d39b6787ed640ff.js @@ -1,4 +1,4 @@ -"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)}});class RustdocSearchElement extends HTMLElement{constructor(){super()}connectedCallback(){const rootPath=getVar("root-path");const currentCrate=getVar("current-crate");this.innerHTML=``}}window.customElements.define("rustdoc-search",RustdocSearchElement);class RustdocToolbarElement extends HTMLElement{constructor(){super()}connectedCallback(){if(this.firstElementChild){return}const rootPath=getVar("root-path");this.innerHTML=` +
    + Settings +
    +
    + Help +
    + `}}window.customElements.define("rustdoc-toolbar",RustdocToolbarElement) \ 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 7d3010700..9d9e4e915 100644 --- a/trait.impl/core/clone/trait.Clone.js +++ b/trait.impl/core/clone/trait.Clone.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Clone for NPY_ARRAYMETHOD_FLAGS"],["impl Clone for NPY_BYTEORDER_CHAR"],["impl Clone for NPY_CASTING"],["impl Clone for NPY_CLIPMODE"],["impl Clone for NPY_DATETIMEUNIT"],["impl Clone for NPY_ORDER"],["impl Clone for NPY_SCALARKIND"],["impl Clone for NPY_SEARCHSIDE"],["impl Clone for NPY_SELECTKIND"],["impl Clone for NPY_SORTKIND"],["impl Clone for NPY_TYPECHAR"],["impl Clone for NPY_TYPEKINDCHAR"],["impl Clone for NPY_TYPES"],["impl Clone for Attoseconds"],["impl Clone for Days"],["impl Clone for Femtoseconds"],["impl Clone for Hours"],["impl Clone for Microseconds"],["impl Clone for Milliseconds"],["impl Clone for Minutes"],["impl Clone for Months"],["impl Clone for Nanoseconds"],["impl Clone for Picoseconds"],["impl Clone for Seconds"],["impl Clone for Weeks"],["impl Clone for Years"],["impl Clone for NpyAuxData"],["impl Clone for NpyIter"],["impl Clone for PyArrayDTypeMeta_Spec"],["impl Clone for PyArrayInterface"],["impl Clone for PyArrayMethod_Spec"],["impl Clone for PyArray_ArrFuncs"],["impl Clone for PyArray_ArrayDescr"],["impl Clone for PyArray_DatetimeDTypeMetaData"],["impl Clone for PyArray_DatetimeMetaData"],["impl Clone for PyArray_Dims"],["impl Clone for npy_static_string"],["impl Clone for npy_cdouble"],["impl Clone for npy_cfloat"],["impl Clone for npy_clongdouble"],["impl Clone for npy_datetimestruct"],["impl Clone for npy_stride_sort_item"],["impl Clone for npy_timedeltastruct"],["impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<U: Clone + Unit> Clone for Datetime<U>"],["impl<U: Clone + Unit> Clone for Timedelta<U>"],["impl<const N: usize> Clone for PyFixedString<N>"],["impl<const N: usize> Clone for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Clone for NPY_ARRAYMETHOD_FLAGS"],["impl Clone for NPY_BYTEORDER_CHAR"],["impl Clone for NPY_CASTING"],["impl Clone for NPY_CLIPMODE"],["impl Clone for NPY_DATETIMEUNIT"],["impl Clone for NPY_ORDER"],["impl Clone for NPY_SCALARKIND"],["impl Clone for NPY_SEARCHSIDE"],["impl Clone for NPY_SELECTKIND"],["impl Clone for NPY_SORTKIND"],["impl Clone for NPY_TYPECHAR"],["impl Clone for NPY_TYPEKINDCHAR"],["impl Clone for NPY_TYPES"],["impl Clone for Attoseconds"],["impl Clone for Days"],["impl Clone for Femtoseconds"],["impl Clone for Hours"],["impl Clone for Microseconds"],["impl Clone for Milliseconds"],["impl Clone for Minutes"],["impl Clone for Months"],["impl Clone for Nanoseconds"],["impl Clone for Picoseconds"],["impl Clone for Seconds"],["impl Clone for Weeks"],["impl Clone for Years"],["impl Clone for NpyAuxData"],["impl Clone for NpyIter"],["impl Clone for PyArrayDTypeMeta_Spec"],["impl Clone for PyArrayInterface"],["impl Clone for PyArrayMethod_Spec"],["impl Clone for PyArray_ArrFuncs"],["impl Clone for PyArray_ArrayDescr"],["impl Clone for PyArray_DatetimeDTypeMetaData"],["impl Clone for PyArray_DatetimeMetaData"],["impl Clone for PyArray_Dims"],["impl Clone for npy_static_string"],["impl Clone for npy_cdouble"],["impl Clone for npy_cfloat"],["impl Clone for npy_clongdouble"],["impl Clone for npy_datetimestruct"],["impl Clone for npy_stride_sort_item"],["impl Clone for npy_timedeltastruct"],["impl<'py, T, D> Clone for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<U: Clone + Unit> Clone for Datetime<U>"],["impl<U: Clone + Unit> Clone for Timedelta<U>"],["impl<const N: usize> Clone for PyFixedString<N>"],["impl<const N: usize> Clone for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.Eq.js b/trait.impl/core/cmp/trait.Eq.js index aaebaa0cf..ce0106bca 100644 --- a/trait.impl/core/cmp/trait.Eq.js +++ b/trait.impl/core/cmp/trait.Eq.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Eq for NPY_ARRAYMETHOD_FLAGS"],["impl Eq for NPY_BYTEORDER_CHAR"],["impl Eq for NPY_CASTING"],["impl Eq for NPY_CLIPMODE"],["impl Eq for NPY_DATETIMEUNIT"],["impl Eq for NPY_ORDER"],["impl Eq for NPY_SCALARKIND"],["impl Eq for NPY_SEARCHSIDE"],["impl Eq for NPY_SELECTKIND"],["impl Eq for NPY_SORTKIND"],["impl Eq for NPY_TYPES"],["impl Eq for Attoseconds"],["impl Eq for Days"],["impl Eq for Femtoseconds"],["impl Eq for Hours"],["impl Eq for Microseconds"],["impl Eq for Milliseconds"],["impl Eq for Minutes"],["impl Eq for Months"],["impl Eq for Nanoseconds"],["impl Eq for Picoseconds"],["impl Eq for Seconds"],["impl Eq for Weeks"],["impl Eq for Years"],["impl<U: Eq + Unit> Eq for Datetime<U>"],["impl<U: Eq + Unit> Eq for Timedelta<U>"],["impl<const N: usize> Eq for PyFixedString<N>"],["impl<const N: usize> Eq for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Eq for NPY_ARRAYMETHOD_FLAGS"],["impl Eq for NPY_BYTEORDER_CHAR"],["impl Eq for NPY_CASTING"],["impl Eq for NPY_CLIPMODE"],["impl Eq for NPY_DATETIMEUNIT"],["impl Eq for NPY_ORDER"],["impl Eq for NPY_SCALARKIND"],["impl Eq for NPY_SEARCHSIDE"],["impl Eq for NPY_SELECTKIND"],["impl Eq for NPY_SORTKIND"],["impl Eq for NPY_TYPES"],["impl Eq for Attoseconds"],["impl Eq for Days"],["impl Eq for Femtoseconds"],["impl Eq for Hours"],["impl Eq for Microseconds"],["impl Eq for Milliseconds"],["impl Eq for Minutes"],["impl Eq for Months"],["impl Eq for Nanoseconds"],["impl Eq for Picoseconds"],["impl Eq for Seconds"],["impl Eq for Weeks"],["impl Eq for Years"],["impl<U: Eq + Unit> Eq for Datetime<U>"],["impl<U: Eq + Unit> Eq for Timedelta<U>"],["impl<const N: usize> Eq for PyFixedString<N>"],["impl<const N: usize> Eq for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.Ord.js b/trait.impl/core/cmp/trait.Ord.js index 22dd20256..ad79555f6 100644 --- a/trait.impl/core/cmp/trait.Ord.js +++ b/trait.impl/core/cmp/trait.Ord.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Ord for NPY_TYPES"],["impl Ord for Attoseconds"],["impl Ord for Days"],["impl Ord for Femtoseconds"],["impl Ord for Hours"],["impl Ord for Microseconds"],["impl Ord for Milliseconds"],["impl Ord for Minutes"],["impl Ord for Months"],["impl Ord for Nanoseconds"],["impl Ord for Picoseconds"],["impl Ord for Seconds"],["impl Ord for Weeks"],["impl Ord for Years"],["impl<U: Ord + Unit> Ord for Datetime<U>"],["impl<U: Ord + Unit> Ord for Timedelta<U>"],["impl<const N: usize> Ord for PyFixedString<N>"],["impl<const N: usize> Ord for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Ord for NPY_TYPES"],["impl Ord for Attoseconds"],["impl Ord for Days"],["impl Ord for Femtoseconds"],["impl Ord for Hours"],["impl Ord for Microseconds"],["impl Ord for Milliseconds"],["impl Ord for Minutes"],["impl Ord for Months"],["impl Ord for Nanoseconds"],["impl Ord for Picoseconds"],["impl Ord for Seconds"],["impl Ord for Weeks"],["impl Ord for Years"],["impl<U: Ord + Unit> Ord for Datetime<U>"],["impl<U: Ord + Unit> Ord for Timedelta<U>"],["impl<const N: usize> Ord for PyFixedString<N>"],["impl<const N: usize> Ord for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.PartialEq.js b/trait.impl/core/cmp/trait.PartialEq.js index 0c17757d2..59b3cfbde 100644 --- a/trait.impl/core/cmp/trait.PartialEq.js +++ b/trait.impl/core/cmp/trait.PartialEq.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl PartialEq for NPY_ARRAYMETHOD_FLAGS"],["impl PartialEq for NPY_BYTEORDER_CHAR"],["impl PartialEq for NPY_CASTING"],["impl PartialEq for NPY_CLIPMODE"],["impl PartialEq for NPY_DATETIMEUNIT"],["impl PartialEq for NPY_ORDER"],["impl PartialEq for NPY_SCALARKIND"],["impl PartialEq for NPY_SEARCHSIDE"],["impl PartialEq for NPY_SELECTKIND"],["impl PartialEq for NPY_SORTKIND"],["impl PartialEq for NPY_TYPES"],["impl PartialEq for Attoseconds"],["impl PartialEq for Days"],["impl PartialEq for Femtoseconds"],["impl PartialEq for Hours"],["impl PartialEq for Microseconds"],["impl PartialEq for Milliseconds"],["impl PartialEq for Minutes"],["impl PartialEq for Months"],["impl PartialEq for Nanoseconds"],["impl PartialEq for Picoseconds"],["impl PartialEq for Seconds"],["impl PartialEq for Weeks"],["impl PartialEq for Years"],["impl<U: PartialEq + Unit> PartialEq for Datetime<U>"],["impl<U: PartialEq + Unit> PartialEq for Timedelta<U>"],["impl<const N: usize> PartialEq for PyFixedString<N>"],["impl<const N: usize> PartialEq for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl PartialEq for NPY_ARRAYMETHOD_FLAGS"],["impl PartialEq for NPY_BYTEORDER_CHAR"],["impl PartialEq for NPY_CASTING"],["impl PartialEq for NPY_CLIPMODE"],["impl PartialEq for NPY_DATETIMEUNIT"],["impl PartialEq for NPY_ORDER"],["impl PartialEq for NPY_SCALARKIND"],["impl PartialEq for NPY_SEARCHSIDE"],["impl PartialEq for NPY_SELECTKIND"],["impl PartialEq for NPY_SORTKIND"],["impl PartialEq for NPY_TYPES"],["impl PartialEq for Attoseconds"],["impl PartialEq for Days"],["impl PartialEq for Femtoseconds"],["impl PartialEq for Hours"],["impl PartialEq for Microseconds"],["impl PartialEq for Milliseconds"],["impl PartialEq for Minutes"],["impl PartialEq for Months"],["impl PartialEq for Nanoseconds"],["impl PartialEq for Picoseconds"],["impl PartialEq for Seconds"],["impl PartialEq for Weeks"],["impl PartialEq for Years"],["impl<U: PartialEq + Unit> PartialEq for Datetime<U>"],["impl<U: PartialEq + Unit> PartialEq for Timedelta<U>"],["impl<const N: usize> PartialEq for PyFixedString<N>"],["impl<const N: usize> PartialEq for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/cmp/trait.PartialOrd.js b/trait.impl/core/cmp/trait.PartialOrd.js index f878d2a6e..9dbb86ef6 100644 --- a/trait.impl/core/cmp/trait.PartialOrd.js +++ b/trait.impl/core/cmp/trait.PartialOrd.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl PartialOrd for NPY_TYPES"],["impl PartialOrd for Attoseconds"],["impl PartialOrd for Days"],["impl PartialOrd for Femtoseconds"],["impl PartialOrd for Hours"],["impl PartialOrd for Microseconds"],["impl PartialOrd for Milliseconds"],["impl PartialOrd for Minutes"],["impl PartialOrd for Months"],["impl PartialOrd for Nanoseconds"],["impl PartialOrd for Picoseconds"],["impl PartialOrd for Seconds"],["impl PartialOrd for Weeks"],["impl PartialOrd for Years"],["impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>"],["impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>"],["impl<const N: usize> PartialOrd for PyFixedString<N>"],["impl<const N: usize> PartialOrd for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl PartialOrd for NPY_TYPES"],["impl PartialOrd for Attoseconds"],["impl PartialOrd for Days"],["impl PartialOrd for Femtoseconds"],["impl PartialOrd for Hours"],["impl PartialOrd for Microseconds"],["impl PartialOrd for Milliseconds"],["impl PartialOrd for Minutes"],["impl PartialOrd for Months"],["impl PartialOrd for Nanoseconds"],["impl PartialOrd for Picoseconds"],["impl PartialOrd for Seconds"],["impl PartialOrd for Weeks"],["impl PartialOrd for Years"],["impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>"],["impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>"],["impl<const N: usize> PartialOrd for PyFixedString<N>"],["impl<const N: usize> PartialOrd for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/convert/trait.AsRef.js b/trait.impl/core/convert/trait.AsRef.js index fcfc82cc0..1049bc173 100644 --- a/trait.impl/core/convert/trait.AsRef.js +++ b/trait.impl/core/convert/trait.AsRef.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl AsRef<PyAny> for PyArrayDescr"],["impl AsRef<PyAny> for PyUntypedArray"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl AsRef<PyAny> for PyArrayDescr"],["impl AsRef<PyAny> for PyUntypedArray"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/convert/trait.From.js b/trait.impl/core/convert/trait.From.js index d0621b8f2..bc0d1b356 100644 --- a/trait.impl/core/convert/trait.From.js +++ b/trait.impl/core/convert/trait.From.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl From<BorrowError> for PyErr"],["impl From<FromVecError> for PyErr"],["impl From<NotContiguousError> for PyErr"],["impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<U: Unit> From<i64> for Datetime<U>"],["impl<U: Unit> From<i64> for Timedelta<U>"],["impl<U: Unit> From<Datetime<U>> for i64"],["impl<U: Unit> From<Timedelta<U>> for i64"],["impl<const N: usize> From<[u32; N]> for PyFixedUnicode<N>"],["impl<const N: usize> From<[u8; N]> for PyFixedString<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl From<BorrowError> for PyErr"],["impl From<FromVecError> for PyErr"],["impl From<NotContiguousError> for PyErr"],["impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<U: Unit> From<i64> for Datetime<U>"],["impl<U: Unit> From<i64> for Timedelta<U>"],["impl<U: Unit> From<Datetime<U>> for i64"],["impl<U: Unit> From<Timedelta<U>> for i64"],["impl<const N: usize> From<[u32; N]> for PyFixedUnicode<N>"],["impl<const N: usize> From<[u8; N]> for PyFixedString<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/error/trait.Error.js b/trait.impl/core/error/trait.Error.js index e0045794d..e1897e95a 100644 --- a/trait.impl/core/error/trait.Error.js +++ b/trait.impl/core/error/trait.Error.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Error for BorrowError"],["impl Error for FromVecError"],["impl Error for NotContiguousError"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Error for BorrowError"],["impl Error for FromVecError"],["impl Error for NotContiguousError"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/fmt/trait.Debug.js b/trait.impl/core/fmt/trait.Debug.js index 15d468d8c..2bf4b17c7 100644 --- a/trait.impl/core/fmt/trait.Debug.js +++ b/trait.impl/core/fmt/trait.Debug.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Debug for BorrowError"],["impl Debug for NPY_ARRAYMETHOD_FLAGS"],["impl Debug for NPY_BYTEORDER_CHAR"],["impl Debug for NPY_CASTING"],["impl Debug for NPY_DATETIMEUNIT"],["impl Debug for NPY_ORDER"],["impl Debug for NPY_SCALARKIND"],["impl Debug for NPY_SEARCHSIDE"],["impl Debug for NPY_SELECTKIND"],["impl Debug for NPY_SORTKIND"],["impl Debug for NPY_TYPECHAR"],["impl Debug for NPY_TYPEKINDCHAR"],["impl Debug for NPY_TYPES"],["impl Debug for Attoseconds"],["impl Debug for Days"],["impl Debug for Femtoseconds"],["impl Debug for Hours"],["impl Debug for Microseconds"],["impl Debug for Milliseconds"],["impl Debug for Minutes"],["impl Debug for Months"],["impl Debug for Nanoseconds"],["impl Debug for Picoseconds"],["impl Debug for Seconds"],["impl Debug for Weeks"],["impl Debug for Years"],["impl Debug for NpyIter"],["impl Debug for npy_cdouble"],["impl Debug for npy_cfloat"],["impl Debug for npy_clongdouble"],["impl Debug for npy_datetimestruct"],["impl Debug for npy_stride_sort_item"],["impl Debug for npy_timedeltastruct"],["impl Debug for AllowTypeChange"],["impl Debug for FromVecError"],["impl Debug for NotContiguousError"],["impl Debug for TypeMustMatch"],["impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["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<U: Unit> Debug for Datetime<U>"],["impl<U: Unit> Debug for Timedelta<U>"],["impl<const N: usize> Debug for PyFixedString<N>"],["impl<const N: usize> Debug for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Debug for BorrowError"],["impl Debug for NPY_ARRAYMETHOD_FLAGS"],["impl Debug for NPY_BYTEORDER_CHAR"],["impl Debug for NPY_CASTING"],["impl Debug for NPY_DATETIMEUNIT"],["impl Debug for NPY_ORDER"],["impl Debug for NPY_SCALARKIND"],["impl Debug for NPY_SEARCHSIDE"],["impl Debug for NPY_SELECTKIND"],["impl Debug for NPY_SORTKIND"],["impl Debug for NPY_TYPECHAR"],["impl Debug for NPY_TYPEKINDCHAR"],["impl Debug for NPY_TYPES"],["impl Debug for Attoseconds"],["impl Debug for Days"],["impl Debug for Femtoseconds"],["impl Debug for Hours"],["impl Debug for Microseconds"],["impl Debug for Milliseconds"],["impl Debug for Minutes"],["impl Debug for Months"],["impl Debug for Nanoseconds"],["impl Debug for Picoseconds"],["impl Debug for Seconds"],["impl Debug for Weeks"],["impl Debug for Years"],["impl Debug for NpyIter"],["impl Debug for npy_cdouble"],["impl Debug for npy_cfloat"],["impl Debug for npy_clongdouble"],["impl Debug for npy_datetimestruct"],["impl Debug for npy_stride_sort_item"],["impl Debug for npy_timedeltastruct"],["impl Debug for AllowTypeChange"],["impl Debug for FromVecError"],["impl Debug for NotContiguousError"],["impl Debug for TypeMustMatch"],["impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["impl<'py, T, D> Debug for PyReadwriteArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["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<U: Unit> Debug for Datetime<U>"],["impl<U: Unit> Debug for Timedelta<U>"],["impl<const N: usize> Debug for PyFixedString<N>"],["impl<const N: usize> Debug for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/fmt/trait.Display.js b/trait.impl/core/fmt/trait.Display.js index 463a1398f..52ce28a2f 100644 --- a/trait.impl/core/fmt/trait.Display.js +++ b/trait.impl/core/fmt/trait.Display.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Display for BorrowError"],["impl Display for FromVecError"],["impl Display for NotContiguousError"],["impl<const N: usize> Display for PyFixedString<N>"],["impl<const N: usize> Display for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Display for BorrowError"],["impl Display for FromVecError"],["impl Display for NotContiguousError"],["impl<const N: usize> Display for PyFixedString<N>"],["impl<const N: usize> Display for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/hash/trait.Hash.js b/trait.impl/core/hash/trait.Hash.js index f4ae16866..135b30cbe 100644 --- a/trait.impl/core/hash/trait.Hash.js +++ b/trait.impl/core/hash/trait.Hash.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Hash for NPY_ARRAYMETHOD_FLAGS"],["impl Hash for NPY_BYTEORDER_CHAR"],["impl Hash for NPY_CASTING"],["impl Hash for NPY_CLIPMODE"],["impl Hash for NPY_DATETIMEUNIT"],["impl Hash for NPY_ORDER"],["impl Hash for NPY_SCALARKIND"],["impl Hash for NPY_SEARCHSIDE"],["impl Hash for NPY_SELECTKIND"],["impl Hash for NPY_SORTKIND"],["impl Hash for NPY_TYPES"],["impl Hash for Attoseconds"],["impl Hash for Days"],["impl Hash for Femtoseconds"],["impl Hash for Hours"],["impl Hash for Microseconds"],["impl Hash for Milliseconds"],["impl Hash for Minutes"],["impl Hash for Months"],["impl Hash for Nanoseconds"],["impl Hash for Picoseconds"],["impl Hash for Seconds"],["impl Hash for Weeks"],["impl Hash for Years"],["impl<U: Hash + Unit> Hash for Datetime<U>"],["impl<U: Hash + Unit> Hash for Timedelta<U>"],["impl<const N: usize> Hash for PyFixedString<N>"],["impl<const N: usize> Hash for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Hash for NPY_ARRAYMETHOD_FLAGS"],["impl Hash for NPY_BYTEORDER_CHAR"],["impl Hash for NPY_CASTING"],["impl Hash for NPY_CLIPMODE"],["impl Hash for NPY_DATETIMEUNIT"],["impl Hash for NPY_ORDER"],["impl Hash for NPY_SCALARKIND"],["impl Hash for NPY_SEARCHSIDE"],["impl Hash for NPY_SELECTKIND"],["impl Hash for NPY_SORTKIND"],["impl Hash for NPY_TYPES"],["impl Hash for Attoseconds"],["impl Hash for Days"],["impl Hash for Femtoseconds"],["impl Hash for Hours"],["impl Hash for Microseconds"],["impl Hash for Milliseconds"],["impl Hash for Minutes"],["impl Hash for Months"],["impl Hash for Nanoseconds"],["impl Hash for Picoseconds"],["impl Hash for Seconds"],["impl Hash for Weeks"],["impl Hash for Years"],["impl<U: Hash + Unit> Hash for Datetime<U>"],["impl<U: Hash + Unit> Hash for Timedelta<U>"],["impl<const N: usize> Hash for PyFixedString<N>"],["impl<const N: usize> Hash for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Copy.js b/trait.impl/core/marker/trait.Copy.js index df862398f..0cc4433bf 100644 --- a/trait.impl/core/marker/trait.Copy.js +++ b/trait.impl/core/marker/trait.Copy.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Copy for NPY_ARRAYMETHOD_FLAGS"],["impl Copy for NPY_BYTEORDER_CHAR"],["impl Copy for NPY_CASTING"],["impl Copy for NPY_CLIPMODE"],["impl Copy for NPY_DATETIMEUNIT"],["impl Copy for NPY_ORDER"],["impl Copy for NPY_SCALARKIND"],["impl Copy for NPY_SEARCHSIDE"],["impl Copy for NPY_SELECTKIND"],["impl Copy for NPY_SORTKIND"],["impl Copy for NPY_TYPECHAR"],["impl Copy for NPY_TYPEKINDCHAR"],["impl Copy for NPY_TYPES"],["impl Copy for Attoseconds"],["impl Copy for Days"],["impl Copy for Femtoseconds"],["impl Copy for Hours"],["impl Copy for Microseconds"],["impl Copy for Milliseconds"],["impl Copy for Minutes"],["impl Copy for Months"],["impl Copy for Nanoseconds"],["impl Copy for Picoseconds"],["impl Copy for Seconds"],["impl Copy for Weeks"],["impl Copy for Years"],["impl Copy for NpyAuxData"],["impl Copy for NpyIter"],["impl Copy for PyArrayDTypeMeta_Spec"],["impl Copy for PyArrayInterface"],["impl Copy for PyArrayMethod_Spec"],["impl Copy for PyArray_ArrFuncs"],["impl Copy for PyArray_ArrayDescr"],["impl Copy for PyArray_DatetimeDTypeMetaData"],["impl Copy for PyArray_DatetimeMetaData"],["impl Copy for PyArray_Dims"],["impl Copy for npy_static_string"],["impl Copy for npy_cdouble"],["impl Copy for npy_cfloat"],["impl Copy for npy_clongdouble"],["impl Copy for npy_datetimestruct"],["impl Copy for npy_stride_sort_item"],["impl Copy for npy_timedeltastruct"],["impl<U: Copy + Unit> Copy for Datetime<U>"],["impl<U: Copy + Unit> Copy for Timedelta<U>"],["impl<const N: usize> Copy for PyFixedString<N>"],["impl<const N: usize> Copy for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Copy for NPY_ARRAYMETHOD_FLAGS"],["impl Copy for NPY_BYTEORDER_CHAR"],["impl Copy for NPY_CASTING"],["impl Copy for NPY_CLIPMODE"],["impl Copy for NPY_DATETIMEUNIT"],["impl Copy for NPY_ORDER"],["impl Copy for NPY_SCALARKIND"],["impl Copy for NPY_SEARCHSIDE"],["impl Copy for NPY_SELECTKIND"],["impl Copy for NPY_SORTKIND"],["impl Copy for NPY_TYPECHAR"],["impl Copy for NPY_TYPEKINDCHAR"],["impl Copy for NPY_TYPES"],["impl Copy for Attoseconds"],["impl Copy for Days"],["impl Copy for Femtoseconds"],["impl Copy for Hours"],["impl Copy for Microseconds"],["impl Copy for Milliseconds"],["impl Copy for Minutes"],["impl Copy for Months"],["impl Copy for Nanoseconds"],["impl Copy for Picoseconds"],["impl Copy for Seconds"],["impl Copy for Weeks"],["impl Copy for Years"],["impl Copy for NpyAuxData"],["impl Copy for NpyIter"],["impl Copy for PyArrayDTypeMeta_Spec"],["impl Copy for PyArrayInterface"],["impl Copy for PyArrayMethod_Spec"],["impl Copy for PyArray_ArrFuncs"],["impl Copy for PyArray_ArrayDescr"],["impl Copy for PyArray_DatetimeDTypeMetaData"],["impl Copy for PyArray_DatetimeMetaData"],["impl Copy for PyArray_Dims"],["impl Copy for npy_static_string"],["impl Copy for npy_cdouble"],["impl Copy for npy_cfloat"],["impl Copy for npy_clongdouble"],["impl Copy for npy_datetimestruct"],["impl Copy for npy_stride_sort_item"],["impl Copy for npy_timedeltastruct"],["impl<U: Copy + Unit> Copy for Datetime<U>"],["impl<U: Copy + Unit> Copy for Timedelta<U>"],["impl<const N: usize> Copy for PyFixedString<N>"],["impl<const N: usize> Copy for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Freeze.js b/trait.impl/core/marker/trait.Freeze.js index 4614a7e91..b87d9e57c 100644 --- a/trait.impl/core/marker/trait.Freeze.js +++ b/trait.impl/core/marker/trait.Freeze.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl !Freeze for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl !Freeze for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl !Freeze for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !Freeze for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Freeze for BorrowError",1,["numpy::error::BorrowError"]],["impl Freeze for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Freeze for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Freeze for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Freeze for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Freeze for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Freeze for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Freeze for Days",1,["numpy::datetime::units::Days"]],["impl Freeze for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Freeze for Hours",1,["numpy::datetime::units::Hours"]],["impl Freeze for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Freeze for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Freeze for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Freeze for Months",1,["numpy::datetime::units::Months"]],["impl Freeze for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Freeze for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Freeze for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Freeze for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Freeze for Years",1,["numpy::datetime::units::Years"]],["impl Freeze for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Freeze for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Freeze for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl Freeze for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Freeze for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Freeze for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Freeze for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Freeze for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl Freeze for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Freeze for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Freeze for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Freeze for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Freeze for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Freeze for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Freeze for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Freeze for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Freeze for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Freeze for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl Freeze for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Freeze for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl Freeze for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Freeze for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl Freeze for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Freeze for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Freeze for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Freeze for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Freeze for FromVecError",1,["numpy::error::FromVecError"]],["impl Freeze for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Freeze for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C> Freeze for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !Freeze for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl<U> Freeze for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Freeze for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl<const N: usize> Freeze for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Freeze for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); + var implementors = Object.fromEntries([["numpy",[["impl !Freeze for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl !Freeze for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl !Freeze for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !Freeze for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Freeze for BorrowError",1,["numpy::error::BorrowError"]],["impl Freeze for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Freeze for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Freeze for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Freeze for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Freeze for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Freeze for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Freeze for Days",1,["numpy::datetime::units::Days"]],["impl Freeze for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Freeze for Hours",1,["numpy::datetime::units::Hours"]],["impl Freeze for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Freeze for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Freeze for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Freeze for Months",1,["numpy::datetime::units::Months"]],["impl Freeze for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Freeze for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Freeze for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Freeze for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Freeze for Years",1,["numpy::datetime::units::Years"]],["impl Freeze for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Freeze for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Freeze for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl Freeze for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Freeze for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Freeze for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Freeze for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Freeze for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl Freeze for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Freeze for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Freeze for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Freeze for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Freeze for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Freeze for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Freeze for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Freeze for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Freeze for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Freeze for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl Freeze for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Freeze for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl Freeze for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Freeze for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl Freeze for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Freeze for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Freeze for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Freeze for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Freeze for FromVecError",1,["numpy::error::FromVecError"]],["impl Freeze for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Freeze for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C> Freeze for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !Freeze for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl<U> Freeze for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Freeze for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl<const N: usize> Freeze for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Freeze for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Send.js b/trait.impl/core/marker/trait.Send.js index bbe0e032d..ced45cff2 100644 --- a/trait.impl/core/marker/trait.Send.js +++ b/trait.impl/core/marker/trait.Send.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl !Send for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl !Send for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl !Send for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Send for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Send for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Send for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Send for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl !Send for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Send for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Send for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Send for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Send for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Send for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Send for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl !Send for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Send for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl !Send for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Send for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl !Send for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl !Send for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl !Send for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["impl !Send for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !Send for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Send for BorrowError",1,["numpy::error::BorrowError"]],["impl Send for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Send for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Send for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Send for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Send for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Send for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Send for Days",1,["numpy::datetime::units::Days"]],["impl Send for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Send for Hours",1,["numpy::datetime::units::Hours"]],["impl Send for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Send for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Send for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Send for Months",1,["numpy::datetime::units::Months"]],["impl Send for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Send for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Send for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Send for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Send for Years",1,["numpy::datetime::units::Years"]],["impl Send for PyArrayAPI"],["impl Send for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Send for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Send for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Send for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Send for PyUFuncAPI"],["impl Send for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Send for FromVecError",1,["numpy::error::FromVecError"]],["impl Send for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Send for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C = TypeMustMatch> !Send for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !Send for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl<U> Send for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Send for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl<const N: usize> Send for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Send for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); + var implementors = Object.fromEntries([["numpy",[["impl !Send for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl !Send for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl !Send for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Send for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Send for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Send for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Send for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl !Send for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Send for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Send for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Send for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Send for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Send for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Send for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl !Send for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Send for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl !Send for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Send for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl !Send for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl !Send for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl !Send for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["impl !Send for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !Send for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Send for BorrowError",1,["numpy::error::BorrowError"]],["impl Send for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Send for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Send for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Send for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Send for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Send for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Send for Days",1,["numpy::datetime::units::Days"]],["impl Send for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Send for Hours",1,["numpy::datetime::units::Hours"]],["impl Send for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Send for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Send for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Send for Months",1,["numpy::datetime::units::Months"]],["impl Send for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Send for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Send for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Send for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Send for Years",1,["numpy::datetime::units::Years"]],["impl Send for PyArrayAPI"],["impl Send for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Send for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Send for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Send for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Send for PyUFuncAPI"],["impl Send for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Send for FromVecError",1,["numpy::error::FromVecError"]],["impl Send for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Send for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C = TypeMustMatch> !Send for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !Send for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl<U> Send for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Send for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl<const N: usize> Send for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Send for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.StructuralPartialEq.js b/trait.impl/core/marker/trait.StructuralPartialEq.js index 7405d35b9..ac0d970da 100644 --- a/trait.impl/core/marker/trait.StructuralPartialEq.js +++ b/trait.impl/core/marker/trait.StructuralPartialEq.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl StructuralPartialEq for NPY_ARRAYMETHOD_FLAGS"],["impl StructuralPartialEq for NPY_BYTEORDER_CHAR"],["impl StructuralPartialEq for NPY_CASTING"],["impl StructuralPartialEq for NPY_CLIPMODE"],["impl StructuralPartialEq for NPY_DATETIMEUNIT"],["impl StructuralPartialEq for NPY_ORDER"],["impl StructuralPartialEq for NPY_SCALARKIND"],["impl StructuralPartialEq for NPY_SEARCHSIDE"],["impl StructuralPartialEq for NPY_SELECTKIND"],["impl StructuralPartialEq for NPY_SORTKIND"],["impl StructuralPartialEq for NPY_TYPES"],["impl StructuralPartialEq for Attoseconds"],["impl StructuralPartialEq for Days"],["impl StructuralPartialEq for Femtoseconds"],["impl StructuralPartialEq for Hours"],["impl StructuralPartialEq for Microseconds"],["impl StructuralPartialEq for Milliseconds"],["impl StructuralPartialEq for Minutes"],["impl StructuralPartialEq for Months"],["impl StructuralPartialEq for Nanoseconds"],["impl StructuralPartialEq for Picoseconds"],["impl StructuralPartialEq for Seconds"],["impl StructuralPartialEq for Weeks"],["impl StructuralPartialEq for Years"],["impl<U: Unit> StructuralPartialEq for Datetime<U>"],["impl<U: Unit> StructuralPartialEq for Timedelta<U>"],["impl<const N: usize> StructuralPartialEq for PyFixedString<N>"],["impl<const N: usize> StructuralPartialEq for PyFixedUnicode<N>"]]]]); + var implementors = Object.fromEntries([["numpy",[["impl StructuralPartialEq for NPY_ARRAYMETHOD_FLAGS"],["impl StructuralPartialEq for NPY_BYTEORDER_CHAR"],["impl StructuralPartialEq for NPY_CASTING"],["impl StructuralPartialEq for NPY_CLIPMODE"],["impl StructuralPartialEq for NPY_DATETIMEUNIT"],["impl StructuralPartialEq for NPY_ORDER"],["impl StructuralPartialEq for NPY_SCALARKIND"],["impl StructuralPartialEq for NPY_SEARCHSIDE"],["impl StructuralPartialEq for NPY_SELECTKIND"],["impl StructuralPartialEq for NPY_SORTKIND"],["impl StructuralPartialEq for NPY_TYPES"],["impl StructuralPartialEq for Attoseconds"],["impl StructuralPartialEq for Days"],["impl StructuralPartialEq for Femtoseconds"],["impl StructuralPartialEq for Hours"],["impl StructuralPartialEq for Microseconds"],["impl StructuralPartialEq for Milliseconds"],["impl StructuralPartialEq for Minutes"],["impl StructuralPartialEq for Months"],["impl StructuralPartialEq for Nanoseconds"],["impl StructuralPartialEq for Picoseconds"],["impl StructuralPartialEq for Seconds"],["impl StructuralPartialEq for Weeks"],["impl StructuralPartialEq for Years"],["impl<U: Unit> StructuralPartialEq for Datetime<U>"],["impl<U: Unit> StructuralPartialEq for Timedelta<U>"],["impl<const N: usize> StructuralPartialEq for PyFixedString<N>"],["impl<const N: usize> StructuralPartialEq for PyFixedUnicode<N>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Sync.js b/trait.impl/core/marker/trait.Sync.js index 96a93b622..d28067ba2 100644 --- a/trait.impl/core/marker/trait.Sync.js +++ b/trait.impl/core/marker/trait.Sync.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl !Sync for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl !Sync for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl !Sync for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Sync for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Sync for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Sync for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Sync for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl !Sync for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Sync for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Sync for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Sync for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Sync for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Sync for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Sync for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl !Sync for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Sync for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl !Sync for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Sync for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl !Sync for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl !Sync for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl !Sync for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["impl !Sync for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !Sync for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Sync for BorrowError",1,["numpy::error::BorrowError"]],["impl Sync for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Sync for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Sync for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Sync for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Sync for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Sync for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Sync for Days",1,["numpy::datetime::units::Days"]],["impl Sync for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Sync for Hours",1,["numpy::datetime::units::Hours"]],["impl Sync for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Sync for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Sync for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Sync for Months",1,["numpy::datetime::units::Months"]],["impl Sync for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Sync for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Sync for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Sync for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Sync for Years",1,["numpy::datetime::units::Years"]],["impl Sync for PyArrayAPI"],["impl Sync for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Sync for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Sync for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Sync for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Sync for PyUFuncAPI"],["impl Sync for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Sync for FromVecError",1,["numpy::error::FromVecError"]],["impl Sync for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Sync for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C = TypeMustMatch> !Sync for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !Sync for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl<U> Sync for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Sync for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl<const N: usize> Sync for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Sync for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); + var implementors = Object.fromEntries([["numpy",[["impl !Sync for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl !Sync for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl !Sync for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl !Sync for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl !Sync for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl !Sync for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl !Sync for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl !Sync for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl !Sync for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl !Sync for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl !Sync for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl !Sync for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl !Sync for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl !Sync for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl !Sync for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl !Sync for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl !Sync for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl !Sync for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl !Sync for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl !Sync for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl !Sync for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["impl !Sync for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !Sync for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Sync for BorrowError",1,["numpy::error::BorrowError"]],["impl Sync for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Sync for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Sync for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Sync for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Sync for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Sync for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Sync for Days",1,["numpy::datetime::units::Days"]],["impl Sync for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Sync for Hours",1,["numpy::datetime::units::Hours"]],["impl Sync for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Sync for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Sync for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Sync for Months",1,["numpy::datetime::units::Months"]],["impl Sync for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Sync for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Sync for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Sync for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Sync for Years",1,["numpy::datetime::units::Years"]],["impl Sync for PyArrayAPI"],["impl Sync for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Sync for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Sync for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Sync for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Sync for PyUFuncAPI"],["impl Sync for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Sync for FromVecError",1,["numpy::error::FromVecError"]],["impl Sync for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Sync for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C = TypeMustMatch> !Sync for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !Sync for PyArray<T, D>",1,["numpy::array::PyArray"]],["impl<U> Sync for Datetime<U>",1,["numpy::datetime::Datetime"]],["impl<U> Sync for Timedelta<U>",1,["numpy::datetime::Timedelta"]],["impl<const N: usize> Sync for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Sync for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/marker/trait.Unpin.js b/trait.impl/core/marker/trait.Unpin.js index 88d362db0..382aaf3d0 100644 --- a/trait.impl/core/marker/trait.Unpin.js +++ b/trait.impl/core/marker/trait.Unpin.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Unpin for BorrowError",1,["numpy::error::BorrowError"]],["impl Unpin for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Unpin for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Unpin for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Unpin for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Unpin for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Unpin for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Unpin for Days",1,["numpy::datetime::units::Days"]],["impl Unpin for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Unpin for Hours",1,["numpy::datetime::units::Hours"]],["impl Unpin for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Unpin for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Unpin for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Unpin for Months",1,["numpy::datetime::units::Months"]],["impl Unpin for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Unpin for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Unpin for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Unpin for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Unpin for Years",1,["numpy::datetime::units::Years"]],["impl Unpin for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl Unpin for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Unpin for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Unpin for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl Unpin for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Unpin for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Unpin for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Unpin for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Unpin for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl Unpin for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Unpin for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Unpin for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Unpin for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Unpin for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Unpin for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Unpin for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Unpin for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Unpin for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Unpin for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl Unpin for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Unpin for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl Unpin for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Unpin for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl Unpin for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Unpin for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Unpin for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Unpin for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl Unpin for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Unpin for FromVecError",1,["numpy::error::FromVecError"]],["impl Unpin for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Unpin for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Unpin for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Unpin for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl<'py, T, D> Unpin for PyReadonlyArray<'py, T, D>
    where\n T: Unpin,\n D: Unpin,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> Unpin for PyReadwriteArray<'py, T, D>
    where\n T: Unpin,\n D: Unpin,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl<'py, T, D, C> Unpin for PyArrayLike<'py, T, D, C>
    where\n C: Unpin,\n T: Unpin,\n D: Unpin,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> Unpin for PyArray<T, D>
    where\n T: Unpin,\n D: Unpin,
    ",1,["numpy::array::PyArray"]],["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<const N: usize> Unpin for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Unpin for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Unpin for BorrowError",1,["numpy::error::BorrowError"]],["impl Unpin for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl Unpin for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl Unpin for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl Unpin for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl Unpin for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl Unpin for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl Unpin for Days",1,["numpy::datetime::units::Days"]],["impl Unpin for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl Unpin for Hours",1,["numpy::datetime::units::Hours"]],["impl Unpin for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl Unpin for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl Unpin for Minutes",1,["numpy::datetime::units::Minutes"]],["impl Unpin for Months",1,["numpy::datetime::units::Months"]],["impl Unpin for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl Unpin for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl Unpin for Seconds",1,["numpy::datetime::units::Seconds"]],["impl Unpin for Weeks",1,["numpy::datetime::units::Weeks"]],["impl Unpin for Years",1,["numpy::datetime::units::Years"]],["impl Unpin for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl Unpin for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl Unpin for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl Unpin for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl Unpin for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl Unpin for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl Unpin for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl Unpin for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl Unpin for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl Unpin for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl Unpin for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl Unpin for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl Unpin for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl Unpin for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl Unpin for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl Unpin for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl Unpin for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl Unpin for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl Unpin for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl Unpin for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl Unpin for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl Unpin for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl Unpin for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl Unpin for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl Unpin for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl Unpin for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl Unpin for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl Unpin for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl Unpin for FromVecError",1,["numpy::error::FromVecError"]],["impl Unpin for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl Unpin for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl Unpin for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl Unpin for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl<'py, T, D> Unpin for PyReadonlyArray<'py, T, D>
    where\n T: Unpin,\n D: Unpin,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> Unpin for PyReadwriteArray<'py, T, D>
    where\n T: Unpin,\n D: Unpin,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl<'py, T, D, C> Unpin for PyArrayLike<'py, T, D, C>
    where\n C: Unpin,\n T: Unpin,\n D: Unpin,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> Unpin for PyArray<T, D>
    where\n T: Unpin,\n D: Unpin,
    ",1,["numpy::array::PyArray"]],["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<const N: usize> Unpin for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> Unpin for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/ops/deref/trait.Deref.js b/trait.impl/core/ops/deref/trait.Deref.js index 387bfbf93..2d4f1692e 100644 --- a/trait.impl/core/ops/deref/trait.Deref.js +++ b/trait.impl/core/ops/deref/trait.Deref.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl Deref for PyArrayDescr"],["impl Deref for PyUntypedArray"],["impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["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,
    "]]]]); + var implementors = Object.fromEntries([["numpy",[["impl Deref for PyArrayDescr"],["impl Deref for PyUntypedArray"],["impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,
    "],["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,
    "]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/ops/drop/trait.Drop.js b/trait.impl/core/ops/drop/trait.Drop.js index 13d92c818..c38513627 100644 --- a/trait.impl/core/ops/drop/trait.Drop.js +++ b/trait.impl/core/ops/drop/trait.Drop.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["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,
    "]]]]); + var implementors = Object.fromEntries([["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 { diff --git a/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js b/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js index 6763f7458..37c5d3248 100644 --- a/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js +++ b/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl !RefUnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl !RefUnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl !RefUnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !RefUnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl RefUnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl RefUnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl RefUnwindSafe for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl RefUnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl RefUnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl RefUnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl RefUnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl RefUnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl RefUnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl RefUnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl RefUnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl RefUnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl RefUnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl RefUnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl RefUnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl RefUnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl RefUnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl RefUnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl RefUnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl RefUnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl RefUnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl RefUnwindSafe for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl RefUnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl RefUnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl RefUnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl RefUnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl RefUnwindSafe for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl RefUnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl RefUnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl RefUnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl RefUnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl RefUnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl RefUnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl RefUnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl RefUnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl RefUnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl RefUnwindSafe for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl RefUnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl RefUnwindSafe for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl RefUnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl RefUnwindSafe for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl RefUnwindSafe for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl RefUnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl RefUnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl RefUnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl RefUnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl RefUnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl RefUnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C = TypeMustMatch> !RefUnwindSafe for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !RefUnwindSafe for PyArray<T, D>",1,["numpy::array::PyArray"]],["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<const N: usize> RefUnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> RefUnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); + var implementors = Object.fromEntries([["numpy",[["impl !RefUnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl !RefUnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl !RefUnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl !RefUnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl RefUnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl RefUnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl RefUnwindSafe for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl RefUnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl RefUnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl RefUnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl RefUnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl RefUnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl RefUnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl RefUnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl RefUnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl RefUnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl RefUnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl RefUnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl RefUnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl RefUnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl RefUnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl RefUnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl RefUnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl RefUnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl RefUnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl RefUnwindSafe for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl RefUnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl RefUnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl RefUnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl RefUnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl RefUnwindSafe for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl RefUnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl RefUnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl RefUnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl RefUnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl RefUnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl RefUnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl RefUnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl RefUnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl RefUnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl RefUnwindSafe for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl RefUnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl RefUnwindSafe for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl RefUnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl RefUnwindSafe for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl RefUnwindSafe for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl RefUnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl RefUnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl RefUnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl RefUnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl RefUnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl RefUnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["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<'py, T, D, C = TypeMustMatch> !RefUnwindSafe for PyArrayLike<'py, T, D, C>",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> !RefUnwindSafe for PyArray<T, D>",1,["numpy::array::PyArray"]],["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<const N: usize> RefUnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> RefUnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js b/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js index e4d84ab40..899dc1ac0 100644 --- a/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js +++ b/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["impl UnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl UnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl UnwindSafe for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl UnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl UnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl UnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl UnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl UnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl UnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl UnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl UnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl UnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl UnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl UnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl UnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl UnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl UnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl UnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl UnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl UnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl UnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl UnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl UnwindSafe for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl UnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl UnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl UnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl UnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl UnwindSafe for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl UnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl UnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl UnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl UnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl UnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl UnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl UnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl UnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl UnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl UnwindSafe for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl UnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl UnwindSafe for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl UnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl UnwindSafe for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl UnwindSafe for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl UnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl UnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl UnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl UnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl UnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl UnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl UnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl UnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl UnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
    where\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
    where\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where\n C: UnwindSafe,\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> UnwindSafe for PyArray<T, D>
    where\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::array::PyArray"]],["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<const N: usize> UnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> UnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); + var implementors = Object.fromEntries([["numpy",[["impl UnwindSafe for BorrowError",1,["numpy::error::BorrowError"]],["impl UnwindSafe for NpyTypes",1,["numpy::npyffi::array::NpyTypes"]],["impl UnwindSafe for NPY_ARRAYMETHOD_FLAGS",1,["numpy::npyffi::types::NPY_ARRAYMETHOD_FLAGS"]],["impl UnwindSafe for NPY_BYTEORDER_CHAR",1,["numpy::npyffi::types::NPY_BYTEORDER_CHAR"]],["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_DATETIMEUNIT",1,["numpy::npyffi::types::NPY_DATETIMEUNIT"]],["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_SEARCHSIDE",1,["numpy::npyffi::types::NPY_SEARCHSIDE"]],["impl UnwindSafe for NPY_SELECTKIND",1,["numpy::npyffi::types::NPY_SELECTKIND"]],["impl UnwindSafe for NPY_SORTKIND",1,["numpy::npyffi::types::NPY_SORTKIND"]],["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_TYPES",1,["numpy::npyffi::types::NPY_TYPES"]],["impl UnwindSafe for Attoseconds",1,["numpy::datetime::units::Attoseconds"]],["impl UnwindSafe for Days",1,["numpy::datetime::units::Days"]],["impl UnwindSafe for Femtoseconds",1,["numpy::datetime::units::Femtoseconds"]],["impl UnwindSafe for Hours",1,["numpy::datetime::units::Hours"]],["impl UnwindSafe for Microseconds",1,["numpy::datetime::units::Microseconds"]],["impl UnwindSafe for Milliseconds",1,["numpy::datetime::units::Milliseconds"]],["impl UnwindSafe for Minutes",1,["numpy::datetime::units::Minutes"]],["impl UnwindSafe for Months",1,["numpy::datetime::units::Months"]],["impl UnwindSafe for Nanoseconds",1,["numpy::datetime::units::Nanoseconds"]],["impl UnwindSafe for Picoseconds",1,["numpy::datetime::units::Picoseconds"]],["impl UnwindSafe for Seconds",1,["numpy::datetime::units::Seconds"]],["impl UnwindSafe for Weeks",1,["numpy::datetime::units::Weeks"]],["impl UnwindSafe for Years",1,["numpy::datetime::units::Years"]],["impl UnwindSafe for PyArrayAPI",1,["numpy::npyffi::array::PyArrayAPI"]],["impl UnwindSafe for NpyAuxData",1,["numpy::npyffi::objects::NpyAuxData"]],["impl UnwindSafe for NpyIter",1,["numpy::npyffi::objects::NpyIter"]],["impl UnwindSafe for PyArrayDTypeMeta_Spec",1,["numpy::npyffi::objects::PyArrayDTypeMeta_Spec"]],["impl UnwindSafe for PyArrayFlagsObject",1,["numpy::npyffi::objects::PyArrayFlagsObject"]],["impl UnwindSafe for PyArrayInterface",1,["numpy::npyffi::objects::PyArrayInterface"]],["impl UnwindSafe for PyArrayIterObject",1,["numpy::npyffi::objects::PyArrayIterObject"]],["impl UnwindSafe for PyArrayMapIterObject",1,["numpy::npyffi::objects::PyArrayMapIterObject"]],["impl UnwindSafe for PyArrayMethod_Spec",1,["numpy::npyffi::objects::PyArrayMethod_Spec"]],["impl UnwindSafe for PyArrayMultiIterObject",1,["numpy::npyffi::objects::PyArrayMultiIterObject"]],["impl UnwindSafe for PyArrayNeighborhoodIterObject",1,["numpy::npyffi::objects::PyArrayNeighborhoodIterObject"]],["impl UnwindSafe for PyArrayObject",1,["numpy::npyffi::objects::PyArrayObject"]],["impl UnwindSafe for PyArray_ArrFuncs",1,["numpy::npyffi::objects::PyArray_ArrFuncs"]],["impl UnwindSafe for PyArray_ArrayDescr",1,["numpy::npyffi::objects::PyArray_ArrayDescr"]],["impl UnwindSafe for PyArray_Chunk",1,["numpy::npyffi::objects::PyArray_Chunk"]],["impl UnwindSafe for PyArray_DatetimeDTypeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeDTypeMetaData"]],["impl UnwindSafe for PyArray_DatetimeMetaData",1,["numpy::npyffi::objects::PyArray_DatetimeMetaData"]],["impl UnwindSafe for PyArray_Descr",1,["numpy::npyffi::objects::PyArray_Descr"]],["impl UnwindSafe for PyArray_DescrProto",1,["numpy::npyffi::objects::PyArray_DescrProto"]],["impl UnwindSafe for PyArray_Dims",1,["numpy::npyffi::objects::PyArray_Dims"]],["impl UnwindSafe for PyArray_StringDTypeObject",1,["numpy::npyffi::objects::PyArray_StringDTypeObject"]],["impl UnwindSafe for PyUFuncObject",1,["numpy::npyffi::objects::PyUFuncObject"]],["impl UnwindSafe for _PyArray_DescrNumPy2",1,["numpy::npyffi::objects::_PyArray_DescrNumPy2"]],["impl UnwindSafe for npy_static_string",1,["numpy::npyffi::objects::npy_static_string"]],["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_datetimestruct",1,["numpy::npyffi::types::npy_datetimestruct"]],["impl UnwindSafe for npy_stride_sort_item",1,["numpy::npyffi::types::npy_stride_sort_item"]],["impl UnwindSafe for npy_timedeltastruct",1,["numpy::npyffi::types::npy_timedeltastruct"]],["impl UnwindSafe for PyUFuncAPI",1,["numpy::npyffi::ufunc::PyUFuncAPI"]],["impl UnwindSafe for AllowTypeChange",1,["numpy::array_like::AllowTypeChange"]],["impl UnwindSafe for FromVecError",1,["numpy::error::FromVecError"]],["impl UnwindSafe for NotContiguousError",1,["numpy::error::NotContiguousError"]],["impl UnwindSafe for PyArrayDescr",1,["numpy::dtype::PyArrayDescr"]],["impl UnwindSafe for PyUntypedArray",1,["numpy::untyped_array::PyUntypedArray"]],["impl UnwindSafe for TypeMustMatch",1,["numpy::array_like::TypeMustMatch"]],["impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>
    where\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::borrow::PyReadonlyArray"]],["impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>
    where\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::borrow::PyReadwriteArray"]],["impl<'py, T, D, C> UnwindSafe for PyArrayLike<'py, T, D, C>
    where\n C: UnwindSafe,\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::array_like::PyArrayLike"]],["impl<T, D> UnwindSafe for PyArray<T, D>
    where\n T: UnwindSafe,\n D: UnwindSafe,
    ",1,["numpy::array::PyArray"]],["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<const N: usize> UnwindSafe for PyFixedString<N>",1,["numpy::strings::PyFixedString"]],["impl<const N: usize> UnwindSafe for PyFixedUnicode<N>",1,["numpy::strings::PyFixedUnicode"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/trait.impl/pyo3/conversion/trait.FromPyObject.js b/trait.impl/pyo3/conversion/trait.FromPyObject.js index 8a486f899..cb567de9c 100644 --- a/trait.impl/pyo3/conversion/trait.FromPyObject.js +++ b/trait.impl/pyo3/conversion/trait.FromPyObject.js @@ -1,5 +1,5 @@ (function() { - var implementors = Object.fromEntries([["numpy",[["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 PyReadonlyArray<'py, T, D>"],["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>"]]]]); + var implementors = Object.fromEntries([["numpy",[["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 PyReadonlyArray<'py, T, D>"],["impl<'py, T: Element, D: Dimension> FromPyObject<'py> for PyReadwriteArray<'py, T, D>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { diff --git a/type.impl/core/option/enum.Option.js b/type.impl/core/option/enum.Option.js index f62ff23bc..3e6be1d93 100644 --- a/type.impl/core/option/enum.Option.js +++ b/type.impl/core/option/enum.Option.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    §

    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"],["
    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> 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> 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"],["
    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<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"],["
    §

    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
    ","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"],["
    source§

    impl<T> FromResidual<Option<Infallible>> 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"],["
    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> 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
    source§

    type Item = T

    The type of the elements being iterated over.
    source§

    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"],["
    §

    impl<T> IntoPy<Py<PyAny>> for Option<T>
    where\n T: IntoPy<Py<PyAny>>,

    §

    fn into_py(self, py: Python<'_>) -> Py<PyAny>

    👎Deprecated since 0.23.0: IntoPy is going to be replaced by IntoPyObject. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
    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<'py, T> IntoPyObject<'py> for Option<T>
    where\n T: IntoPyObject<'py>,

    §

    type Target = PyAny

    The Python output type
    §

    type Output = Bound<'py, <Option<T> as IntoPyObject<'py>>::Target>

    The smart pointer type to use. Read more
    §

    type Error = <T as IntoPyObject<'py>>::Error

    The type returned in the event of a conversion error.
    §

    fn into_pyobject(\n self,\n py: Python<'py>,\n) -> Result<<Option<T> as IntoPyObject<'py>>::Output, <Option<T> as IntoPyObject<'py>>::Error>

    Performs the conversion.
    ","IntoPyObject<'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"],["
    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.82.0 · source

    pub fn is_none_or(self, f: impl FnOnce(T) -> bool) -> bool

    Returns true if the option is a None or the value inside of it matches a predicate.

    \n
    §Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_none_or(|x| x > 1), true);\n\nlet x: Option<u32> = Some(0);\nassert_eq!(x.is_none_or(|x| x > 1), false);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_none_or(|x| x > 1), 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 (const: unstable) · 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 (const: unstable) · 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 a function with a reference to the contained value if Some.

    \n

    Returns the original option.

    \n
    §Examples
    \n
    let list = vec![1, 2, 3];\n\n// prints \"got: 2\"\nlet x = list\n    .get(1)\n    .inspect(|x| println!(\"got: {x}\"))\n    .expect(\"list should be long enough\");\n\n// prints nothing\nlist.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
    1.80.0 · source

    pub fn take_if<P>(&mut self, predicate: P) -> Option<T>
    where\n P: FnOnce(&mut T) -> bool,

    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
    let 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> 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand 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> 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

    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

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. 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"],["
    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"],["
    §

    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>

    👎Deprecated since 0.23.0: ToPyObject is going to be replaced by IntoPyObject. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
    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"],["
    source§

    impl<T> Try for Option<T>

    source§

    type Output = T

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value produced by ? when not short-circuiting.
    source§

    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> 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> 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> 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"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    §

    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"],["
    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> 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> 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"],["
    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<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"],["
    §

    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
    ","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"],["
    source§

    impl<T> FromResidual<Option<Infallible>> 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"],["
    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> 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
    source§

    type Item = T

    The type of the elements being iterated over.
    source§

    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"],["
    §

    impl<T> IntoPy<Py<PyAny>> for Option<T>
    where\n T: IntoPy<Py<PyAny>>,

    §

    fn into_py(self, py: Python<'_>) -> Py<PyAny>

    👎Deprecated since 0.23.0: IntoPy is going to be replaced by IntoPyObject. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
    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<'py, T> IntoPyObject<'py> for Option<T>
    where\n T: IntoPyObject<'py>,

    §

    type Target = PyAny

    The Python output type
    §

    type Output = Bound<'py, <Option<T> as IntoPyObject<'py>>::Target>

    The smart pointer type to use. Read more
    §

    type Error = <T as IntoPyObject<'py>>::Error

    The type returned in the event of a conversion error.
    §

    fn into_pyobject(\n self,\n py: Python<'py>,\n) -> Result<<Option<T> as IntoPyObject<'py>>::Output, <Option<T> as IntoPyObject<'py>>::Error>

    Performs the conversion.
    ","IntoPyObject<'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"],["
    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.82.0 · source

    pub fn is_none_or(self, f: impl FnOnce(T) -> bool) -> bool

    Returns true if the option is a None or the value inside of it matches a predicate.

    \n
    §Examples
    \n
    let x: Option<u32> = Some(2);\nassert_eq!(x.is_none_or(|x| x > 1), true);\n\nlet x: Option<u32> = Some(0);\nassert_eq!(x.is_none_or(|x| x > 1), false);\n\nlet x: Option<u32> = None;\nassert_eq!(x.is_none_or(|x| x > 1), 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: 1.83.0) · source

    pub const 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 (const: unstable) · 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 (const: unstable) · 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: 1.83.0) · source

    pub const 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: 1.83.0) · source

    pub const 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: 1.83.0) · source

    pub const 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 a function with a reference to the contained value if Some.

    \n

    Returns the original option.

    \n
    §Examples
    \n
    let list = vec![1, 2, 3];\n\n// prints \"got: 2\"\nlet x = list\n    .get(1)\n    .inspect(|x| println!(\"got: {x}\"))\n    .expect(\"list should be long enough\");\n\n// prints nothing\nlist.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 · 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
    1.83.0 · source

    pub fn get_or_insert_default(&mut self) -> &mut T
    where\n T: Default,

    Inserts the default value into the option if it is None, then\nreturns 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_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: 1.83.0) · source

    pub const 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
    1.80.0 · source

    pub fn take_if<P>(&mut self, predicate: P) -> Option<T>
    where\n P: FnOnce(&mut T) -> bool,

    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
    let 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: 1.83.0) · source

    pub const 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> 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,

    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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand 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> 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

    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

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. 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"],["
    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"],["
    §

    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>

    👎Deprecated since 0.23.0: ToPyObject is going to be replaced by IntoPyObject. See the migration guide (https://pyo3.rs/v0.23.0/migration) for more information.
    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"],["
    source§

    impl<T> Try for Option<T>

    source§

    type Output = T

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value produced by ? when not short-circuiting.
    source§

    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> 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> 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> 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"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[200484]} \ No newline at end of file +//{"start":55,"fragment_lengths":[199450]} \ 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 fb539c7ac..8a30b7b88 100644 --- a/type.impl/ndarray/dimension/dim/struct.Dim.js +++ b/type.impl/ndarray/dimension/dim/struct.Dim.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Add<usize> for Dim<[usize; 1]>

    source§

    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,

    source§

    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<'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> 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<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> 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 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<D> DimAdd<D> for Dim<IxDynImpl>
    where\n D: Dimension,

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd","numpy::IxDyn"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 1]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 1]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 1]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 1]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    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.
    source§

    type Pattern = usize

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 0]>

    Next smaller dimension (if applicable)
    source§

    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.
    source§

    type Pattern = (usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 1]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 2]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 3]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 4]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 5]>

    Next smaller dimension (if applicable)
    source§

    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<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.
    source§

    type Pattern = Dim<IxDynImpl>

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<IxDynImpl>

    Next smaller dimension (if applicable)
    source§

    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<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; 1]>

    source§

    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; 2]>

    source§

    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; 3]>

    source§

    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; 4]>

    source§

    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]>

    source§

    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; 6]>

    source§

    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>

    source§

    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 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; 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; 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; 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 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<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> Mul<usize> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    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,

    source§

    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<'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<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<I> PartialEq<I> for Dim<I>
    where\n I: PartialEq + ?Sized,

    source§

    fn eq(&self, rhs: &I) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand 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 RemoveAxis for Dim<[usize; 1]>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<[usize; 0]>

    ","RemoveAxis","numpy::Ix1"],["
    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; 4]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 4]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix4"],["
    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; 6]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 6]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix6"],["
    source§

    impl RemoveAxis for Dim<IxDynImpl>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<IxDynImpl>

    ","RemoveAxis","numpy::IxDyn"],["
    source§

    impl Sub<usize> for Dim<[usize; 1]>

    source§

    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,

    source§

    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<'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 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; 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; 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<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<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<const N: usize> NdIndex<Dim<IxDynImpl>> for Dim<[usize; N]>

    ","NdIndex>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6"],["
    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"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Add<usize> for Dim<[usize; 1]>

    source§

    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,

    source§

    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<'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> 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<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> 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 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<D> DimAdd<D> for Dim<IxDynImpl>
    where\n D: Dimension,

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd","numpy::IxDyn"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 1]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 2]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 3]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 4]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 5]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 6]>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 1]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix1"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix2"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix3"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix4"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix5"],["
    source§

    impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The sum of the two dimensions.
    ","DimAdd>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 1]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 0]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 1]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 2]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 2]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 3]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 3]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 4]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 4]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 5]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<[usize; 6]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    source§

    impl DimMax<Dim<[usize; 5]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 1]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 2]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 3]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 4]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<[usize; 5]>

    source§

    type Output = Dim<[usize; 6]>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<[usize; 6]>> for Dim<IxDynImpl>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::IxDyn"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 1]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix1"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 2]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix2"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 3]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix3"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 4]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix4"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 5]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix5"],["
    source§

    impl DimMax<Dim<IxDynImpl>> for Dim<[usize; 6]>

    source§

    type Output = Dim<IxDynImpl>

    The resulting dimension type after broadcasting.
    ","DimMax>","numpy::Ix6"],["
    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.
    source§

    type Pattern = usize

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 0]>

    Next smaller dimension (if applicable)
    source§

    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.
    source§

    type Pattern = (usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 1]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 2]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 3]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 4]>

    Next smaller dimension (if applicable)
    source§

    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; 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.
    source§

    type Pattern = (usize, usize, usize, usize, usize, usize)

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<[usize; 5]>

    Next smaller dimension (if applicable)
    source§

    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<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.
    source§

    type Pattern = Dim<IxDynImpl>

    Pattern matching friendly form of the dimension value. Read more
    source§

    type Smaller = Dim<IxDynImpl>

    Next smaller dimension (if applicable)
    source§

    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<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; 1]>

    source§

    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; 2]>

    source§

    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; 3]>

    source§

    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; 4]>

    source§

    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]>

    source§

    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; 6]>

    source§

    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>

    source§

    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 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; 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; 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; 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 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<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> Mul<usize> for Dim<I>
    where\n Dim<I>: Dimension,

    source§

    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,

    source§

    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<'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<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<I> PartialEq<I> for Dim<I>
    where\n I: PartialEq + ?Sized,

    source§

    fn eq(&self, rhs: &I) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand 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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand 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 RemoveAxis for Dim<[usize; 1]>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<[usize; 0]>

    ","RemoveAxis","numpy::Ix1"],["
    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; 4]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 4]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix4"],["
    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; 6]>

    source§

    fn remove_axis(&self, axis: Axis) -> <Dim<[usize; 6]> as Dimension>::Smaller

    ","RemoveAxis","numpy::Ix6"],["
    source§

    impl RemoveAxis for Dim<IxDynImpl>

    source§

    fn remove_axis(&self, axis: Axis) -> Dim<IxDynImpl>

    ","RemoveAxis","numpy::IxDyn"],["
    source§

    impl Sub<usize> for Dim<[usize; 1]>

    source§

    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,

    source§

    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<'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 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; 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; 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<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<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<const N: usize> NdIndex<Dim<IxDynImpl>> for Dim<[usize; N]>

    ","NdIndex>","numpy::Ix1","numpy::Ix2","numpy::Ix3","numpy::Ix4","numpy::Ix5","numpy::Ix6"],["
    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"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/num_complex/struct.Complex.js b/type.impl/num_complex/struct.Complex.js index 4ce035d38..aaab10381 100644 --- a/type.impl/num_complex/struct.Complex.js +++ b/type.impl/num_complex/struct.Complex.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl<'a, S, D> Add<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    source§

    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,

    source§

    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> Add<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'a, T> Add<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<S, D> Add<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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<S, D> Add<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    source§

    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<T> Add<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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> 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> 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<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> 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. Read more
    ","Binary","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> Complex<T>
    where\n T: ConstZero,

    source

    pub const ZERO: Complex<T> = _

    A constant Complex 0.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: ConstOne + ConstZero,

    source

    pub const ONE: Complex<T> = _

    A constant Complex 1.

    \n
    source

    pub const I: Complex<T> = _

    A constant Complex i, the imaginary unit.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    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 the imaginary unit.

    \n

    See also Complex::I.

    \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"],["
    §

    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"],["
    source§

    impl<T> ComplexFloat for Complex<T>
    where\n T: Float + FloatConst,

    source§

    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> ConstOne for Complex<T>
    where\n T: Clone + Num + ConstOne + ConstZero,

    source§

    const ONE: Complex<T> = Self::ONE

    The multiplicative identity element of Self, 1.
    ","ConstOne","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> ConstZero for Complex<T>
    where\n T: Clone + Num + ConstZero,

    source§

    const ZERO: Complex<T> = Self::ZERO

    The additive identity element of Self, 0.
    ","ConstZero","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> 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> 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<'a, S, D> Div<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    source§

    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,

    source§

    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<'a, T> Div<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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<S, D> Div<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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> Div<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    source§

    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<T> Div<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<T> Div for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'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<'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> 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> 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> 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<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
    source§

    type Err = ParseComplexError<<T as FromStr>::Err>

    The associated error which can be returned from parsing.
    ","FromStr","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> Inv for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    source§

    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> 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. Read more
    ","LowerExp","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. Read more
    ","LowerHex","numpy::Complex32","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,

    source§

    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,

    source§

    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, T> Mul<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'a, T> Mul<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<S, D> Mul<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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,

    source§

    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<T> Mul<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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> MulAdd for Complex<T>
    where\n T: Clone + Num + MulAdd<Output = T>,

    source§

    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<'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<'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> 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<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> Neg for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    source§

    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> Normed for Complex<T>
    where\n T: SimdRealField,

    source§

    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"],["
    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
    source§

    type FromStrRadixErr = ParseComplexError<<T as Num>::FromStrRadixErr>

    ","Num","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> 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. Read more
    ","Octal","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> PartialEq for Complex<T>
    where\n T: PartialEq,

    source§

    fn eq(&self, other: &Complex<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
    ","PartialEq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b Complex<T>> for Complex<T>
    where\n T: Float,

    source§

    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>,

    source§

    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<'b, T> Pow<&'b f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    source§

    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<T> Pow<Complex<T>> for Complex<T>
    where\n T: Float,

    source§

    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> Pow<f32> for Complex<T>
    where\n T: Float,\n f32: Into<T>,

    source§

    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<f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    source§

    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<'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>>,

    Takes an iterator and generates Self from the elements by multiplying\nthe 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>>,

    Takes an iterator and generates Self from the elements by multiplying\nthe items.
    ","Product","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Rem<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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,

    source§

    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,

    source§

    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> 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> 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"],["
    §

    impl<N> SimdValue for Complex<N>
    where\n N: SimdValue,

    §

    const LANES: usize = N::LANES

    The number of lanes of this SIMD value.
    §

    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 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. Read more
    §

    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. Read more
    §

    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"],["
    source§

    impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    source§

    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,

    source§

    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<'a, T> Sub<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'a, T> Sub<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<S, D> Sub<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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> Sub<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    source§

    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<T> Sub<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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 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<'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<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> 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"],["
    §

    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"],["
    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>>,

    Takes an iterator and generates Self from the elements by “summing up”\nthe items.
    ","Sum<&'a Complex>","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>>,

    Takes an iterator and generates Self from the elements by “summing up”\nthe items.
    ","Sum","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> 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. Read more
    ","UpperExp","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. Read more
    ","UpperHex","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> Copy for Complex<T>
    where\n T: Copy,

    ","Copy","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Eq for Complex<T>
    where\n T: Eq,

    ","Eq","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> Field for Complex<N>
    where\n N: SimdValue + Clone + NumAssign + ClosedNeg,

    ","Field","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> PrimitiveSimdValue for Complex<N>
    where\n N: PrimitiveSimdValue,

    ","PrimitiveSimdValue","numpy::Complex32","numpy::Complex64"],["
    source§

    impl ScalarOperand for Complex<f32>

    ","ScalarOperand","numpy::Complex32"],["
    source§

    impl ScalarOperand for Complex<f64>

    ","ScalarOperand","numpy::Complex64"],["
    source§

    impl<T> StructuralPartialEq for Complex<T>

    ","StructuralPartialEq","numpy::Complex32","numpy::Complex64"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl<'a, S, D> Add<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    source§

    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,

    source§

    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> Add<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'a, T> Add<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<S, D> Add<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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<S, D> Add<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    source§

    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<T> Add<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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> 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> 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<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> 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. Read more
    ","Binary","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> Complex<T>
    where\n T: ConstZero,

    source

    pub const ZERO: Complex<T> = _

    A constant Complex 0.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Complex<T>
    where\n T: ConstOne + ConstZero,

    source

    pub const ONE: Complex<T> = _

    A constant Complex 1.

    \n
    source

    pub const I: Complex<T> = _

    A constant Complex i, the imaginary unit.

    \n
    ",0,"numpy::Complex32","numpy::Complex64"],["
    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 the imaginary unit.

    \n

    See also Complex::I.

    \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"],["
    §

    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"],["
    source§

    impl<T> ComplexFloat for Complex<T>
    where\n T: Float + FloatConst,

    source§

    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> ConstOne for Complex<T>
    where\n T: Clone + Num + ConstOne + ConstZero,

    source§

    const ONE: Complex<T> = Self::ONE

    The multiplicative identity element of Self, 1.
    ","ConstOne","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> ConstZero for Complex<T>
    where\n T: Clone + Num + ConstZero,

    source§

    const ZERO: Complex<T> = Self::ZERO

    The additive identity element of Self, 0.
    ","ConstZero","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> 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> 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<'a, S, D> Div<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    source§

    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,

    source§

    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<'a, T> Div<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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<S, D> Div<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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> Div<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    source§

    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<T> Div<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<T> Div for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'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<'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> 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> 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> 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<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
    source§

    type Err = ParseComplexError<<T as FromStr>::Err>

    The associated error which can be returned from parsing.
    ","FromStr","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> Inv for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    source§

    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> 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. Read more
    ","LowerExp","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. Read more
    ","LowerHex","numpy::Complex32","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,

    source§

    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,

    source§

    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, T> Mul<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'a, T> Mul<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<S, D> Mul<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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,

    source§

    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<T> Mul<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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> MulAdd for Complex<T>
    where\n T: Clone + Num + MulAdd<Output = T>,

    source§

    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<'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<'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> 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<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> Neg for Complex<T>
    where\n T: Clone + Num + Neg<Output = T>,

    source§

    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> Normed for Complex<T>
    where\n T: SimdRealField,

    source§

    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"],["
    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
    source§

    type FromStrRadixErr = ParseComplexError<<T as Num>::FromStrRadixErr>

    ","Num","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> 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. Read more
    ","Octal","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> PartialEq for Complex<T>
    where\n T: PartialEq,

    source§

    fn eq(&self, other: &Complex<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
    ","PartialEq","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'b, T> Pow<&'b Complex<T>> for Complex<T>
    where\n T: Float,

    source§

    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>,

    source§

    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<'b, T> Pow<&'b f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    source§

    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<T> Pow<Complex<T>> for Complex<T>
    where\n T: Float,

    source§

    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> Pow<f32> for Complex<T>
    where\n T: Float,\n f32: Into<T>,

    source§

    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<f64> for Complex<T>
    where\n T: Float,\n f64: Into<T>,

    source§

    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<'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>>,

    Takes an iterator and generates Self from the elements by multiplying\nthe 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>>,

    Takes an iterator and generates Self from the elements by multiplying\nthe items.
    ","Product","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<'a, T> Rem<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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,

    source§

    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,

    source§

    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> 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> 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"],["
    §

    impl<N> SimdValue for Complex<N>
    where\n N: SimdValue,

    §

    const LANES: usize = N::LANES

    The number of lanes of this SIMD value.
    §

    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 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. Read more
    §

    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. Read more
    §

    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"],["
    source§

    impl<'a, S, D> Sub<&'a ArrayBase<S, D>> for Complex<f32>
    where\n S: Data<Elem = Complex<f32>>,\n D: Dimension,

    source§

    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,

    source§

    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<'a, T> Sub<&'a Complex<T>> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<'a, T> Sub<&'a T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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<S, D> Sub<ArrayBase<S, D>> for Complex<f32>
    where\n S: DataOwned<Elem = Complex<f32>> + DataMut,\n D: Dimension,

    source§

    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> Sub<ArrayBase<S, D>> for Complex<f64>
    where\n S: DataOwned<Elem = Complex<f64>> + DataMut,\n D: Dimension,

    source§

    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<T> Sub<T> for Complex<T>
    where\n T: Clone + Num,

    source§

    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,

    source§

    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 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<'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<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> 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"],["
    §

    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"],["
    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>>,

    Takes an iterator and generates Self from the elements by “summing up”\nthe items.
    ","Sum<&'a Complex>","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>>,

    Takes an iterator and generates Self from the elements by “summing up”\nthe items.
    ","Sum","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> 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. Read more
    ","UpperExp","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. Read more
    ","UpperHex","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> Copy for Complex<T>
    where\n T: Copy,

    ","Copy","numpy::Complex32","numpy::Complex64"],["
    source§

    impl<T> Eq for Complex<T>
    where\n T: Eq,

    ","Eq","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> Field for Complex<N>
    where\n N: SimdValue + Clone + NumAssign + ClosedNeg,

    ","Field","numpy::Complex32","numpy::Complex64"],["
    §

    impl<N> PrimitiveSimdValue for Complex<N>
    where\n N: PrimitiveSimdValue,

    ","PrimitiveSimdValue","numpy::Complex32","numpy::Complex64"],["
    source§

    impl ScalarOperand for Complex<f32>

    ","ScalarOperand","numpy::Complex32"],["
    source§

    impl ScalarOperand for Complex<f64>

    ","ScalarOperand","numpy::Complex64"],["
    source§

    impl<T> StructuralPartialEq for Complex<T>

    ","StructuralPartialEq","numpy::Complex32","numpy::Complex64"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/numpy/array/struct.PyArray.js b/type.impl/numpy/array/struct.PyArray.js index f34499d01..85c2a4757 100644 --- a/type.impl/numpy/array/struct.PyArray.js +++ b/type.impl/numpy/array/struct.PyArray.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl<D: Dimension> PyArray<PyObject, D>

    source

    pub fn from_owned_object_array<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, types::PyAnyMethods};\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(py, array);\n\n    assert!(pyarray.readonly().as_array().get(0).unwrap().bind(py).is_instance_of::<CustomElement>());\n});
    \n
    source

    pub fn from_owned_object_array_bound<T>(\n py: Python<'_>,\n arr: Array<Py<T>, D>,\n) -> Bound<'_, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_owned_object_array

    Deprecated name for PyArray::from_owned_object_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 unsafe fn new<'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][Self::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(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 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>,

    👎Deprecated since 0.23.0: renamed to PyArray::new

    Deprecated name for PyArray::new.

    \n
    §Safety
    \n

    See PyArray::new.

    \n
    source

    pub unsafe fn borrow_from_array<'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

    The resulting NumPy array will be writeable from Python space. If this is undesireable, use\nPyReadwriteArray::make_nonwriteable.

    \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(array, this.into_any()) }\n    }\n}
    \n
    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>,

    👎Deprecated since 0.23.0: renamed to PyArray::borrow_from_array

    Deprecated name for PyArray::borrow_from_array.

    \n
    §Safety
    \n

    See PyArray::borrow_from_array

    \n
    source

    pub fn zeros<ID>(py: Python<'_>, dims: ID, is_fortran: bool) -> 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(py, [2, 2], true);\n\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), [0; 4]);\n});
    \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>,

    👎Deprecated since 0.23.0: renamed to PyArray::zeros

    Deprecated name for PyArray::zeros.

    \n
    source

    pub fn from_owned_array(py: Python<'_>, arr: Array<T, D>) -> 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(py, array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \n
    source

    pub fn from_owned_array_bound(\n py: Python<'_>,\n arr: Array<T, D>,\n) -> Bound<'_, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_owned_array

    Deprecated name for PyArray::from_owned_array.

    \n
    source

    pub fn from_array<'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(py, &array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \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>,

    👎Deprecated since 0.23.0: renamed to PyArray::from_array

    Deprecated name for PyArray::from_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> PyArray<T, Ix1>

    source

    pub fn from_slice<'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(py, slice);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_slice_bound<'py>(py: Python<'py>, slice: &[T]) -> Bound<'py, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_slice

    Deprecated name for PyArray::from_slice.

    \n
    source

    pub fn from_vec<'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(py, vec);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_vec_bound<'py>(py: Python<'py>, vec: Vec<T>) -> Bound<'py, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_vec

    Deprecated name for PyArray::from_vec.

    \n
    source

    pub fn from_iter<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(py, \"abcde\".chars().map(u32::from));\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[97, 98, 99, 100, 101]);\n});
    \n
    source

    pub fn from_iter_bound<I>(py: Python<'_>, iter: I) -> Bound<'_, Self>
    where\n I: IntoIterator<Item = T>,

    👎Deprecated since 0.23.0: renamed to PyArray::from_iter

    Deprecated name for PyArray::from_iter.

    \n
    ",0,"numpy::array::PyArray1"],["
    source§

    impl<T: Element + AsPrimitive<f64>> PyArray<T, Ix1>

    source

    pub fn arange<'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(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(py, -2, 4, 3);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[-2, 1]);\n});
    \n
    source

    pub fn arange_bound<'py>(\n py: Python<'py>,\n start: T,\n stop: T,\n step: T,\n) -> Bound<'py, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::arange

    Deprecated name for PyArray::arange.

    \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<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(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
    source

    pub fn from_vec2_bound<'py>(\n py: Python<'py>,\n v: &[Vec<T>],\n) -> Result<Bound<'py, Self>, FromVecError>

    👎Deprecated since 0.23.0: renamed to PyArray::from_vec2

    Deprecated name for PyArray::from_vec2.

    \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<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(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
    source

    pub fn from_vec3_bound<'py>(\n py: Python<'py>,\n v: &[Vec<Vec<T>>],\n) -> Result<Bound<'py, Self>, FromVecError>

    👎Deprecated since 0.23.0: renamed to PyArray::from_vec3

    Deprecated name for PyArray::from_vec3.

    \n
    ",0,"numpy::array::PyArray3"],["
    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(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
    Deprecated name for [PyTypeInfo::type_object].
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
    Deprecated name for [PyTypeInfo::is_type_of].
    §

    fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
    Deprecated name for [PyTypeInfo::is_exact_type_of].
    ","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> 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"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl<D: Dimension> PyArray<PyObject, D>

    source

    pub fn from_owned_object_array<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, types::PyAnyMethods};\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(py, array);\n\n    assert!(pyarray.readonly().as_array().get(0).unwrap().bind(py).is_instance_of::<CustomElement>());\n});
    \n
    source

    pub fn from_owned_object_array_bound<T>(\n py: Python<'_>,\n arr: Array<Py<T>, D>,\n) -> Bound<'_, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_owned_object_array

    Deprecated name for PyArray::from_owned_object_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 unsafe fn new<'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][Self::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(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 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>,

    👎Deprecated since 0.23.0: renamed to PyArray::new

    Deprecated name for PyArray::new.

    \n
    §Safety
    \n

    See PyArray::new.

    \n
    source

    pub unsafe fn borrow_from_array<'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

    The resulting NumPy array will be writeable from Python space. If this is undesireable, use\nPyReadwriteArray::make_nonwriteable.

    \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(array, this.into_any()) }\n    }\n}
    \n
    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>,

    👎Deprecated since 0.23.0: renamed to PyArray::borrow_from_array

    Deprecated name for PyArray::borrow_from_array.

    \n
    §Safety
    \n

    See PyArray::borrow_from_array

    \n
    source

    pub fn zeros<ID>(py: Python<'_>, dims: ID, is_fortran: bool) -> 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(py, [2, 2], true);\n\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), [0; 4]);\n});
    \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>,

    👎Deprecated since 0.23.0: renamed to PyArray::zeros

    Deprecated name for PyArray::zeros.

    \n
    source

    pub fn from_owned_array(py: Python<'_>, arr: Array<T, D>) -> 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(py, array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \n
    source

    pub fn from_owned_array_bound(\n py: Python<'_>,\n arr: Array<T, D>,\n) -> Bound<'_, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_owned_array

    Deprecated name for PyArray::from_owned_array.

    \n
    source

    pub fn from_array<'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(py, &array![[1, 2], [3, 4]]);\n\n    assert_eq!(pyarray.readonly().as_array(), array![[1, 2], [3, 4]]);\n});
    \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>,

    👎Deprecated since 0.23.0: renamed to PyArray::from_array

    Deprecated name for PyArray::from_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> PyArray<T, Ix1>

    source

    pub fn from_slice<'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(py, slice);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_slice_bound<'py>(py: Python<'py>, slice: &[T]) -> Bound<'py, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_slice

    Deprecated name for PyArray::from_slice.

    \n
    source

    pub fn from_vec<'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(py, vec);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[1, 2, 3, 4, 5]);\n});
    \n
    source

    pub fn from_vec_bound<'py>(py: Python<'py>, vec: Vec<T>) -> Bound<'py, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::from_vec

    Deprecated name for PyArray::from_vec.

    \n
    source

    pub fn from_iter<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(py, \"abcde\".chars().map(u32::from));\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[97, 98, 99, 100, 101]);\n});
    \n
    source

    pub fn from_iter_bound<I>(py: Python<'_>, iter: I) -> Bound<'_, Self>
    where\n I: IntoIterator<Item = T>,

    👎Deprecated since 0.23.0: renamed to PyArray::from_iter

    Deprecated name for PyArray::from_iter.

    \n
    ",0,"numpy::array::PyArray1"],["
    source§

    impl<T: Element + AsPrimitive<f64>> PyArray<T, Ix1>

    source

    pub fn arange<'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(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(py, -2, 4, 3);\n    assert_eq!(pyarray.readonly().as_slice().unwrap(), &[-2, 1]);\n});
    \n
    source

    pub fn arange_bound<'py>(\n py: Python<'py>,\n start: T,\n stop: T,\n step: T,\n) -> Bound<'py, Self>

    👎Deprecated since 0.23.0: renamed to PyArray::arange

    Deprecated name for PyArray::arange.

    \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<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(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
    source

    pub fn from_vec2_bound<'py>(\n py: Python<'py>,\n v: &[Vec<T>],\n) -> Result<Bound<'py, Self>, FromVecError>

    👎Deprecated since 0.23.0: renamed to PyArray::from_vec2

    Deprecated name for PyArray::from_vec2.

    \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<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(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
    source

    pub fn from_vec3_bound<'py>(\n py: Python<'py>,\n v: &[Vec<Vec<T>>],\n) -> Result<Bound<'py, Self>, FromVecError>

    👎Deprecated since 0.23.0: renamed to PyArray::from_vec3

    Deprecated name for PyArray::from_vec3.

    \n
    ",0,"numpy::array::PyArray3"],["
    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(ob: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type or a subclass of this type.
    §

    fn type_object(py: Python<'_>) -> Bound<'_, PyType>

    Returns the safe abstraction over the type object.
    §

    fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
    Deprecated name for [PyTypeInfo::type_object].
    §

    fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
    Deprecated name for [PyTypeInfo::is_type_of].
    §

    fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

    Checks if object is an instance of this type.
    §

    fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

    👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
    Deprecated name for [PyTypeInfo::is_exact_type_of].
    ","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> 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"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/numpy/borrow/struct.PyReadonlyArray.js b/type.impl/numpy/borrow/struct.PyReadonlyArray.js index 14075b232..751bedc0e 100644 --- a/type.impl/numpy/borrow/struct.PyReadonlyArray.js +++ b/type.impl/numpy/borrow/struct.PyReadonlyArray.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    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> 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> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    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> 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> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn from(value: PyReadwriteArray<'py, T, D>) -> Self

    Converts to this type from the input type.
    ","From>","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: 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
    ","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, 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, ffi::c_str};\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(c_str!(\"__import__('numpy')\"), None, None)?;\n    let sum_standard_layout = wrap_pyfunction!(sum_standard_layout)(py)?;\n    let sum_dynamic_strides = wrap_pyfunction!(sum_dynamic_strides)(py)?;\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, 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"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    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> 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> Deref for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    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> 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> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
    where\n T: Element,\n D: Dimension,

    source§

    fn from(value: PyReadwriteArray<'py, T, D>) -> Self

    Converts to this type from the input type.
    ","From>","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: 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
    ","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, 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, ffi::c_str};\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(c_str!(\"__import__('numpy')\"), None, None)?;\n    let sum_standard_layout = wrap_pyfunction!(sum_standard_layout)(py)?;\n    let sum_dynamic_strides = wrap_pyfunction!(sum_dynamic_strides)(py)?;\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, 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"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/numpy/borrow/struct.PyReadwriteArray.js b/type.impl/numpy/borrow/struct.PyReadwriteArray.js index 8c7b59c9c..4cd26ef12 100644 --- a/type.impl/numpy/borrow/struct.PyReadwriteArray.js +++ b/type.impl/numpy/borrow/struct.PyReadwriteArray.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    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,

    source§

    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: 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
    ","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, 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, 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
    source

    pub fn make_nonwriteable(self) -> PyReadonlyArray<'py, T, D>

    Clear the WRITEABLE flag from the underlying NumPy array.

    \n

    Calling this will prevent any further PyReadwriteArrays from being taken out. Python\nspace can reset this flag, unless the additional flag OWNDATA is unset. Such\nan array can be created from Rust space by using PyArray::borrow_from_array_bound.

    \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, 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(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"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    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,

    source§

    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: 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
    ","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, 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, 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
    source

    pub fn make_nonwriteable(self) -> PyReadonlyArray<'py, T, D>

    Clear the WRITEABLE flag from the underlying NumPy array.

    \n

    Calling this will prevent any further PyReadwriteArrays from being taken out. Python\nspace can reset this flag, unless the additional flag OWNDATA is unset. Such\nan array can be created from Rust space by using PyArray::borrow_from_array_bound.

    \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, 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(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"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/numpy/npyffi/types/struct.npy_cdouble.js b/type.impl/numpy/npyffi/types/struct.npy_cdouble.js index 84124412d..bc372a663 100644 --- a/type.impl/numpy/npyffi/types/struct.npy_cdouble.js +++ b/type.impl/numpy/npyffi/types/struct.npy_cdouble.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    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"],["
    source§

    impl Copy for npy_cdouble

    ","Copy","numpy::npyffi::types::npy_complex128"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    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"],["
    source§

    impl Copy for npy_cdouble

    ","Copy","numpy::npyffi::types::npy_complex128"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/numpy/npyffi/types/struct.npy_cfloat.js b/type.impl/numpy/npyffi/types/struct.npy_cfloat.js index 599dd0ed1..188da5126 100644 --- a/type.impl/numpy/npyffi/types/struct.npy_cfloat.js +++ b/type.impl/numpy/npyffi/types/struct.npy_cfloat.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    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 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 Copy for npy_cfloat

    ","Copy","numpy::npyffi::types::npy_complex64"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    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 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 Copy for npy_cfloat

    ","Copy","numpy::npyffi::types::npy_complex64"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js b/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js index 7ed99d1fe..fd045c35a 100644 --- a/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js +++ b/type.impl/numpy/npyffi/types/struct.npy_clongdouble.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["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"]]]]); + var type_impls = Object.fromEntries([["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"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/numpy/struct.PyArrayLike.js b/type.impl/numpy/struct.PyArrayLike.js index 93c879ca3..34a5f5056 100644 --- a/type.impl/numpy/struct.PyArrayLike.js +++ b/type.impl/numpy/struct.PyArrayLike.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    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"],["
    source§

    impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where\n T: Element,\n D: Dimension,\n C: Coerce,

    source§

    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> 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
    ","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"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    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"],["
    source§

    impl<'py, T, D, C> Deref for PyArrayLike<'py, T, D, C>
    where\n T: Element,\n D: Dimension,\n C: Coerce,

    source§

    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> 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
    ","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"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/pyo3_ffi/cpython/object/struct.PyTypeObject.js b/type.impl/pyo3_ffi/cpython/object/struct.PyTypeObject.js index 6a760bfa7..77dce70b9 100644 --- a/type.impl/pyo3_ffi/cpython/object/struct.PyTypeObject.js +++ b/type.impl/pyo3_ffi/cpython/object/struct.PyTypeObject.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    §

    impl Debug for PyTypeObject

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::objects::PyArray_DTypeMeta"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    §

    impl Debug for PyTypeObject

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","numpy::npyffi::objects::PyArray_DTypeMeta"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.f32.js b/type.impl/std/primitive.f32.js index 2146a794f..a58f1b3eb 100644 --- a/type.impl/std/primitive.f32.js +++ b/type.impl/std/primitive.f32.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> f32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f32]) -> Vec<f32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, f32, D>,\n) -> Array<f32, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_float","numpy::npyffi::types::npy_float32"]]]]); + var type_impls = Object.fromEntries([["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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> f32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f32]) -> Vec<f32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, f32, D>,\n) -> Array<f32, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_float","numpy::npyffi::types::npy_float32"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.f64.js b/type.impl/std/primitive.f64.js index c5a4ad067..05813c4d5 100644 --- a/type.impl/std/primitive.f64.js +++ b/type.impl/std/primitive.f64.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> f64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f64]) -> Vec<f64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, f64, D>,\n) -> Array<f64, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_longdouble","numpy::npyffi::types::npy_double","numpy::npyffi::types::npy_float64"]]]]); + var type_impls = Object.fromEntries([["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(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> f64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[f64]) -> Vec<f64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, f64, D>,\n) -> Array<f64, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","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 { diff --git a/type.impl/std/primitive.i16.js b/type.impl/std/primitive.i16.js index 86b561ded..0a5bdc090 100644 --- a/type.impl/std/primitive.i16.js +++ b/type.impl/std/primitive.i16.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i16

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i16

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i16]) -> Vec<i16>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i16, D>,\n) -> Array<i16, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int16"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i16

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i16

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i16]) -> Vec<i16>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i16, D>,\n) -> Array<i16, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int16"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.i32.js b/type.impl/std/primitive.i32.js index 0e7c9d6e8..29e9e8e01 100644 --- a/type.impl/std/primitive.i32.js +++ b/type.impl/std/primitive.i32.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i32

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i32]) -> Vec<i32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i32, D>,\n) -> Array<i32, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int32"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i32

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i32]) -> Vec<i32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i32, D>,\n) -> Array<i32, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int32"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.i64.js b/type.impl/std/primitive.i64.js index 268dade9d..f80a55121 100644 --- a/type.impl/std/primitive.i64.js +++ b/type.impl/std/primitive.i64.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i64

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i64]) -> Vec<i64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i64, D>,\n) -> Array<i64, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int64"],["
    source§

    impl<U: Unit> From<Datetime<U>> for i64

    source§

    fn from(val: Datetime<U>) -> Self

    Converts to this type from the input type.
    ","From>","numpy::npyffi::types::npy_int64"],["
    source§

    impl<U: Unit> From<Timedelta<U>> for i64

    source§

    fn from(val: Timedelta<U>) -> Self

    Converts to this type from the input type.
    ","From>","numpy::npyffi::types::npy_int64"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i64

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i64]) -> Vec<i64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i64, D>,\n) -> Array<i64, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int64"],["
    source§

    impl<U: Unit> From<Datetime<U>> for i64

    source§

    fn from(val: Datetime<U>) -> Self

    Converts to this type from the input type.
    ","From>","numpy::npyffi::types::npy_int64"],["
    source§

    impl<U: Unit> From<Timedelta<U>> for i64

    source§

    fn from(val: Timedelta<U>) -> Self

    Converts to this type from the input type.
    ","From>","numpy::npyffi::types::npy_int64"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.i8.js b/type.impl/std/primitive.i8.js index 17332ab9a..daacecce7 100644 --- a/type.impl/std/primitive.i8.js +++ b/type.impl/std/primitive.i8.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i8

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i8

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i8]) -> Vec<i8>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i8, D>,\n) -> Array<i8, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int8"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for i8

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> i8

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[i8]) -> Vec<i8>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, i8, D>,\n) -> Array<i8, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_int8"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.u16.js b/type.impl/std/primitive.u16.js index 94c64290e..dbbb7423a 100644 --- a/type.impl/std/primitive.u16.js +++ b/type.impl/std/primitive.u16.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u16

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u16

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u16]) -> Vec<u16>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u16, D>,\n) -> Array<u16, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint16"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u16

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u16

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u16]) -> Vec<u16>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u16, D>,\n) -> Array<u16, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint16"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.u32.js b/type.impl/std/primitive.u32.js index 43159a4d8..dc8b6fc48 100644 --- a/type.impl/std/primitive.u32.js +++ b/type.impl/std/primitive.u32.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u32

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u32]) -> Vec<u32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u32, D>,\n) -> Array<u32, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint32"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u32

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u32

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u32]) -> Vec<u32>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u32, D>,\n) -> Array<u32, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint32"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.u64.js b/type.impl/std/primitive.u64.js index 64e7c132a..05f73df4d 100644 --- a/type.impl/std/primitive.u64.js +++ b/type.impl/std/primitive.u64.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u64

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u64]) -> Vec<u64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u64, D>,\n) -> Array<u64, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint64"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u64

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u64

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u64]) -> Vec<u64>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u64, D>,\n) -> Array<u64, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint64"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { diff --git a/type.impl/std/primitive.u8.js b/type.impl/std/primitive.u8.js index cbfdd1567..6122c0c44 100644 --- a/type.impl/std/primitive.u8.js +++ b/type.impl/std/primitive.u8.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u8

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u8

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u8]) -> Vec<u8>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u8, D>,\n) -> Array<u8, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint8"]]]]); + var type_impls = Object.fromEntries([["numpy",[["
    source§

    impl Element for u8

    source§

    const IS_COPY: bool = true

    Flag that indicates whether this type is trivially copyable. Read more
    source§

    fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    Returns the associated type descriptor (“dtype”) for the given element type.
    source§

    fn clone_ref(&self, _py: Python<'_>) -> u8

    Create a clone of the value while the GIL is guaranteed to be held.
    source§

    fn vec_from_slice(_py: Python<'_>, slc: &[u8]) -> Vec<u8>

    Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
    source§

    fn array_from_view<D>(\n _py: Python<'_>,\n view: ArrayView<'_, u8, D>,\n) -> Array<u8, D>
    where\n D: Dimension,

    Create an owned copy of the array while the GIL is guaranteed to be held. Read more
    source§

    fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

    👎Deprecated since 0.23.0: renamed to Element::get_dtype
    Deprecated name for Element::get_dtype.
    ","Element","numpy::npyffi::types::npy_uint8"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else {