I have an API that I need to pass a Vec<u8> to that requires its parameter to implement std::io::Seek:
fn some_func<T: Seek + Write>(foo: &mut T) {/* body */}
The crate author suggests using a File here, however I want to avoid using that here as it would result in unneeded file creation. A Vec<u8> satisfies the Write trait, but not the Seek trait. Is there any way to avoid using a File here?