Skip to main content

Module qtype

Module qtype 

Source
Expand description

This module provides a list of q types. The motivation to contain them in a module is to tie them up as related items rather than scattered values. Hence user should use these indicators with qtype:: prefix, e.g., qtype::BOOL_LIST.

§Note

In order to facilitate type check without overflow this module defines atom type indicator as well as list type indicators (We don’t need to compeletely mirror the C API).

Constants§

BOOL_ATOM
Type indicator of q bool atom.
BOOL_LIST
Type indicator of q bool list list. Slice access type: G, i.e., obj.as_mut_sice::<G>().
BYTE_ATOM
Type indicator of q byte atom.
BYTE_LIST
Type indicator of q byte list. Slice access type: G, i.e., obj.as_mut_sice::<G>().
CHAR
Type indicator of q char atom.
COMPOUND_LIST
Type indicator of q mixed list list. Slice access type: K, i.e., obj.as_mut_sice::<K>().
DATETIME_ATOM
Type indicator of q datetime atom.
DATETIME_LIST
Type indicator of q datetime list. Slice access type: F, i.e., obj.as_mut_sice::<F>().
DATE_ATOM
Type indicator of q date atom.
DATE_LIST
Type indicator of q date list. Slice access type: I, i.e., obj.as_mut_sice::<I>().
DICTIONARY
Type indicator of q dictionary. Slice access type: K, i.e., obj.as_mut_sice::<K>().
ENUM_ATOM
Type indicator of q enum atom.
ENUM_LIST
Type indicator of q enum list. Slice access type: J, i.e., obj.as_mut_sice::<J>().
ERROR
Type indicator of q error
FLOAT_ATOM
Type indicator of q float atom.
FLOAT_LIST
Type indicator of q float list. Slice access type: F, i.e., obj.as_mut_sice::<F>().
FOREIGN
Type indicator of q foreign object.
GUID_ATOM
Type indicator of q GUID atom.
GUID_LIST
Type indicator of q GUID list. Slice access type: U, i.e., obj.as_mut_sice::<U>().
INT_ATOM
Type indicator of q int atom.
INT_LIST
Type indicator of q int list. Slice access type: I, i.e., obj.as_mut_sice::<I>().
LONG_ATOM
Type indicator of q long atom.
LONG_LIST
Type indicator of q long list. Slice access type: J, i.e., obj.as_mut_sice::<J>().
MINUTE_ATOM
Type indicator of q minute atom.
MINUTE_LIST
Type indicator of q minute list. Slice access type: I, i.e., obj.as_mut_sice::<I>().
MONTH_ATOM
Type indicator of q month atom.
MONTH_LIST
Type indicator of q month list. Slice access type: I, i.e., obj.as_mut_sice::<I>().
NULL
Type indicator of q general null
REAL_ATOM
Type indicator of q real atom.
REAL_LIST
Type indicator of q real list. Slice access type: E, i.e., obj.as_mut_sice::<E>().
SECOND_ATOM
Type indicator of q second atom.
SECOND_LIST
Type indicator of q second list. Slice access type: I, i.e., obj.as_mut_sice::<I>().
SHORT_ATOM
Type indicator of q short atom.
SHORT_LIST
Type indicator of q short list. Slice access type: H, i.e., obj.as_mut_sice::<H>().
SORTED_DICTIONARY
Type indicator of q sorted dictionary. Slice access type: K, i.e., obj.as_mut_sice::<K>().
STRING
Type indicator of q string (char list). Slice access type: C, i.e., obj.as_mut_sice::<C>().
SYMBOL_ATOM
Type indicator of q symbol atom.
SYMBOL_LIST
Type indicator of q symbol list. Slice access type: S, i.e., obj.as_mut_sice::<S>().
TABLE
Type indicator of q table.
TIMESPAN_ATOM
Type indicator of q timespan atom.
TIMESPAN_LIST
Type indicator of q timespan list. Slice access type: J, i.e., obj.as_mut_sice::<J>().
TIMESTAMP_ATOM
Type indicator of q timestamp atom.
TIMESTAMP_LIST
Type indicator of q timestamp list. Slice access type: J, i.e., obj.as_mut_sice::<J>().
TIME_ATOM
Type indicator of q time atom.
TIME_LIST
Type indicator of q time list. Slice access type: I, i.e., obj.as_mut_sice::<I>().