Use uniform biases in AnchorMap, AnchorRangeMap

Specifying a different bias for every point makes the interface feel pretty unwieldy and we don't really use it.
This commit is contained in:
Nathan Sobo 2021-11-22 15:30:46 -07:00
parent 612b4404a9
commit 2f39dee28b
4 changed files with 92 additions and 54 deletions

View file

@ -19,7 +19,8 @@ pub struct Anchor {
#[derive(Clone)]
pub struct AnchorMap<T> {
pub(crate) version: clock::Global,
pub(crate) entries: Vec<((FullOffset, Bias), T)>,
pub(crate) bias: Bias,
pub(crate) entries: Vec<(FullOffset, T)>,
}
#[derive(Clone)]