This reference describes unreleased code on main; no release documents it yet.

rlmesh::DType

enumPreviewuse rlmesh::DType;[source]

An element dtype, with its wire spelling ("float32", ...).

enum DType

The discriminants are the wire numbers (Bool = 1 … Float64 = 12). A space with no element dtype of its own (a Dict) reads as Float32.

Bool

variant[source]
Bool = 1

"bool".

Uint8

variant[source]
Uint8 = 2

"uint8".

Uint16

variant[source]
Uint16 = 3

"uint16".

Uint32

variant[source]
Uint32 = 4

"uint32".

Uint64

variant[source]
Uint64 = 5

"uint64".

Int8

variant[source]
Int8 = 6

"int8".

Int16

variant[source]
Int16 = 7

"int16".

Int32

variant[source]
Int32 = 8

"int32".

Int64

variant[source]
Int64 = 9

"int64".

Float16

variant[source]
Float16 = 10

"float16".

Float32

variant[source]
Float32 = 11

"float32".

Float64

variant[source]
Float64 = 12

"float64".

parse

associated function[source]
fn parse(name: &str) -> Option<DType>

The dtype whose canonical spelling is exactly name ("float32"); None otherwise.

as_str

method[source]
fn as_str(self) -> &'static str

The canonical spelling ("float32").

Trait implementations

  • impl Vocabulary for DType
  • impl Clone for DType
  • impl Copy for DType
  • impl Debug for DType
  • impl StructuralPartialEq for DType
  • impl PartialEq for DType
  • impl Eq for DType
  • impl Hash for DType
  • impl Display for DType