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
14
15
16
17
18
use quote::{quote, TokenStreamExt, ToTokens};
use syn::__private::TokenStream2;
use ferment_macro::MethodCall;

#[allow(unused)]
#[allow(dead_code)]
#[derive(Clone, Debug, MethodCall)]
#[namespace = "ferment::FFICallback"]
pub enum FFICallbackMethod {
    Get,
}
impl ToTokens for FFICallbackMethod {
    fn to_tokens(&self, dst: &mut TokenStream2) {
        match self {
            Self::Get => quote!(get),
        }.to_tokens(dst)
    }
}