stock-trek 0.8.15

Stock Trek time-series analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::allocations::{
    allocation::Allocation, in_memory_allocation::Builder as InMemoryAllocationBuilder,
    stub_allocation::StubAllocation,
};

pub struct AllocationFactory;

impl AllocationFactory {
    pub fn stub() -> Allocation {
        StubAllocation::new().into()
    }
    pub fn in_memory_builder() -> InMemoryAllocationBuilder {
        InMemoryAllocationBuilder::new()
    }
}