Trait NativeFunc
pub trait NativeFunc {
// Required method
fn data() -> &'static NativeFuncData;
// Provided method
fn func() -> Func { ... }
}
Expand description
A Typst function that is defined by a native Rust type that shadows a native Rust function.
Required Methods§
fn data() -> &'static NativeFuncData
fn data() -> &'static NativeFuncData
Get the function data for the native Rust function.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.