Trait scylla_cql::types::deserialize::value::Emptiable

source ·
pub trait Emptiable { }
Expand description

Values that may be empty or not.

In CQL, some types can have a special value of “empty”, represented as a serialized value of length 0. An example of this are integral types: the “int” type can actually hold 2^32 + 1 possible values because of this quirk. Note that this is distinct from being NULL.

Rust types that cannot represent an empty value (e.g. i32) should implement this trait in order to be deserialized as MaybeEmpty.

Implementations on Foreign Types§

source§

impl Emptiable for IpAddr

source§

impl Emptiable for bool

source§

impl Emptiable for f32

source§

impl Emptiable for f64

source§

impl Emptiable for i8

source§

impl Emptiable for i16

source§

impl Emptiable for i32

source§

impl Emptiable for i64

source§

impl Emptiable for Uuid

Implementors§