Files
tokio/tokio-codec/src/macros.rs
T

8 lines
190 B
Rust
Raw Normal View History

2019-06-27 18:10:29 +01:00
/// 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)
};
}