Trait Repr

pub trait Repr {
    // Required method
    fn repr(&self) -> EcoString;
}
Expand description

A trait that defines the repr of a Typst value.

Required Methods§

fn repr(&self) -> EcoString

Return the debug representation of the value.

Implementations on Foreign Types§

§

impl Repr for bool

§

fn repr(&self) -> EcoString

§

impl Repr for char

§

fn repr(&self) -> EcoString

§

impl Repr for f64

§

fn repr(&self) -> EcoString

§

impl Repr for i64

§

fn repr(&self) -> EcoString

§

impl Repr for str

§

fn repr(&self) -> EcoString

Implementors§

§

impl Repr for Datetime

§

impl Repr for Selector

§

impl Repr for Value

§

impl Repr for EcoString

§

impl Repr for Bytes

§

impl Repr for Abs

§

impl Repr for Dict

§

impl Repr for Arg

§

impl Repr for Args

§

impl Repr for Array

§

impl Repr for AutoValue

§

impl Repr for Content

§

impl Repr for Decimal

§

impl Repr for Duration

§

impl Repr for Dynamic

§

impl Repr for Element

§

impl Repr for Func

§

impl Repr for Label

§

impl Repr for Module

§

impl Repr for NoneValue

§

impl Repr for Regex

§

impl Repr for SequenceElem

§

impl Repr for Str

§

impl Repr for StyledElem

§

impl Repr for Styles

§

impl Repr for Symbol

§

impl Repr for SymbolElem

§

impl Repr for Type

§

impl Repr for Version

§

impl Repr for Alignment

§

impl Repr for Angle

§

impl Repr for Color

§

impl Repr for ConicGradient

§

impl Repr for Counter

§

impl Repr for CounterKey

§

impl Repr for Destination

§

impl Repr for Dir

§

impl Repr for Em

§

impl Repr for FontStretch

§

impl Repr for Fr

§

impl Repr for Gradient

§

impl Repr for HAlignment

§

impl Repr for Length

§

impl Repr for LineCap

§

impl Repr for LineJoin

§

impl Repr for LinearGradient

§

impl Repr for Location

§

impl Repr for Paint

§

impl Repr for RadialGradient

§

impl Repr for Ratio

§

impl Repr for SpaceElem

§

impl Repr for State

§

impl Repr for TextElem

§

impl Repr for Tiling

§

impl Repr for VAlignment

§

impl<T> Repr for DashLength<T>
where T: Numeric + Repr,

§

impl<T> Repr for Rel<T>
where T: Numeric + Repr,

§

impl<T> Repr for Stroke<T>
where T: Numeric + Repr,

§

impl<T, DT> Repr for DashPattern<T, DT>
where T: Numeric + Repr, DT: Repr,