pub trait NativeType {
    const NAME: &'static str;
    // Required method
    fn data() -> &'static NativeTypeData;
    // Provided method
    fn ty() -> Type { ... }
}Expand description
A Typst type that is defined by a native Rust type.
Required Associated Constants§
Required Methods§
fn data() -> &'static NativeTypeData
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.