ferment-sys 0.2.14

Syntax tree morphing of FFI-compatible stuff
Documentation
1
2
3
4
5
6
7
8
9
10
11
use quote::quote;
use crate::composable::FieldComposer;
use crate::composer::SourceFermentable;
use crate::lang::objc::{ObjCFermentate, ObjCSpecification};

impl SourceFermentable<ObjCFermentate> for FieldComposer<ObjCSpecification> {
    fn ferment(&self) -> ObjCFermentate {
        let Self { name, kind, attrs, .. } = self;
        ObjCFermentate::TokenStream(attrs.wrap(quote!((#kind)#name)))
    }
}