Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
rust-rocksdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangzongwu
rust-rocksdb
Commits
75293105
Commit
75293105
authored
Jan 02, 2015
by
Andrey Davydov
Committed by
Andrey Davydov
Jan 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing Copy implementations added
parent
0351d734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
ffi.rs
src/ffi.rs
+9
-0
rocksdb.rs
src/rocksdb.rs
+2
-0
No files found.
src/ffi.rs
View file @
75293105
...
...
@@ -33,6 +33,15 @@ pub struct RocksDBCache(pub *const c_void);
#[repr(C)]
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
{
unsafe
{
rocksdb_filterpolicy_create_bloom
(
bits
)
...
...
src/rocksdb.rs
View file @
75293105
...
...
@@ -31,6 +31,8 @@ pub struct RocksDBOptions {
block_options
:
rocksdb_ffi
::
RocksDBBlockBasedTableOptions
,
}
impl
Copy
for
RocksDBOptions
{}
impl
RocksDBOptions
{
pub
fn
new
()
->
RocksDBOptions
{
unsafe
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment