diff --git a/crates/rle/src/rle_trait.rs b/crates/rle/src/rle_trait.rs index 3e07d6e5..ec005c42 100644 --- a/crates/rle/src/rle_trait.rs +++ b/crates/rle/src/rle_trait.rs @@ -19,6 +19,9 @@ pub trait Mergable { } } +/// NOTE: [Sliceable] implementation should be coherent with [Mergable]: +/// +/// - For all k, a.slice(0,k).merge(a.slice(k, a.len())) == a pub trait Sliceable { fn slice(&self, from: usize, to: usize) -> Self; }