Utilities for pinning
Note: Since Rust 1.68, all APIs in this crate are now soft-deprecated or deprecated:
pin_utils::pin_mut!is soft-deprecated in favor ofpin!macro in the standard library that stabilized in Rust 1.68.pin_utils::{unsafe_pinned,unsafe_unpinned}are deprecated in favor of safe alternatives: pin-project, pin-project-lite
First, add this to your Cargo.toml:
[dependencies]
pin-utils = "0.1"Now, you can use it:
use pin_utils::pin_mut; // And more...The current pin-utils requires Rust 1.33 or later.
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in pin-utils by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.