pub fn new(t: T) -> Self {
        Self { range: 0..t.as_ref().len(), inner: t }
    }
Creates a new window around the buffer `t` defaulting to the entire
slice.

Further methods can be called on the returned `Window<T>` to alter the
window into the data provided.
futures-util/src/io/window.rs