Type Definition kdb_c_api::K[][src]

type K = *mut k0;
Expand description

Struct representing q object.

Trait Implementations

impl KUtility for K[src]

fn as_mut_slice<'a, T>(self) -> &'a mut [T][src]

Derefer K as a mutable slice of the specified type. The supported types are: Read more

fn get_bool(&self) -> Result<bool, &'static str>[src]

Get an underlying q byte. Read more

fn get_guid(&self) -> Result<[u8; 16], &'static str>[src]

Get an underlying q byte. Read more

fn get_byte(&self) -> Result<u8, &'static str>[src]

Get an underlying q byte. Read more

fn get_short(&self) -> Result<i16, &'static str>[src]

Get an underlying q short. Read more

fn get_int(&self) -> Result<i32, &'static str>[src]

Get an underlying q int. Read more

fn get_long(&self) -> Result<i64, &'static str>[src]

Get an underlying q long. Read more

fn get_real(&self) -> Result<f32, &'static str>[src]

Get an underlying q real. Read more

fn get_float(&self) -> Result<f64, &'static str>[src]

Get an underlying q float. Read more

fn get_char(&self) -> Result<char, &'static str>[src]

Get an underlying q char. Read more

fn get_symbol(&self) -> Result<&str, &'static str>[src]

Get an underlying q symbol. Read more

fn get_str(&self) -> Result<&str, &'static str>[src]

Get an underlying q string as &str. Read more

fn get_string(&self) -> Result<String, &'static str>[src]

Get an underlying q string as String. Read more

fn append(&mut self, list: K) -> Result<K, &'static str>[src]

Append a q list object to a q list. Returns a pointer to the (potentially reallocated) K object. Read more

fn push(&mut self, atom: K) -> Result<K, &'static str>[src]

Add a q object to a q compound list. Returns a pointer to the (potentially reallocated) K object. Read more

fn push_raw<T>(&mut self, atom: T) -> Result<K, &'static str>[src]

Add a raw value to a q simple list and returns a pointer to the (potentially reallocated) K object. Read more

fn push_symbol(&mut self, symbol: &str) -> Result<K, &'static str>[src]

Add an internalized char array to symbol list. Returns a pointer to the (potentially reallocated) K object. Read more

fn push_symbol_n(&mut self, symbol: &str, n: I) -> Result<K, &'static str>[src]

Add an internalized char array to symbol list. Returns a pointer to the (potentially reallocated) K object. Read more

fn len(&self) -> i64[src]

Get a length of the list. More specifically, a value of k0.value.list.n for list types. Otherwise 2 for table and 1 for atom and null. Read more

fn get_type(&self) -> i8[src]

Get a type of K object.

fn set_type(&self, qtype: i8)[src]

Set a type of K object. Read more

fn q_ipc_encode(&self, mode: I) -> Result<K, &'static str>[src]

Serialize q object and return serialized q byte list object on success: otherwise null. Mode is either of: Read more

fn q_ipc_decode(&self) -> Result<K, &'static str>[src]

Deserialize a bytes into q object. Read more