accepts-codegen 0.0.1

Rust toolkit for composing synchronous and asynchronous acceptor pipelines
Documentation
1
2
3
4
5
6
7
8
9
use syn::{Path, Type, TypePath};

use crate::common::{context::CodegenContext, syn::ext::TypePathConstructExt};

use super::{box_path, pin_path};

pub fn pin_box_path(ctx: &CodegenContext, box_t_type: Type) -> Path {
    pin_path(Type::Path(TypePath::from_path(box_path(ctx, box_t_type))))
}