use crate::{
Abi,
BoxStr,
Parameter,
};
#[derive(Debug, Clone)]
pub struct Fn {
pub(crate) public: bool,
#[expect(unused)]
pub(crate) abi: Abi,
pub(crate) ident: BoxStr,
pub(crate) link_name: Option<BoxStr>,
#[expect(unused)]
pub(crate) parameters: Vec<Parameter>,
#[expect(unused)]
pub(crate) return_type: Option<syn::Type>,
}
impl Fn {
pub fn ident(&self) -> &str {
&self.ident
}
pub fn link_name(&self) -> Option<&str> {
self.link_name.as_deref()
}
}