view src/key_types.rs @ 1:f7a0e4369fe7

Add LICENSE
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 19 Nov 2016 12:57:10 +0100
parents c28758ff297b
children 14484cc26b69
line wrap: on
line source

// The following typedefs are used to distinguish between the different key formats used internally
// by different modules.

/// A UserKey is the actual key supplied by the calling application, without any internal
/// decorations.
pub type UserKey<'a> = &'a [u8];

/// An InternalKey consists of [key, tag], so it's basically a MemtableKey without the initial
/// length specification. This type is used as item type of MemtableIterator, and as the key
/// type of tables.
pub type InternalKey<'a> = &'a [u8];