Commit 75293105 authored by Andrey Davydov's avatar Andrey Davydov Committed by Andrey Davydov

missing Copy implementations added

parent 0351d734
...@@ -33,6 +33,15 @@ pub struct RocksDBCache(pub *const c_void); ...@@ -33,6 +33,15 @@ pub struct RocksDBCache(pub *const c_void);
#[repr(C)] #[repr(C)]
pub struct RocksDBFilterPolicy(pub *const c_void); pub struct RocksDBFilterPolicy(pub *const c_void);
impl Copy for RocksDBOptions {}
impl Copy for RocksDBInstance {}
impl Copy for RocksDBWriteOptions {}
impl Copy for RocksDBReadOptions {}
impl Copy for RocksDBMergeOperator {}
impl Copy for RocksDBBlockBasedTableOptions {}
impl Copy for RocksDBCache {}
impl Copy for RocksDBFilterPolicy {}
pub fn new_bloom_filter(bits: c_int) -> RocksDBFilterPolicy { pub fn new_bloom_filter(bits: c_int) -> RocksDBFilterPolicy {
unsafe { unsafe {
rocksdb_filterpolicy_create_bloom(bits) rocksdb_filterpolicy_create_bloom(bits)
......
...@@ -31,6 +31,8 @@ pub struct RocksDBOptions { ...@@ -31,6 +31,8 @@ pub struct RocksDBOptions {
block_options: rocksdb_ffi::RocksDBBlockBasedTableOptions, block_options: rocksdb_ffi::RocksDBBlockBasedTableOptions,
} }
impl Copy for RocksDBOptions {}
impl RocksDBOptions { impl RocksDBOptions {
pub fn new() -> RocksDBOptions { pub fn new() -> RocksDBOptions {
unsafe { unsafe {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment