#[repr(C)]pub struct PyArrayObject {
pub ob_base: PyObject,
pub data: *mut c_char,
pub nd: c_int,
pub dimensions: *mut npy_intp,
pub strides: *mut npy_intp,
pub base: *mut PyObject,
pub descr: *mut PyArray_Descr,
pub flags: c_int,
pub weakreflist: *mut PyObject,
}
Fields
ob_base: PyObject
data: *mut c_char
nd: c_int
dimensions: *mut npy_intp
strides: *mut npy_intp
base: *mut PyObject
descr: *mut PyArray_Descr
flags: c_int
weakreflist: *mut PyObject
Trait Implementations
sourceimpl Clone for PyArrayObject
impl Clone for PyArrayObject
sourcefn clone(&self) -> PyArrayObject
fn clone(&self) -> PyArrayObject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for PyArrayObject
impl<T, D> PyLayout<PyArray<T, D>> for PyArrayObject
impl<T, D> PySizedLayout<PyArray<T, D>> for PyArrayObject
Auto Trait Implementations
impl RefUnwindSafe for PyArrayObject
impl !Send for PyArrayObject
impl !Sync for PyArrayObject
impl Unpin for PyArrayObject
impl UnwindSafe for PyArrayObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more