use data::divstream::RcDividendStream;
use data::divstream::DividendStream;
use data::bump::Bumper;
use std::sync::Arc;
pub enum BumpDivs {
BumpAllRelative { size: f64 },
}
impl BumpDivs {
pub fn new_all_relative(size: f64) -> BumpDivs {
BumpDivs::BumpAllRelative { size: size }
}
}
impl Bumper<RcDividendStream> for BumpDivs {
fn apply(&self, divs: RcDividendStream) -> RcDividendStream {
match self {
&BumpDivs::BumpAllRelative { size }
=> RcDividendStream::new(Arc::new(DividendStream::new_bump_all(&*divs, size)))
}
}
}