diff --git a/help.html b/help.html index 15e6fffbe..669fe51c7 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -
pub fn get_array_module<'py>(py: Python<'py>) -> PyResult<Bound<'_, PyModule>>
Returns a handle to NumPy’s multiarray module.
+pub fn get_array_module<'py>(py: Python<'py>) -> PyResult<Bound<'py, PyModule>>
Returns a handle to NumPy’s multiarray module.
Safe interface for NumPy’s N-dimensional arrays
+Safe interface for NumPy’s N-dimensional arrays
ndarray
class.PyArray0<T>
.PyArray<T, D>
.pub struct PyArray<T, D>(/* private fields */);
A safe, statically-typed wrapper for NumPy’s ndarray
class.
pub struct PyArray<T, D>(/* private fields */);
A safe, statically-typed wrapper for NumPy’s ndarray
class.
IntoPyArray
or
@@ -21,7 +21,7 @@ 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.
Creates a new uninitialized NumPy array.
If is_fortran
is true, then it has Fortran/column-major order,
@@ -85,7 +85,7 @@
PyArray::new
PyArray::borrow_from_array
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.
PyArray::zeros
Deprecated name for PyArray::zeros
.
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.
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>
sourcepub 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>
sourcepub fn from_slice<'py>(py: Python<'py>, slice: &[T]) -> Bound<'py, Self>
sourcepub 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
.
-sourcepub fn from_vec<'py>(py: Python<'py>, vec: Vec<T>) -> Bound<'py, Self>
Construct a one-dimensional array from a Vec<T>
.
+sourcepub 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
.
+sourcepub 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
.
+sourcepub 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
.
sourcepub 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]);
});
sourcepub 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>
sourcepub 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
});
sourcepub 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>
sourcepub 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
});
sourcepub 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>
sourcepub 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
.
+Trait Implementations§
source§impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>
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>
§impl<T, D> UnwindSafe for PyArray<T, D>where
- T: UnwindSafe,
- D: UnwindSafe,
Blanket Implementations§
Trait Implementations§
source§impl<T: Element, D: Dimension> PyTypeInfo for PyArray<T, D>
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>
§impl<T, D> UnwindSafe for PyArray<T, D>where
+ T: UnwindSafe,
+ D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> PyTypeCheck for Twhere
- T: PyTypeInfo,
§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
\ No newline at end of file
+ T: PyTypeInfo,
self
from the equivalent element of its
+superset. Read moreself
is actually part of its subset T
(and can be converted to it).self.to_subset
but without any property checks. Always succeeds.self
to the equivalent element of its superset.pub trait PyArray0Methods<'py, T>: PyArrayMethods<'py, T, Ix0> {
+PyArray0Methods in numpy::array - Rust pub trait PyArray0Methods<'py, T>: PyArrayMethods<'py, T, Ix0> {
// Provided method
fn item(&self) -> T
- where T: Element + Copy { ... }
+ where T: Element + Copy { ... }
}
Expand description
Implementation of functionality for PyArray0<T>
.
Provided Methods§
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
+
pub trait PyArrayMethods<'py, T, D>: PyUntypedArrayMethods<'py> {
+PyArrayMethods in numpy::array - Rust 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§
sourcefn as_untyped(&self) -> &Bound<'py, PyUntypedArray>
Access an untyped representation of this array.
-sourcefn get_owned<Idx>(&self, index: Idx) -> Option<T>
Get a copy of the specified element in the array.
@@ -173,9 +173,9 @@ §Example
sourcefn to_dyn(&self) -> &Bound<'py, PyArray<T, IxDyn>>
Turn an array with fixed dimensionality into one with dynamic dimensionality.
-sourcefn to_vec(&self) -> Result<Vec<T>, NotContiguousError>where
+
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
.
use numpy::{PyArray2, PyArrayMethods};
@@ -188,10 +188,10 @@ §Example
assert_eq!(pyarray.to_vec()?, vec![0, 1, 2, 3]);
})
Get an immutable borrow of the NumPy array
-Get a mutable borrow of the NumPy array
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.
Extends or truncates the dimensions of an array.
This method works only on contiguous arrays.
Missing elements will be initialized as if calling zeros
.
Calling this method invalidates all exclusive references to the internal data, e.g. ArrayViewMut
or MatrixSliceMut
.
Same as [shape
][PyUntypedArray::shape], but returns D
instead of &[usize]
.
Returns an immutable view of the internal data as a slice.
PyArray
or concurrently modified by Python or other native code.
Please consider the safe alternative PyReadonlyArray::as_slice
.
Returns a mutable view of the internal data as a slice.
PyArray
or concurrently modified by Python or other native code.
Please consider the safe alternative PyReadwriteArray::as_slice_mut
.
Same as uget
, but returns &mut T
.
See PyReadwriteArray::get_mut
for a safe alternative.
Same as uget
, but returns *mut T
.
Special case of reshape_with_order
which keeps the memory order the same.
pub type PyArray0<T> = PyArray<T, Ix0>;
Zero-dimensional array.
+pub type PyArray1<T> = PyArray<T, Ix1>;
One-dimensional array.
+pub type PyArray2<T> = PyArray<T, Ix2>;
Two-dimensional array.
+pub type PyArray3<T> = PyArray<T, Ix3>;
Three-dimensional array.
+pub type PyArray4<T> = PyArray<T, Ix4>;
Four-dimensional array.
+pub type PyArray5<T> = PyArray<T, Ix5>;
Five-dimensional array.
+pub type PyArray6<T> = PyArray<T, Ix6>;
Six-dimensional array.
+pub type PyArrayDyn<T> = PyArray<T, IxDyn>;
Dynamic-dimensional array.
+Types to safely create references into NumPy arrays
+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 @@ -pub struct PyReadonlyArray<'py, T, D>where
+PyReadonlyArray in numpy::borrow - Rust pub struct PyReadonlyArray<'py, T, D>{ /* 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>
sourcepub fn as_array(&self) -> ArrayView<'_, T, D>
Provides an immutable array view of the interior of the NumPy array.
-sourcepub fn as_slice(&self) -> Result<&[T], NotContiguousError>
Provide an immutable slice view of the interior of the NumPy array if it is contiguous.
-sourcepub fn as_slice(&self) -> Result<&[T], NotContiguousError>
Provide an immutable slice view of the interior of the NumPy array if it is contiguous.
+source§impl<'py, N, D> PyReadonlyArray<'py, N, D>
sourcepub fn try_as_matrix<R, C, RStride, CStride>(
&self,
-) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>where
+) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>sourcepub 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) -> &Twhere
- 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) -> &Twhere
+ 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_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>
source§impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>where
+ D: Dimension,
source§impl<'py, T, D> Debug for PyReadonlyArray<'py, T, D>
source§impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>where
+ D: Dimension,
source§impl<'py, T, D> Deref for PyReadonlyArray<'py, T, D>
source§impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>where
+ D: Dimension,
source§impl<'py, T, D> Drop for PyReadonlyArray<'py, T, D>
source§impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>where
+ D: Dimension,
source§impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
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>
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>
§impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>where
- T: UnwindSafe,
- D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)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>
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>
§impl<'py, T, D> UnwindSafe for PyReadonlyArray<'py, T, D>where
+ T: UnwindSafe,
+ D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
- T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
source§impl<T, U> Into<U> for Twhere
- 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>
§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
\ 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.
\ 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 pub struct PyReadwriteArray<'py, T, D>{ /* 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>
sourcepub fn as_array_mut(&mut self) -> ArrayViewMut<'_, T, D>
Provides a mutable array view of the interior of the NumPy array.
-sourcepub 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.
-sourcepub 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.
+sourcepub 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.
sourcepub 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,
sourcepub fn try_as_matrix_mut<R, C, RStride, CStride>(
&self,
-) -> Option<MatrixViewMut<'_, N, R, C, RStride, CStride>>
Methods from Deref<Target = PyReadonlyArray<'py, T, D>>§
Methods from Deref<Target = PyReadonlyArray<'py, T, D>>§
sourcepub fn as_array(&self) -> ArrayView<'_, T, D>
Provides an immutable array view of the interior of the NumPy array.
+sourcepub fn as_slice(&self) -> Result<&[T], NotContiguousError>
Provide an immutable slice view of the interior of the NumPy array if it is contiguous.
+sourcepub 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.
sourcepub fn try_as_matrix<R, C, RStride, CStride>(
&self,
-) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>where
+) -> Option<MatrixView<'_, N, R, C, RStride, CStride>>sourcepub 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) -> &Twhere
- 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) -> &Twhere
+ 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_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>
source§impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>where
+ D: Dimension,
source§impl<'py, T, D> Deref for PyReadwriteArray<'py, T, D>
source§impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>where
+ D: Dimension,
source§impl<'py, T, D> Drop for PyReadwriteArray<'py, T, D>
source§impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>where
+ D: Dimension,
source§impl<'py, T, D> From<PyReadwriteArray<'py, T, D>> for PyReadonlyArray<'py, T, D>
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>
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>
§impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>where
- T: UnwindSafe,
- D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§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>
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>
§impl<'py, T, D> UnwindSafe for PyReadwriteArray<'py, T, D>where
+ T: UnwindSafe,
+ D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
- T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
source§impl<T, U> Into<U> for Twhere
- 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>
§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
\ 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.
\ 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Expand description
Defines conversion traits between Rust types and NumPy data types.
+numpy::convert - Rust Expand description
Defines conversion traits between Rust types and NumPy data types.
Traits§
\ 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 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>
source§impl<T: Element> IntoPyArray for Vec<T>
source§impl<T: Element> IntoPyArray for Vec<T>
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 pub trait NpyIndex: IntoDimension + Sealed { }
Expand description
Trait implemented by types that can be used to index an array.
+NpyIndex in numpy::convert - Rust 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§
source§impl<D: IntoDimension> NpyIndex for D
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
source§impl<D: IntoDimension> NpyIndex for D
\ 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 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 Dwhere
+ToNpyDims in numpy::convert - Rust
\ 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 pub trait ToPyArray {
+ToPyArray in numpy::convert - Rust 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§type Item = N
source§type Dim = Dim<[usize; 2]>
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 Expand description
Support datetimes and timedeltas
+numpy::datetime - Rust 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 pub struct Datetime<U: Unit>(/* private fields */);
Expand description
Corresponds to the datetime64
scalar type
-Trait Implementations§
source§impl<U: Unit> Element for Datetime<U>
source§const IS_COPY: bool = true
Flag that indicates whether this type is trivially copyable. Read moresource§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 moresource§fn array_from_view<D>(
+Datetime in numpy::datetime - Rust pub struct Datetime<U: Unit>(/* private fields */);
Expand description
Corresponds to the datetime64
scalar type
+Trait Implementations§
source§impl<U: Unit> Element for Datetime<U>
source§const IS_COPY: bool = true
Flag that indicates whether this type is trivially copyable. Read moresource§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 moresource§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 moresource§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: Ord + Unit> Ord for Datetime<U>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>
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> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- 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 moresource§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: Ord + Unit> Ord for Datetime<U>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl<U: PartialOrd + Unit> PartialOrd for Datetime<U>
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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Timedelta<U: Unit>(/* private fields */);
Expand description
Corresponds to the [timedelta64
][scalars-datetime64] scalar type
-Trait Implementations§
source§impl<U: Unit> Element for Timedelta<U>
source§const IS_COPY: bool = true
Flag that indicates whether this type is trivially copyable. Read moresource§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 moresource§fn array_from_view<D>(
+Timedelta in numpy::datetime - Rust pub struct Timedelta<U: Unit>(/* private fields */);
Expand description
Corresponds to the [timedelta64
][scalars-datetime64] scalar type
+Trait Implementations§
source§impl<U: Unit> Element for Timedelta<U>
source§const IS_COPY: bool = true
Flag that indicates whether this type is trivially copyable. Read moresource§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 moresource§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 moresource§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: Ord + Unit> Ord for Timedelta<U>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>
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> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- 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 moresource§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: Ord + Unit> Ord for Timedelta<U>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl<U: PartialOrd + Unit> PartialOrd for Timedelta<U>
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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub trait Unit:
- Send
- + Sync
- + Clone
- + Copy
- + PartialEq
- + Eq
- + Hash
- + PartialOrd
- + Ord {
+Unit in numpy::datetime - Rust 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§
sourceconst UNIT: NPY_DATETIMEUNIT
The matching NumPy datetime unit code
-Object Safety§
This trait is not object safe.Implementors§
source§impl Unit for Attoseconds
source§impl Unit for Femtoseconds
source§impl Unit for Microseconds
source§impl Unit for Milliseconds
source§impl Unit for Nanoseconds
source§impl Unit for Picoseconds
\ No newline at end of file
+
Object Safety§
This trait is not object safe.Implementors§
source§impl Unit for Attoseconds
source§impl Unit for Femtoseconds
source§impl Unit for Microseconds
source§impl Unit for Milliseconds
source§impl Unit for Nanoseconds
source§impl Unit for Picoseconds
\ 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 Expand description
Predefined implementors of the Unit
trait
+numpy::datetime::units - Rust Expand description
Predefined implementors of the Unit
trait
Structs§
- Attoseconds, i.e. 10^-18 seconds
- Days, i.e. 24 hours
- Femtoseconds, i.e. 10^-15 seconds
- Hours, i.e. 60 minutes
- Microseconds, i.e. 10^-6 seconds
- Milliseconds, i.e. 10^-3 seconds
- Minutes, i.e. 60 seconds
- Months, i.e. 30 days
- Nanoseconds, i.e. 10^-9 seconds
- Picoseconds, i.e. 10^-12 seconds
- Seconds
- Weeks, i.e. 7 days
- Years, i.e. 12 months
\ 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Attoseconds
source§impl Hash for Attoseconds
source§impl Ord for Attoseconds
source§fn cmp(&self, other: &Attoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Attoseconds
source§impl PartialOrd for Attoseconds
source§impl Unit for Attoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_as
The matching NumPy datetime unit codesource§impl Copy for Attoseconds
source§impl Eq for Attoseconds
source§impl StructuralPartialEq for Attoseconds
Auto Trait Implementations§
§impl Freeze for Attoseconds
§impl RefUnwindSafe for Attoseconds
§impl Send for Attoseconds
§impl Sync for Attoseconds
§impl Unpin for Attoseconds
§impl UnwindSafe for Attoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Attoseconds in numpy::datetime::units - Rust pub struct Attoseconds;
Expand description
Attoseconds, i.e. 10^-18 seconds
+Trait Implementations§
source§impl Clone for Attoseconds
source§fn clone(&self) -> Attoseconds
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Attoseconds
source§impl Hash for Attoseconds
source§impl Ord for Attoseconds
source§fn cmp(&self, other: &Attoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Attoseconds
source§impl PartialOrd for Attoseconds
source§impl Unit for Attoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_as
The matching NumPy datetime unit codesource§impl Copy for Attoseconds
source§impl Eq for Attoseconds
source§impl StructuralPartialEq for Attoseconds
Auto Trait Implementations§
§impl Freeze for Attoseconds
§impl RefUnwindSafe for Attoseconds
§impl Send for Attoseconds
§impl Sync for Attoseconds
§impl Unpin for Attoseconds
§impl UnwindSafe for Attoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Days;
Expand description
Days, i.e. 24 hours
-Trait Implementations§
source§impl Ord for Days
source§impl PartialOrd for Days
source§impl Unit for Days
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_D
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Days in numpy::datetime::units - Rust pub struct Days;
Expand description
Days, i.e. 24 hours
+Trait Implementations§
source§impl Ord for Days
source§impl PartialOrd for Days
source§impl Unit for Days
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_D
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Femtoseconds
source§impl Hash for Femtoseconds
source§impl Ord for Femtoseconds
source§fn cmp(&self, other: &Femtoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Femtoseconds
source§impl PartialOrd for Femtoseconds
source§impl Unit for Femtoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_fs
The matching NumPy datetime unit codesource§impl Copy for Femtoseconds
source§impl Eq for Femtoseconds
source§impl StructuralPartialEq for Femtoseconds
Auto Trait Implementations§
§impl Freeze for Femtoseconds
§impl RefUnwindSafe for Femtoseconds
§impl Send for Femtoseconds
§impl Sync for Femtoseconds
§impl Unpin for Femtoseconds
§impl UnwindSafe for Femtoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Femtoseconds in numpy::datetime::units - Rust pub struct Femtoseconds;
Expand description
Femtoseconds, i.e. 10^-15 seconds
+Trait Implementations§
source§impl Clone for Femtoseconds
source§fn clone(&self) -> Femtoseconds
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Femtoseconds
source§impl Hash for Femtoseconds
source§impl Ord for Femtoseconds
source§fn cmp(&self, other: &Femtoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Femtoseconds
source§impl PartialOrd for Femtoseconds
source§impl Unit for Femtoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_fs
The matching NumPy datetime unit codesource§impl Copy for Femtoseconds
source§impl Eq for Femtoseconds
source§impl StructuralPartialEq for Femtoseconds
Auto Trait Implementations§
§impl Freeze for Femtoseconds
§impl RefUnwindSafe for Femtoseconds
§impl Send for Femtoseconds
§impl Sync for Femtoseconds
§impl Unpin for Femtoseconds
§impl UnwindSafe for Femtoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Hours;
Expand description
Hours, i.e. 60 minutes
-Trait Implementations§
source§impl Ord for Hours
source§impl PartialOrd for Hours
source§impl Unit for Hours
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_h
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Hours in numpy::datetime::units - Rust pub struct Hours;
Expand description
Hours, i.e. 60 minutes
+Trait Implementations§
source§impl Ord for Hours
source§impl PartialOrd for Hours
source§impl Unit for Hours
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_h
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Microseconds
source§impl Hash for Microseconds
source§impl Ord for Microseconds
source§fn cmp(&self, other: &Microseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Microseconds
source§impl PartialOrd for Microseconds
source§impl Unit for Microseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_us
The matching NumPy datetime unit codesource§impl Copy for Microseconds
source§impl Eq for Microseconds
source§impl StructuralPartialEq for Microseconds
Auto Trait Implementations§
§impl Freeze for Microseconds
§impl RefUnwindSafe for Microseconds
§impl Send for Microseconds
§impl Sync for Microseconds
§impl Unpin for Microseconds
§impl UnwindSafe for Microseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Microseconds in numpy::datetime::units - Rust pub struct Microseconds;
Expand description
Microseconds, i.e. 10^-6 seconds
+Trait Implementations§
source§impl Clone for Microseconds
source§fn clone(&self) -> Microseconds
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Microseconds
source§impl Hash for Microseconds
source§impl Ord for Microseconds
source§fn cmp(&self, other: &Microseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Microseconds
source§impl PartialOrd for Microseconds
source§impl Unit for Microseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_us
The matching NumPy datetime unit codesource§impl Copy for Microseconds
source§impl Eq for Microseconds
source§impl StructuralPartialEq for Microseconds
Auto Trait Implementations§
§impl Freeze for Microseconds
§impl RefUnwindSafe for Microseconds
§impl Send for Microseconds
§impl Sync for Microseconds
§impl Unpin for Microseconds
§impl UnwindSafe for Microseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Milliseconds
source§impl Hash for Milliseconds
source§impl Ord for Milliseconds
source§fn cmp(&self, other: &Milliseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Milliseconds
source§impl PartialOrd for Milliseconds
source§impl Unit for Milliseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ms
The matching NumPy datetime unit codesource§impl Copy for Milliseconds
source§impl Eq for Milliseconds
source§impl StructuralPartialEq for Milliseconds
Auto Trait Implementations§
§impl Freeze for Milliseconds
§impl RefUnwindSafe for Milliseconds
§impl Send for Milliseconds
§impl Sync for Milliseconds
§impl Unpin for Milliseconds
§impl UnwindSafe for Milliseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Milliseconds in numpy::datetime::units - Rust pub struct Milliseconds;
Expand description
Milliseconds, i.e. 10^-3 seconds
+Trait Implementations§
source§impl Clone for Milliseconds
source§fn clone(&self) -> Milliseconds
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Milliseconds
source§impl Hash for Milliseconds
source§impl Ord for Milliseconds
source§fn cmp(&self, other: &Milliseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Milliseconds
source§impl PartialOrd for Milliseconds
source§impl Unit for Milliseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ms
The matching NumPy datetime unit codesource§impl Copy for Milliseconds
source§impl Eq for Milliseconds
source§impl StructuralPartialEq for Milliseconds
Auto Trait Implementations§
§impl Freeze for Milliseconds
§impl RefUnwindSafe for Milliseconds
§impl Send for Milliseconds
§impl Sync for Milliseconds
§impl Unpin for Milliseconds
§impl UnwindSafe for Milliseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Minutes;
Expand description
Minutes, i.e. 60 seconds
-Trait Implementations§
source§impl Ord for Minutes
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialOrd for Minutes
source§impl Unit for Minutes
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_m
The matching NumPy datetime unit codesource§impl Copy for Minutes
source§impl Eq for Minutes
source§impl StructuralPartialEq for Minutes
Auto Trait Implementations§
§impl Freeze for Minutes
§impl RefUnwindSafe for Minutes
§impl Send for Minutes
§impl Sync for Minutes
§impl Unpin for Minutes
§impl UnwindSafe for Minutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Minutes in numpy::datetime::units - Rust pub struct Minutes;
Expand description
Minutes, i.e. 60 seconds
+Trait Implementations§
source§impl Ord for Minutes
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialOrd for Minutes
source§impl Unit for Minutes
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_m
The matching NumPy datetime unit codesource§impl Copy for Minutes
source§impl Eq for Minutes
source§impl StructuralPartialEq for Minutes
Auto Trait Implementations§
§impl Freeze for Minutes
§impl RefUnwindSafe for Minutes
§impl Send for Minutes
§impl Sync for Minutes
§impl Unpin for Minutes
§impl UnwindSafe for Minutes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Months;
Expand description
Months, i.e. 30 days
-Trait Implementations§
source§impl Ord for Months
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialOrd for Months
source§impl Unit for Months
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_M
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Months in numpy::datetime::units - Rust pub struct Months;
Expand description
Months, i.e. 30 days
+Trait Implementations§
source§impl Ord for Months
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialOrd for Months
source§impl Unit for Months
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_M
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Nanoseconds
source§impl Hash for Nanoseconds
source§impl Ord for Nanoseconds
source§fn cmp(&self, other: &Nanoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Nanoseconds
source§impl PartialOrd for Nanoseconds
source§impl Unit for Nanoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns
The matching NumPy datetime unit codesource§impl Copy for Nanoseconds
source§impl Eq for Nanoseconds
source§impl StructuralPartialEq for Nanoseconds
Auto Trait Implementations§
§impl Freeze for Nanoseconds
§impl RefUnwindSafe for Nanoseconds
§impl Send for Nanoseconds
§impl Sync for Nanoseconds
§impl Unpin for Nanoseconds
§impl UnwindSafe for Nanoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Nanoseconds in numpy::datetime::units - Rust pub struct Nanoseconds;
Expand description
Nanoseconds, i.e. 10^-9 seconds
+Trait Implementations§
source§impl Clone for Nanoseconds
source§fn clone(&self) -> Nanoseconds
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Nanoseconds
source§impl Hash for Nanoseconds
source§impl Ord for Nanoseconds
source§fn cmp(&self, other: &Nanoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Nanoseconds
source§impl PartialOrd for Nanoseconds
source§impl Unit for Nanoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns
The matching NumPy datetime unit codesource§impl Copy for Nanoseconds
source§impl Eq for Nanoseconds
source§impl StructuralPartialEq for Nanoseconds
Auto Trait Implementations§
§impl Freeze for Nanoseconds
§impl RefUnwindSafe for Nanoseconds
§impl Send for Nanoseconds
§impl Sync for Nanoseconds
§impl Unpin for Nanoseconds
§impl UnwindSafe for Nanoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Picoseconds
source§impl Hash for Picoseconds
source§impl Ord for Picoseconds
source§fn cmp(&self, other: &Picoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Picoseconds
source§impl PartialOrd for Picoseconds
source§impl Unit for Picoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ps
The matching NumPy datetime unit codesource§impl Copy for Picoseconds
source§impl Eq for Picoseconds
source§impl StructuralPartialEq for Picoseconds
Auto Trait Implementations§
§impl Freeze for Picoseconds
§impl RefUnwindSafe for Picoseconds
§impl Send for Picoseconds
§impl Sync for Picoseconds
§impl Unpin for Picoseconds
§impl UnwindSafe for Picoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Picoseconds in numpy::datetime::units - Rust pub struct Picoseconds;
Expand description
Picoseconds, i.e. 10^-12 seconds
+Trait Implementations§
source§impl Clone for Picoseconds
source§fn clone(&self) -> Picoseconds
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Picoseconds
source§impl Hash for Picoseconds
source§impl Ord for Picoseconds
source§fn cmp(&self, other: &Picoseconds) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for Picoseconds
source§impl PartialOrd for Picoseconds
source§impl Unit for Picoseconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ps
The matching NumPy datetime unit codesource§impl Copy for Picoseconds
source§impl Eq for Picoseconds
source§impl StructuralPartialEq for Picoseconds
Auto Trait Implementations§
§impl Freeze for Picoseconds
§impl RefUnwindSafe for Picoseconds
§impl Send for Picoseconds
§impl Sync for Picoseconds
§impl Unpin for Picoseconds
§impl UnwindSafe for Picoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Seconds;
Expand description
Seconds
-Trait Implementations§
source§impl Ord for Seconds
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
- Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialOrd for Seconds
source§impl Unit for Seconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_s
The matching NumPy datetime unit codesource§impl Copy for Seconds
source§impl Eq for Seconds
source§impl StructuralPartialEq for Seconds
Auto Trait Implementations§
§impl Freeze for Seconds
§impl RefUnwindSafe for Seconds
§impl Send for Seconds
§impl Sync for Seconds
§impl Unpin for Seconds
§impl UnwindSafe for Seconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Seconds in numpy::datetime::units - Rust pub struct Seconds;
Expand description
Seconds
+Trait Implementations§
source§impl Ord for Seconds
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
+ Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialOrd for Seconds
source§impl Unit for Seconds
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_s
The matching NumPy datetime unit codesource§impl Copy for Seconds
source§impl Eq for Seconds
source§impl StructuralPartialEq for Seconds
Auto Trait Implementations§
§impl Freeze for Seconds
§impl RefUnwindSafe for Seconds
§impl Send for Seconds
§impl Sync for Seconds
§impl Unpin for Seconds
§impl UnwindSafe for Seconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Weeks;
Expand description
Weeks, i.e. 7 days
-Trait Implementations§
source§impl Ord for Weeks
source§impl PartialOrd for Weeks
source§impl Unit for Weeks
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_W
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Weeks in numpy::datetime::units - Rust pub struct Weeks;
Expand description
Weeks, i.e. 7 days
+Trait Implementations§
source§impl Ord for Weeks
source§impl PartialOrd for Weeks
source§impl Unit for Weeks
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_W
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 pub struct Years;
Expand description
Years, i.e. 12 months
-Trait Implementations§
source§impl Ord for Years
source§impl PartialOrd for Years
source§impl Unit for Years
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_Y
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)source§impl<T, U> Into<U> for Twhere
- U: From<T>,
source§fn into(self) -> U
Calls U::from(self)
.
+Years in numpy::datetime::units - Rust pub struct Years;
Expand description
Years, i.e. 12 months
+Trait Implementations§
source§impl Ord for Years
source§impl PartialOrd for Years
source§impl Unit for Years
source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_Y
The matching NumPy datetime unit codesource§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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.source§impl<T> Scalar for T
§impl<T> Ungil for Twhere
- 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> Scalar for T
§impl<T> Ungil for Twhere
+ 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 #[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.Trait Implementations§
source§impl Debug for BorrowError
source§impl Display for BorrowError
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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<BorrowError> for PyErr
source§fn from(err: BorrowError) -> PyErr
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for BorrowError
§impl RefUnwindSafe for BorrowError
§impl Send for BorrowError
§impl Sync for BorrowError
§impl Unpin for BorrowError
§impl UnwindSafe for BorrowError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Debug for BorrowError
source§impl Display for BorrowError
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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<BorrowError> for PyErr
source§fn from(err: BorrowError) -> PyErr
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for BorrowError
§impl RefUnwindSafe for BorrowError
§impl Send for BorrowError
§impl Sync for BorrowError
§impl Unpin for BorrowError
§impl UnwindSafe for BorrowError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
- SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
-superset. Read more§fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.§impl<T> Ungil for Twhere
- 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.§impl<T> Ungil for Twhere
+ 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 pub const fn Ix1(i0: usize) -> Dim<[usize; 1]>
Expand description
Create a one-dimensional index
+Ix1 in numpy - Rust
\ 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 pub const fn Ix2(i0: usize, i1: usize) -> Dim<[usize; 2]>
Expand description
Create a two-dimensional index
+Ix2 in numpy - Rust
\ 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 pub const fn Ix3(i0: usize, i1: usize, i2: usize) -> Dim<[usize; 3]>
Expand description
Create a three-dimensional index
+Ix3 in numpy - Rust
\ 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 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
\ 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 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
\ 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 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
\ 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 pub fn IxDyn(ix: &[usize]) -> Dim<IxDynImpl>
Expand description
Create a dynamic-dimensional index
+IxDyn in numpy - Rust
\ 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 pub fn dot<'py, T, DIN1, DIN2, OUT>(
+dot in numpy - Rust 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 @@
-