Struct bitcoinleveldb_table::Constructor
source · pub struct Constructor { /* private fields */ }
Expand description
| Helper class for tests to unify the interface | between BlockBuilder/TableBuilder | and | | Block/Table. |
Implementations§
source§impl Constructor
impl Constructor
pub fn new(cmp: Box<dyn SliceComparator>) -> Self
pub fn add(&mut self, key_: &String, value: &Slice)
sourcepub fn finish(
&mut self,
options: &Options,
keys: *mut Vec<String>,
kvmap: *mut KVMap
)
pub fn finish( &mut self, options: &Options, keys: *mut Vec<String>, kvmap: *mut KVMap )
| Finish constructing the data structure with | all the keys that have been added so far. | | Returns the keys in sorted order in “*keys” | and stores the key/value pairs in “*kvmap”
pub fn data(&self) -> &KVMap
Auto Trait Implementations§
impl RefUnwindSafe for Constructor
impl Send for Constructor
impl Sync for Constructor
impl Unpin for Constructor
impl UnwindSafe for Constructor
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more