pub struct DatasetHandle { /* private fields */ }Expand description
Contains a handle of Dataset, can’t be created from scratch, only obtained from already existing Cache.
Implementations§
source§impl DatasetHandle
impl DatasetHandle
sourcepub fn items_count(&self) -> u64
pub fn items_count(&self) -> u64
Return a number of elements that a dataset could contain.
sourcepub fn initialize(
&mut self,
cache: &impl CacheRawAPI,
start_item: u64,
items_count: u64,
)
pub fn initialize( &mut self, cache: &impl CacheRawAPI, start_item: u64, items_count: u64, )
Initialize dataset with the provided cache.
pub fn memory(&self) -> *mut c_void
Trait Implementations§
source§impl Clone for DatasetHandle
impl Clone for DatasetHandle
source§fn clone(&self) -> DatasetHandle
fn clone(&self) -> DatasetHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl DatasetRawAPI for DatasetHandle
impl DatasetRawAPI for DatasetHandle
fn raw(&self) -> *mut randomx_dataset
Auto Trait Implementations§
impl Freeze for DatasetHandle
impl RefUnwindSafe for DatasetHandle
impl Send for DatasetHandle
impl Sync for DatasetHandle
impl Unpin for DatasetHandle
impl UnwindSafe for DatasetHandle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)