ferment-sys 0.2.14

Syntax tree morphing of FFI-compatible stuff
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use quote::quote;
use crate::composable::FieldComposer;
use crate::composer::SourceFermentable;
use crate::lang::RustSpecification;
use crate::presentation::RustFermentate;


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