Enum npy::DType
[−]
[src]
pub enum DType { Plain { ty: String, shape: Vec<u64>, }, Record(Vec<Field>), }
Representation of a Numpy type
Variants
Plain
A simple array with only a single field
Fields of Plain
ty: String | Numpy type string. First character is Examples: |
shape: Vec<u64> | Shape of a type. Scalar has zero entries. Otherwise, number of entries == number of dimensions and each entry specifies size in the respective dimension. |
Record(Vec<Field>)
A structure record array
Methods
impl DType
[src]
pub fn descr(&self) -> String
[src]
Numpy format description of record dtype.
pub fn from_descr(descr: Value) -> Result<Self>
[src]
Create from description AST
Trait Implementations
impl PartialEq for DType
[src]
fn eq(&self, __arg_0: &DType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DType) -> bool
[src]
This method tests for !=
.