Enum npy::DType [] [src]

pub enum DType {
    Plain {
        ty: String,
        shape: Vec<u64>,
    },
    Record(Vec<Field>),
}

Representation of a Numpy type

Variants

A simple array with only a single field

Fields of Plain

Numpy type string. First character is '>' for big endian, '<' for little endian.

Examples: >i4, <u8, >f8. The number corresponds to the number of bytes.

Shape of a type.

Scalar has zero entries. Otherwise, number of entries == number of dimensions and each entry specifies size in the respective dimension.

A structure record array

Methods

impl DType
[src]

[src]

Numpy format description of record dtype.

[src]

Create from description AST

Trait Implementations

impl PartialEq for DType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for DType
[src]

impl Debug for DType
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DType

impl Sync for DType