Expose function details

This commit is contained in:
Myriad-Dreamin 2024-03-08 13:54:05 +08:00
parent efdb75558f
commit 8ccda48c9a
2 changed files with 7 additions and 2 deletions

View File

@ -144,7 +144,7 @@ pub struct Func {
/// The different kinds of function representations.
#[derive(Clone, PartialEq, Hash)]
enum Repr {
pub enum Repr {
/// A native Rust function.
Native(Static<NativeFuncData>),
/// A function for an element.
@ -353,6 +353,11 @@ impl Func {
}
self
}
/// The function's repr
pub fn inner(&self) -> &Repr {
&self.repr
}
}
#[scope]

View File

@ -20,7 +20,7 @@ mod duration;
mod element;
mod fields;
mod float;
mod func;
pub mod func;
mod int;
mod label;
mod module;