Trait TypstDocumentTrait
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§
fn info(&self) -> &DocumentInfo
fn info(&self) -> &DocumentInfo
Get the document’s metadata.
fn 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", so this trait is not object safe.