protospec_build/asg/
function.rs

1use super::*;
2
3pub struct Function {
4    pub name: String,
5    pub span: Span,
6    pub inner: ForeignFunctionObj,
7    pub arguments: Vec<FFIArgument>,
8}
9
10impl fmt::Debug for Function {
11    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12        write!(f, "{} @ {}", self.name, self.span)
13    }
14}
15
16impl PartialEq for Function {
17    fn eq(&self, other: &Function) -> bool {
18        self.name == other.name
19    }
20}