pub trait TypstDocumentTrait: Sealed {
// Required methods
fn info(&self) -> &DocumentInfo;
fn introspector(&self) -> &Introspector;
}Expand description
A document is what results from compilation.
Required Methods§
Sourcefn info(&self) -> &DocumentInfo
fn info(&self) -> &DocumentInfo
Get the document’s metadata.
Sourcefn introspector(&self) -> &Introspector
fn introspector(&self) -> &Introspector
Get the document’s introspector.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".