mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Merge 8ccda48c9ac6f8fb995b724c13c904ef6b73b363 into 9b09146a6b5e936966ed7ee73bce9dd2df3810ae
This commit is contained in:
commit
e31010ea34
@ -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]
|
||||
|
@ -20,7 +20,7 @@ mod duration;
|
||||
mod element;
|
||||
mod fields;
|
||||
mod float;
|
||||
mod func;
|
||||
pub mod func;
|
||||
mod int;
|
||||
mod label;
|
||||
mod module;
|
||||
|
Loading…
x
Reference in New Issue
Block a user