mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-31 00:00:07 +02:00
Related to #1318, Tokio APIs that are "less stable" are moved into a new `tokio-util` crate. This crate will mirror `tokio` and provide additional APIs that may require a greater rate of breaking changes. As examples require `tokio-util`, they are moved into a separate crate (`examples`). This has the added advantage of being able to avoid example only dependencies in the `tokio` crate.
8 lines
190 B
Rust
8 lines
190 B
Rust
/// A macro to reduce some of the boilerplate for projecting from
|
|
/// `Pin<&mut T>` to `Pin<&mut T.field>`
|
|
macro_rules! pin {
|
|
($e:expr) => {
|
|
std::pin::Pin::new(&mut $e)
|
|
};
|
|
}
|