Enum skytable::types::FlatElement
source · [−]#[non_exhaustive]
pub enum FlatElement {
String(String),
Binstr(Vec<u8>),
RespCode(RespCode),
UnsignedInt(u64),
}
Expand description
A flat element. This corresponds to the types that can be present in a flat array as defined by the Skyhash protocol
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(String)
An unicode string
Binstr(Vec<u8>)
A binary string (blob)
RespCode(RespCode)
A response code
UnsignedInt(u64)
An unsigned integer
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.