FromTypst

Trait FromTypst 

Source
pub trait FromTypst<T>: Sized {
    // Required method
    fn from_typst(value: T) -> Self;
}

Required Methods§

Source

fn from_typst(value: T) -> Self

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§

Source§

impl FromTypst<Rgba8Item> for Color

Source§

impl FromTypst<Scalar> for Scalar

Source§

fn from_typst(scalar: Scalar) -> Self

Source§

impl<T, U> FromTypst<Axes<T>> for Axes<U>
where T: IntoTypst<U>,

Source§

fn from_typst(axes: Axes<T>) -> Self

Implementors§

Source§

impl FromTypst<ColorSpace> for ColorSpace

Source§

impl FromTypst<Abs> for reflexo_typst2vec::convert::Scalar

Source§

impl FromTypst<Angle> for reflexo_typst2vec::convert::Scalar

Source§

impl FromTypst<Point> for Point

Source§

impl FromTypst<Ratio> for reflexo_typst2vec::convert::Scalar

Source§

impl FromTypst<Transform> for Transform

Source§

impl FromTypst<Font> for FontItem

Source§

impl FromTypst<Image> for Image

Collect image data from typst::visualize::Image.

Source§

impl FromTypst<Scalar> for reflexo_typst2vec::convert::Scalar

Source§

impl<U, T> FromTypst<Axes<U>> for reflexo_typst2vec::convert::Axes<T>
where U: IntoTypst<T>,