pub struct SolutionCandidates<'a, Sector>where
Sector: 'a,{ /* private fields */ }Expand description
Container for solution candidates.
SolutionCandidates::into_solutions is used to get an iterator over proven solutions that are
generated on demand during iteration.
Implementations§
Source§impl<'a, Sector> SolutionCandidates<'a, Sector>where
Sector: ReadAtSync + 'a,
impl<'a, Sector> SolutionCandidates<'a, Sector>where
Sector: ReadAtSync + 'a,
Sourcepub fn into_solutions<PosProofGenerator>(
self,
erasure_coding: &'a ErasureCoding,
table_generator: PosProofGenerator,
) -> Result<impl ProvableSolutions<Item = Result<Solution, ProvingError>> + 'a, ProvingError>
pub fn into_solutions<PosProofGenerator>( self, erasure_coding: &'a ErasureCoding, table_generator: PosProofGenerator, ) -> Result<impl ProvableSolutions<Item = Result<Solution, ProvingError>> + 'a, ProvingError>
Turn solution candidates into actual solutions
Trait Implementations§
Source§impl<'a, Sector> Clone for SolutionCandidates<'a, Sector>where
Sector: Clone + 'a,
impl<'a, Sector> Clone for SolutionCandidates<'a, Sector>where
Sector: Clone + 'a,
Auto Trait Implementations§
impl<'a, Sector> Freeze for SolutionCandidates<'a, Sector>where
Sector: Freeze,
impl<'a, Sector> RefUnwindSafe for SolutionCandidates<'a, Sector>where
Sector: RefUnwindSafe,
impl<'a, Sector> Send for SolutionCandidates<'a, Sector>where
Sector: Send,
impl<'a, Sector> Sync for SolutionCandidates<'a, Sector>where
Sector: Sync,
impl<'a, Sector> Unpin for SolutionCandidates<'a, Sector>where
Sector: Unpin,
impl<'a, Sector> UnwindSafe for SolutionCandidates<'a, Sector>where
Sector: UnwindSafe,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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