Trait cassandra_cpp::CassCollection [−][src]
pub trait CassCollection: Sized { type Value;}Show methods
fn with_capacity(capacity: usize) -> Self; fn new_from_data_type(value: DataType, item_count: usize) -> Self; fn data_type(&self) -> ConstDataType; fn append_int8(&mut self, value: i8) -> Result<&mut Self>; fn append_int16(&mut self, value: i16) -> Result<&mut Self>; fn append_int32(&mut self, value: i32) -> Result<&mut Self>; fn append_uint32(&mut self, value: u32) -> Result<&mut Self>; fn append_int64(&mut self, value: i64) -> Result<&mut Self>; fn append_float(&mut self, value: f32) -> Result<&mut Self>; fn append_double(&mut self, value: f64) -> Result<&mut Self>; fn append_bool(&mut self, value: bool) -> Result<&mut Self>; fn append_string(&mut self, value: &str) -> Result<&mut Self>; fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>; fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>; fn append_inet(&mut self, value: Inet) -> Result<&mut Self>; fn append_list(&mut self, value: List) -> Result<&mut Self>; fn append_set(&mut self, value: Set) -> Result<&mut Self>; fn append_map(&mut self, value: Map) -> Result<&mut Self>; fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>; fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>; fn new() -> Self { ... }
Expand description
A generic Cassandra collection that needs to go away
Associated Types
Required methods
fn with_capacity(capacity: usize) -> Self
[src]
Expand description
Creates a new collection, specifying a capacity which will be used as a size hint to avoid re-allocations of the collection internally.
If you know the number of items you’ll insert into the collection ahead of time,
it is recommended to use this function over CassCollection::new
.
fn new_from_data_type(value: DataType, item_count: usize) -> Self
[src]
Expand description
Creates a new collection from an existing data type.
fn data_type(&self) -> ConstDataType
[src]
Expand description
Gets the data type of a collection.
fn append_int8(&mut self, value: i8) -> Result<&mut Self>
[src]
Expand description
Appends a “tinyint” to the collection.
fn append_int16(&mut self, value: i16) -> Result<&mut Self>
[src]
Expand description
Appends an “smallint” to the collection.
fn append_int32(&mut self, value: i32) -> Result<&mut Self>
[src]
Expand description
Appends an “int” to the collection.
fn append_uint32(&mut self, value: u32) -> Result<&mut Self>
[src]
Expand description
Appends a “date” to the collection.
fn append_int64(&mut self, value: i64) -> Result<&mut Self>
[src]
Expand description
Appends a “bigint”, “counter”, “timestamp” or “time” to the collection.
fn append_float(&mut self, value: f32) -> Result<&mut Self>
[src]
Expand description
Appends a “float” to the collection.
fn append_double(&mut self, value: f64) -> Result<&mut Self>
[src]
Expand description
Appends a “double” to the collection.
fn append_bool(&mut self, value: bool) -> Result<&mut Self>
[src]
Expand description
Appends a “boolean” to the collection.
fn append_string(&mut self, value: &str) -> Result<&mut Self>
[src]
Expand description
Appends an “ascii”, “text” or “varchar” to the collection.
fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>
[src]
Expand description
Appends a “blob”, “varint” or “custom” to the collection.
fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>
[src]
Expand description
Appends a “uuid” or “timeuuid” to the collection.
fn append_inet(&mut self, value: Inet) -> Result<&mut Self>
[src]
Expand description
Appends an “inet” to the collection.
fn append_list(&mut self, value: List) -> Result<&mut Self>
[src]
Expand description
Appends a “list” to the collection.
fn append_set(&mut self, value: Set) -> Result<&mut Self>
[src]
Expand description
Appends a “set” to the collection.
fn append_map(&mut self, value: Map) -> Result<&mut Self>
[src]
Expand description
Appends a “map” to the collection.
fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>
[src]
Expand description
Appends a “tuple” to the collection.
fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>
[src]
Expand description
Appends a “udt” to the collection.
Provided methods
Implementors
impl CassCollection for List
[src]
impl CassCollection for List
[src]fn with_capacity(capacity: usize) -> Self
[src]
fn with_capacity(capacity: usize) -> Self
[src]create a new list
fn append_int8(&mut self, value: i8) -> Result<&mut Self>
[src]
fn append_int8(&mut self, value: i8) -> Result<&mut Self>
[src]Appends a “tinyint” to the collection.
fn append_int16(&mut self, value: i16) -> Result<&mut Self>
[src]
fn append_int16(&mut self, value: i16) -> Result<&mut Self>
[src]Appends an “smallint” to the collection.
fn append_int32(&mut self, value: i32) -> Result<&mut Self>
[src]
fn append_int32(&mut self, value: i32) -> Result<&mut Self>
[src]Appends an “int” to the collection.
fn append_uint32(&mut self, value: u32) -> Result<&mut Self>
[src]
fn append_uint32(&mut self, value: u32) -> Result<&mut Self>
[src]Appends a “date” to the collection.
fn append_int64(&mut self, value: i64) -> Result<&mut Self>
[src]
fn append_int64(&mut self, value: i64) -> Result<&mut Self>
[src]Appends a “bigint”, “counter”, “timestamp” or “time” to the collection.
fn append_float(&mut self, value: f32) -> Result<&mut Self>
[src]
fn append_float(&mut self, value: f32) -> Result<&mut Self>
[src]Appends a “float” to the collection.
fn append_double(&mut self, value: f64) -> Result<&mut Self>
[src]
fn append_double(&mut self, value: f64) -> Result<&mut Self>
[src]Appends a “double” to the collection.
fn append_bool(&mut self, value: bool) -> Result<&mut Self>
[src]
fn append_bool(&mut self, value: bool) -> Result<&mut Self>
[src]Appends a “boolean” to the collection.
fn append_string(&mut self, value: &str) -> Result<&mut Self>
[src]
fn append_string(&mut self, value: &str) -> Result<&mut Self>
[src]Appends an “ascii”, “text” or “varchar” to the collection.
fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>
[src]
fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>
[src]Appends a “blob”, “varint” or “custom” to the collection.
fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>
[src]
fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>
[src]Appends a “uuid” or “timeuuid” to the collection.
fn append_inet(&mut self, value: Inet) -> Result<&mut Self>
[src]
fn append_inet(&mut self, value: Inet) -> Result<&mut Self>
[src]Appends an “inet” to the collection.
fn append_list(&mut self, value: List) -> Result<&mut Self>
[src]
fn append_list(&mut self, value: List) -> Result<&mut Self>
[src]Appends a “list” to the collection.
fn append_set(&mut self, value: Set) -> Result<&mut Self>
[src]
fn append_set(&mut self, value: Set) -> Result<&mut Self>
[src]Appends a “set” to the collection.
fn append_map(&mut self, value: Map) -> Result<&mut Self>
[src]
fn append_map(&mut self, value: Map) -> Result<&mut Self>
[src]Appends a “map” to the collection.
fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>
[src]
fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>
[src]Appends a “tuple” to the collection.
fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>
[src]
fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>
[src]Appends a “udt” to the collection.
impl CassCollection for Map
[src]
impl CassCollection for Map
[src]fn append_int8(&mut self, value: i8) -> Result<&mut Self>
[src]
fn append_int8(&mut self, value: i8) -> Result<&mut Self>
[src]Appends a “tinyint” to the collection.
fn append_int16(&mut self, value: i16) -> Result<&mut Self>
[src]
fn append_int16(&mut self, value: i16) -> Result<&mut Self>
[src]Appends an “smallint” to the collection.
fn append_int32(&mut self, value: i32) -> Result<&mut Self>
[src]
fn append_int32(&mut self, value: i32) -> Result<&mut Self>
[src]Appends an “int” to the collection.
fn append_uint32(&mut self, value: u32) -> Result<&mut Self>
[src]
fn append_uint32(&mut self, value: u32) -> Result<&mut Self>
[src]Appends a “date” to the collection.
fn append_int64(&mut self, value: i64) -> Result<&mut Self>
[src]
fn append_int64(&mut self, value: i64) -> Result<&mut Self>
[src]Appends a “bigint”, “counter”, “timestamp” or “time” to the collection.
fn append_float(&mut self, value: f32) -> Result<&mut Self>
[src]
fn append_float(&mut self, value: f32) -> Result<&mut Self>
[src]Appends a “float” to the collection.
fn append_double(&mut self, value: f64) -> Result<&mut Self>
[src]
fn append_double(&mut self, value: f64) -> Result<&mut Self>
[src]Appends a “double” to the collection.
fn append_bool(&mut self, value: bool) -> Result<&mut Self>
[src]
fn append_bool(&mut self, value: bool) -> Result<&mut Self>
[src]Appends a “boolean” to the collection.
fn append_string(&mut self, value: &str) -> Result<&mut Self>
[src]
fn append_string(&mut self, value: &str) -> Result<&mut Self>
[src]Appends an “ascii”, “text” or “varchar” to the collection.
fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>
[src]
fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>
[src]Appends a “blob”, “varint” or “custom” to the collection.
fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>
[src]
fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>
[src]Appends a “uuid” or “timeuuid” to the collection.
fn append_inet(&mut self, value: Inet) -> Result<&mut Self>
[src]
fn append_inet(&mut self, value: Inet) -> Result<&mut Self>
[src]Appends an “inet” to the collection.
fn append_list(&mut self, value: List) -> Result<&mut Self>
[src]
fn append_list(&mut self, value: List) -> Result<&mut Self>
[src]Appends a “list” to the collection.
fn append_set(&mut self, value: Set) -> Result<&mut Self>
[src]
fn append_set(&mut self, value: Set) -> Result<&mut Self>
[src]Appends a “set” to the collection.
fn append_map(&mut self, value: Map) -> Result<&mut Self>
[src]
fn append_map(&mut self, value: Map) -> Result<&mut Self>
[src]Appends a “map” to the collection.
fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>
[src]
fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>
[src]Appends a “tuple” to the collection.
fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>
[src]
fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>
[src]Appends a “udt” to the collection.
type Value = _CassCollection
fn with_capacity(capacity: usize) -> Self
[src]
fn new_from_data_type(value: DataType, item_count: usize) -> Self
[src]
impl CassCollection for Set
[src]
impl CassCollection for Set
[src]fn with_capacity(capacity: usize) -> Self
[src]
fn with_capacity(capacity: usize) -> Self
[src]create a new list
fn append_int8(&mut self, value: i8) -> Result<&mut Self>
[src]
fn append_int8(&mut self, value: i8) -> Result<&mut Self>
[src]Appends a “tinyint” to the collection.
fn append_int16(&mut self, value: i16) -> Result<&mut Self>
[src]
fn append_int16(&mut self, value: i16) -> Result<&mut Self>
[src]Appends an “smallint” to the collection.
fn append_int32(&mut self, value: i32) -> Result<&mut Self>
[src]
fn append_int32(&mut self, value: i32) -> Result<&mut Self>
[src]Appends an “int” to the collection.
fn append_uint32(&mut self, value: u32) -> Result<&mut Self>
[src]
fn append_uint32(&mut self, value: u32) -> Result<&mut Self>
[src]Appends a “date” to the collection.
fn append_int64(&mut self, value: i64) -> Result<&mut Self>
[src]
fn append_int64(&mut self, value: i64) -> Result<&mut Self>
[src]Appends a “bigint”, “counter”, “timestamp” or “time” to the collection.
fn append_float(&mut self, value: f32) -> Result<&mut Self>
[src]
fn append_float(&mut self, value: f32) -> Result<&mut Self>
[src]Appends a “float” to the collection.
fn append_double(&mut self, value: f64) -> Result<&mut Self>
[src]
fn append_double(&mut self, value: f64) -> Result<&mut Self>
[src]Appends a “double” to the collection.
fn append_bool(&mut self, value: bool) -> Result<&mut Self>
[src]
fn append_bool(&mut self, value: bool) -> Result<&mut Self>
[src]Appends a “boolean” to the collection.
fn append_string(&mut self, value: &str) -> Result<&mut Self>
[src]
fn append_string(&mut self, value: &str) -> Result<&mut Self>
[src]Appends an “ascii”, “text” or “varchar” to the collection.
fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>
[src]
fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>
[src]Appends a “blob”, “varint” or “custom” to the collection.
fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>
[src]
fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>
[src]Appends a “uuid” or “timeuuid” to the collection.
fn append_inet(&mut self, value: Inet) -> Result<&mut Self>
[src]
fn append_inet(&mut self, value: Inet) -> Result<&mut Self>
[src]Appends an “inet” to the collection.
fn append_list(&mut self, value: List) -> Result<&mut Self>
[src]
fn append_list(&mut self, value: List) -> Result<&mut Self>
[src]Appends a “list” to the collection.
fn append_set(&mut self, value: Set) -> Result<&mut Self>
[src]
fn append_set(&mut self, value: Set) -> Result<&mut Self>
[src]Appends a “set” to the collection.
fn append_map(&mut self, value: Map) -> Result<&mut Self>
[src]
fn append_map(&mut self, value: Map) -> Result<&mut Self>
[src]Appends a “map” to the collection.
fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>
[src]
fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>
[src]Appends a “tuple” to the collection.
fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>
[src]
fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>
[src]Appends a “udt” to the collection.