mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-13 03:58:12 -07:00
global: snapshot
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//! ComputedPerTxDistribution - stored per-tx EagerVec + computed distribution.
|
||||
//! PerTxDistribution - stored per-tx EagerVec + computed distribution.
|
||||
//!
|
||||
//! Like LazyFromTxDistribution, but the per-tx source is eagerly computed
|
||||
//! and stored rather than lazily derived.
|
||||
@@ -16,7 +16,7 @@ use crate::{
|
||||
};
|
||||
|
||||
#[derive(Traversable)]
|
||||
pub struct ComputedPerTxDistribution<T, M: StorageMode = Rw>
|
||||
pub struct PerTxDistribution<T, M: StorageMode = Rw>
|
||||
where
|
||||
T: ComputedVecValue + PartialOrd + JsonSchema,
|
||||
{
|
||||
@@ -25,7 +25,7 @@ where
|
||||
pub distribution: TxDerivedDistribution<T, M>,
|
||||
}
|
||||
|
||||
impl<T> ComputedPerTxDistribution<T>
|
||||
impl<T> PerTxDistribution<T>
|
||||
where
|
||||
T: NumericValue + JsonSchema,
|
||||
{
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@ use crate::internal::{ComputedVecValue, LazyTxDerivedDistribution, TxDerivedDist
|
||||
/// Like `LazyPerTxDistribution` but with a lazy-derived distribution
|
||||
/// (transformed from another type's distribution rather than eagerly computed).
|
||||
#[derive(Clone, Traversable)]
|
||||
pub struct LazyPerTxDistributionDerived<T, S1, S2, DSource>
|
||||
pub struct LazyPerTxDistributionTransformed<T, S1, S2, DSource>
|
||||
where
|
||||
T: ComputedVecValue + JsonSchema,
|
||||
S1: ComputedVecValue,
|
||||
@@ -20,7 +20,7 @@ where
|
||||
pub distribution: LazyTxDerivedDistribution<T, DSource>,
|
||||
}
|
||||
|
||||
impl<T, S1, S2, DSource> LazyPerTxDistributionDerived<T, S1, S2, DSource>
|
||||
impl<T, S1, S2, DSource> LazyPerTxDistributionTransformed<T, S1, S2, DSource>
|
||||
where
|
||||
T: ComputedVecValue + JsonSchema + 'static,
|
||||
S1: ComputedVecValue + JsonSchema,
|
||||
@@ -2,10 +2,10 @@ mod derived;
|
||||
mod distribution;
|
||||
mod lazy_derived;
|
||||
mod lazy_distribution;
|
||||
mod lazy_distribution_derived;
|
||||
mod lazy_distribution_transformed;
|
||||
|
||||
pub use derived::*;
|
||||
pub use distribution::*;
|
||||
pub use lazy_derived::*;
|
||||
pub use lazy_distribution::*;
|
||||
pub use lazy_distribution_derived::*;
|
||||
pub use lazy_distribution_transformed::*;
|
||||
|
||||
Reference in New Issue
Block a user