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 syn::Item;

pub trait ItemHelper {
    fn is_mod(&self) -> bool;
}

impl ItemHelper for Item {
    fn is_mod(&self) -> bool {
        matches!(self, Item::Mod(_))
    }
}