pub struct InMemoryPredictionStore { /* private fields */ }Implementations§
Source§impl InMemoryPredictionStore
impl InMemoryPredictionStore
pub fn new() -> InMemoryPredictionStore
pub fn append(&mut self, block: PredictionBlock) -> Result<(), DagMlError>
pub fn blocks(&self) -> &[PredictionBlock]
pub fn find( &self, producer_node: Option<&NodeId>, phase_partition: Option<&PredictionPartition>, fold_id: Option<&FoldId>, ) -> Vec<&PredictionBlock>
Trait Implementations§
Source§impl Clone for InMemoryPredictionStore
impl Clone for InMemoryPredictionStore
Source§fn clone(&self) -> InMemoryPredictionStore
fn clone(&self) -> InMemoryPredictionStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryPredictionStore
impl Debug for InMemoryPredictionStore
Source§impl Default for InMemoryPredictionStore
impl Default for InMemoryPredictionStore
Source§fn default() -> InMemoryPredictionStore
fn default() -> InMemoryPredictionStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryPredictionStore
impl RefUnwindSafe for InMemoryPredictionStore
impl Send for InMemoryPredictionStore
impl Sync for InMemoryPredictionStore
impl Unpin for InMemoryPredictionStore
impl UnsafeUnpin for InMemoryPredictionStore
impl UnwindSafe for InMemoryPredictionStore
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