All the traits you use are in `core` (except [Error](https://github.com/rust-lang/rust/issues/37905)), so it should be easy.