tinymist_std::typst::foundations

Trait NativeScope

pub trait NativeScope {
    // Required methods
    fn constructor() -> Option<&'static NativeFuncData>;
    fn scope() -> Scope;
}
Expand description

Defines the associated scope of a Rust type.

Required Methods§

fn constructor() -> Option<&'static NativeFuncData>

The constructor function for the type, if any.

fn scope() -> Scope

Get the associated scope for the type.

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.

Implementations on Foreign Types§

§

impl NativeScope for f64

§

impl NativeScope for i64

Implementors§

§

impl NativeScope for Datetime

§

impl NativeScope for Selector

§

impl NativeScope for Bytes

§

impl NativeScope for Dict

§

impl NativeScope for Args

§

impl NativeScope for Array

§

impl NativeScope for Content

§

impl NativeScope for Decimal

§

impl NativeScope for Duration

§

impl NativeScope for Func

§

impl NativeScope for Label

§

impl NativeScope for Regex

§

impl NativeScope for Str

§

impl NativeScope for Symbol

§

impl NativeScope for Type

§

impl NativeScope for Version

§

impl NativeScope for Alignment

§

impl NativeScope for Angle

§

impl NativeScope for Color

§

impl NativeScope for Counter

§

impl NativeScope for CurveElem

§

impl NativeScope for Dir

§

impl NativeScope for EnumElem

§

impl NativeScope for FigureElem

§

impl NativeScope for FootnoteElem

§

impl NativeScope for Gradient

§

impl NativeScope for GridElem

§

impl NativeScope for ImageElem

§

impl NativeScope for Length

§

impl NativeScope for ListElem

§

impl NativeScope for Location

§

impl NativeScope for OutlineElem

§

impl NativeScope for OutlineEntry

§

impl NativeScope for ParElem

§

impl NativeScope for PlaceElem

§

impl NativeScope for PolygonElem

§

impl NativeScope for RawElem

§

impl NativeScope for State

§

impl NativeScope for Stroke

§

impl NativeScope for TableElem

§

impl NativeScope for TermsElem

§

impl NativeScope for Tiling