pin-project-internal 0.4.23

An internal crate to support pin_project - do not use directly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod attribute;
mod derive;

use proc_macro2::TokenStream;

/// The annotation for pinned type.
const PIN: &str = "pin";

pub(crate) fn attribute(args: &TokenStream, input: TokenStream) -> TokenStream {
    attribute::parse_attribute(args, input).unwrap_or_else(|e| e.to_compile_error())
}

pub(crate) fn derive(input: TokenStream) -> TokenStream {
    derive::parse_derive(input).unwrap_or_else(|e| e.to_compile_error())
}