#[repr(u32)]
pub enum GlueDataType {
Show 31 variants TpBool, TpChar, TpUChar, TpShort, TpUShort, TpInt, TpUInt, TpFloat, TpDouble, TpComplex, TpDComplex, TpString, TpTable, TpArrayBool, TpArrayChar, TpArrayUChar, TpArrayShort, TpArrayUShort, TpArrayInt, TpArrayUInt, TpArrayFloat, TpArrayDouble, TpArrayComplex, TpArrayDComplex, TpArrayString, TpRecord, TpOther, TpQuantity, TpArrayQuantity, TpInt64, TpArrayInt64,
}
Expand description

Different data types supported by the CASA tables format.

Variants§

§

TpBool

A boolean value.

§

TpChar

A signed 8-bit integer value.

§

TpUChar

An unsigned 8-bit integer value.

§

TpShort

A signed 16-bit integer value.

§

TpUShort

An unsigned 16-bit integer value.

§

TpInt

A signed 32-bit integer value.

§

TpUInt

An unsigned 32-bit integer value.

§

TpFloat

A 32-bit IEEE754 floating-point value.

§

TpDouble

A 64-bit IEEE754 double-precision floating-point value.

§

TpComplex

A complex number composed of two single-precision floating-point values.

§

TpDComplex

A complex number composed of two double-precision floating-point values.

§

TpString

A string value. Todo: encoding???

§

TpTable

A value that is its own CASA table.

§

TpArrayBool

A value that is an array of booleans.

§

TpArrayChar

A value that is an array of signed 8-bit integers.

§

TpArrayUChar

A value that is an array of unsigned 8-bit integers.

§

TpArrayShort

A value that is an array of signed 16-bit integers.

§

TpArrayUShort

A value that is an array of unsigned 16-bit integers.

§

TpArrayInt

A value that is an array of signed 32-bit integers.

§

TpArrayUInt

A value that is an array of unsigned 32-bit integers.

§

TpArrayFloat

A value that is an array of 32-bit single-precision floating-point numbers.

§

TpArrayDouble

A value that is an array of 64-bit double-precision floating-point numbers.

§

TpArrayComplex

A value that is an array of complex numbers with single-precision components.

§

TpArrayDComplex

A value that is an array of complex numbers with double-precision components.

§

TpArrayString

A value that is an array of strings. Todo: encoding???

§

TpRecord

A value that is a dictionary of name-value pairs.

§

TpOther

A value of some other type.

§

TpQuantity

A value that is a physical quantity with associated dimensions.

§

TpArrayQuantity

A value that is an array of physical quantities with associated dimensions.

§

TpInt64

A signed 64-bit integer value.

§

TpArrayInt64

A value that is an array of unsigned 8-bit integers.

Implementations§

Return the number of bytes per element of this data type.

Returns -1 for types that do not have fixed sizes, which includes strings. TpX and TpArrayX both return the same value.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.