24 lines
743 B
Rust
24 lines
743 B
Rust
//! Helpful imports for creating library functionality.
|
|
|
|
pub use std::fmt::{self, Debug, Formatter};
|
|
pub use std::hash::Hash;
|
|
pub use std::num::NonZeroUsize;
|
|
pub use std::sync::Arc;
|
|
|
|
pub use typst_macros::node;
|
|
|
|
pub use crate::diag::{with_alternative, At, Error, StrResult, TypError, TypResult};
|
|
pub use crate::eval::{
|
|
Arg, Args, Array, Cast, Dict, Func, Machine, Node, RawAlign, RawLength, RawStroke,
|
|
Scope, Smart, Value,
|
|
};
|
|
pub use crate::frame::*;
|
|
pub use crate::geom::*;
|
|
pub use crate::model::{
|
|
Content, Fold, Key, Layout, LayoutNode, Regions, Resolve, Selector, Show, ShowNode,
|
|
StyleChain, StyleMap, StyleVec,
|
|
};
|
|
pub use crate::syntax::{Span, Spanned};
|
|
pub use crate::util::{EcoString, OptionExt};
|
|
pub use crate::Context;
|