Trait TypstDocumentTrait

Source
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§

Source

fn info(&self) -> &DocumentInfo

Get the document’s metadata.

Source

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.

Implementors§