Merge 8ccda48c9ac6f8fb995b724c13c904ef6b73b363 into 9b09146a6b5e936966ed7ee73bce9dd2df3810ae

This commit is contained in:
Myriad-Dreamin 2025-05-06 14:16:09 +00:00 committed by GitHub
commit e31010ea34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

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

View File

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