pub unsafe trait NativeElement:
Debug
+ Clone
+ Hash
+ Construct
+ Set
+ Send
+ Sync
+ 'static {
const ELEM: Element;
// Provided method
fn pack(self) -> Content { ... }
}Expand description
A Typst element that is defined by a native Rust type.
§Safety
ELEM must hold the correct Element for Self.
Required Associated Constants§
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.