pub struct Tables<const K: u8>(/* private fields */)
where
EvaluatableUsize<{ _ }>: Sized,
[(); { _ }]:;Expand description
Collection of Chia tables
Implementations§
Source§impl Tables<20>
impl Tables<20>
Sourcepub fn create(seed: [u8; 32], cache: &TablesCache) -> Self
pub fn create(seed: [u8; 32], cache: &TablesCache) -> Self
Create Chia proof of space tables. There also exists Self::create_parallel() that trades
memory usage for lower latency and higher CPU efficiency.
Sourcepub fn create_parallel(seed: [u8; 32], cache: &TablesCache) -> Self
pub fn create_parallel(seed: [u8; 32], cache: &TablesCache) -> Self
Almost the same as Self::create(), but uses parallelism internally for better
latency and performance (though higher memory usage).
Trait Implementations§
Auto Trait Implementations§
impl<const K: u8> Freeze for Tables<K>where
EvaluatableUsize<{ metadata_size_bytes(K, 7) }>: Sized,
impl<const K: u8> RefUnwindSafe for Tables<K>where
EvaluatableUsize<{ metadata_size_bytes(K, 7) }>: Sized,
impl<const K: u8> Send for Tables<K>where
EvaluatableUsize<{ metadata_size_bytes(K, 7) }>: Sized,
impl<const K: u8> Sync for Tables<K>where
EvaluatableUsize<{ metadata_size_bytes(K, 7) }>: Sized,
impl<const K: u8> Unpin for Tables<K>where
EvaluatableUsize<{ metadata_size_bytes(K, 7) }>: Sized,
impl<const K: u8> UnwindSafe for Tables<K>where
EvaluatableUsize<{ metadata_size_bytes(K, 7) }>: Sized,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more