Struct k2hash::K2Hash
[−]
[src]
pub struct K2Hash { /* fields omitted */ }
Methods
impl K2Hash
[src]
fn new(
filepath: &Path,
readonly: bool,
removefile: bool,
fullmap: bool,
maskbitcnt: c_int,
cmaskbitcnt: c_int,
maxelementcnt: c_int,
pagesize: size_t
) -> Result<K2Hash, Error>
filepath: &Path,
readonly: bool,
removefile: bool,
fullmap: bool,
maskbitcnt: c_int,
cmaskbitcnt: c_int,
maxelementcnt: c_int,
pagesize: size_t
) -> Result<K2Hash, Error>
Open a database
fn get_str(&self, key: String) -> Result<String, Error>
Get a key and str value.
fn set_str(&self, key: String, value: String) -> Result<(), Error>
Set a key and str value.