Trait IntoValue

pub trait IntoValue {
    // Required method
    fn into_value(self) -> Value;
}
Expand description

Cast a Rust type into a Typst Value.

See also: Reflect.

Required Methods§

fn into_value(self) -> Value

Cast this type into a value.

Implementations on Foreign Types§

§

impl IntoValue for &str

§

fn into_value(self) -> Value

§

impl IntoValue for (&Str, &Value)

§

fn into_value(self) -> Value

§

impl IntoValue for bool

§

fn into_value(self) -> Value

§

impl IntoValue for char

§

fn into_value(self) -> Value

§

impl IntoValue for f64

§

fn into_value(self) -> Value

§

impl IntoValue for i8

§

fn into_value(self) -> Value

§

impl IntoValue for i16

§

fn into_value(self) -> Value

§

impl IntoValue for i32

§

fn into_value(self) -> Value

§

impl IntoValue for i64

§

fn into_value(self) -> Value

§

impl IntoValue for i128

§

fn into_value(self) -> Value

§

impl IntoValue for isize

§

fn into_value(self) -> Value

§

impl IntoValue for u8

§

fn into_value(self) -> Value

§

impl IntoValue for u16

§

fn into_value(self) -> Value

§

impl IntoValue for u32

§

fn into_value(self) -> Value

§

impl IntoValue for u64

§

fn into_value(self) -> Value

§

impl IntoValue for u128

§

fn into_value(self) -> Value

§

impl IntoValue for ()

§

fn into_value(self) -> Value

§

impl IntoValue for usize

§

fn into_value(self) -> Value

§

impl IntoValue for String

§

fn into_value(self) -> Value

§

impl IntoValue for NonZero<i64>

§

fn into_value(self) -> Value

§

impl IntoValue for NonZero<isize>

§

fn into_value(self) -> Value

§

impl IntoValue for NonZero<u32>

§

fn into_value(self) -> Value

§

impl IntoValue for NonZero<u64>

§

fn into_value(self) -> Value

§

impl IntoValue for NonZero<usize>

§

fn into_value(self) -> Value

§

impl IntoValue for HtmlAttr

§

fn into_value(self) -> Value

§

impl IntoValue for HtmlAttrs

§

fn into_value(self) -> Value

§

impl IntoValue for HtmlTag

§

fn into_value(self) -> Value

§

impl IntoValue for MathClass

§

fn into_value(self) -> Value

§

impl IntoValue for SyntaxMode

§

fn into_value(self) -> Value

§

impl<T> IntoValue for Cow<'_, T>
where T: IntoValue + Clone,

§

fn into_value(self) -> Value

§

impl<T> IntoValue for Option<T>
where T: IntoValue,

§

fn into_value(self) -> Value

§

impl<T> IntoValue for fn() -> T
where T: IntoValue,

§

fn into_value(self) -> Value

§

impl<T> IntoValue for Arc<T>
where T: Clone + IntoValue,

§

fn into_value(self) -> Value

§

impl<T> IntoValue for Vec<T>
where T: IntoValue,

§

fn into_value(self) -> Value

§

impl<T> IntoValue for Spanned<T>
where T: IntoValue,

§

fn into_value(self) -> Value

Implementors§

§

impl IntoValue for &'static NativeFuncData

§

impl IntoValue for &'static NativeTypeData

§

impl IntoValue for Datetime

§

impl IntoValue for DecNum

§

impl IntoValue for Num

§

impl IntoValue for Endianness

§

impl IntoValue for Never

§

impl IntoValue for Replacement

§

impl IntoValue for Selector

§

impl IntoValue for StrPattern

§

impl IntoValue for Target

§

impl IntoValue for UnicodeNormalForm

§

impl IntoValue for Value

§

impl IntoValue for EcoString

§

impl IntoValue for Bytes

§

impl IntoValue for Abs

§

impl IntoValue for Dict

§

impl IntoValue for Args

§

impl IntoValue for Array

§

impl IntoValue for AutoValue

§

impl IntoValue for Closure

§

impl IntoValue for Content

§

impl IntoValue for Decimal

§

impl IntoValue for DisplayPattern

§

impl IntoValue for Duration

§

impl IntoValue for Element

§

impl IntoValue for Func

§

impl IntoValue for Label

§

impl IntoValue for LocatableSelector

§

impl IntoValue for Module

§

impl IntoValue for NoneValue

§

impl IntoValue for PluginFunc

§

impl IntoValue for PositiveF64

§

impl IntoValue for Regex

§

impl IntoValue for ShowableSelector

§

impl IntoValue for Str

§

impl IntoValue for Styles

§

impl IntoValue for Symbol

§

impl IntoValue for Type

§

impl IntoValue for Version

§

impl IntoValue for Accent

§

impl IntoValue for Alignment

§

impl IntoValue for Angle

§

impl IntoValue for ArtifactKind

§

impl IntoValue for AttachedFileRelationship

§

impl IntoValue for Attribution

§

impl IntoValue for Augment

§

impl IntoValue for Augment<Abs>

§

impl IntoValue for AugmentOffsets

§

impl IntoValue for Author

§

impl IntoValue for Axis

§

impl IntoValue for Binding

§

impl IntoValue for BlockBody

§

impl IntoValue for BottomEdge

§

impl IntoValue for BottomEdgeMetric

§

impl IntoValue for CancelAngle

§

impl IntoValue for Case

§

impl IntoValue for Caseable

§

impl IntoValue for CitationForm

§

impl IntoValue for CloseMode

§

impl IntoValue for Color

§

impl IntoValue for ColorSpace

§

impl IntoValue for Component

§

impl IntoValue for Costs

§

impl IntoValue for Counter

§

impl IntoValue for CounterKey

§

impl IntoValue for CounterState

§

impl IntoValue for Covers

§

impl IntoValue for CslSource

§

impl IntoValue for CurveComponent

§

impl IntoValue for DashLength

§

impl IntoValue for DashPattern

§

impl IntoValue for DataSource

§

impl IntoValue for Delimiter

§

impl IntoValue for Delimiter

§

impl IntoValue for DelimiterPair

§

impl IntoValue for Destination

§

impl IntoValue for Dir

§

impl IntoValue for Em

§

impl IntoValue for Encoding

§

impl IntoValue for ExchangeFormat

§

impl IntoValue for FigureKind

§

impl IntoValue for FillRule

§

impl IntoValue for FirstLineIndent

§

impl IntoValue for FontFamily

§

impl IntoValue for FontFeatures

§

impl IntoValue for FontList

§

impl IntoValue for FontStretch

§

impl IntoValue for FontStyle

§

impl IntoValue for FontWeight

§

impl IntoValue for FootnoteBody

§

impl IntoValue for Fr

§

impl IntoValue for FracStyle

§

impl IntoValue for Gradient

§

impl IntoValue for GradientStop

§

impl IntoValue for GridChild

§

impl IntoValue for GridItem

§

impl IntoValue for HAlignment

§

impl IntoValue for ImageFit

§

impl IntoValue for ImageFormat

§

impl IntoValue for ImageScaling

§

impl IntoValue for JustificationLimits

§

impl IntoValue for Keywords

§

impl IntoValue for Lang

§

impl IntoValue for Length

§

impl IntoValue for LineCap

§

impl IntoValue for LineJoin

§

impl IntoValue for LineNumberingScope

§

impl IntoValue for Linebreaks

§

impl IntoValue for LinkTarget

§

impl IntoValue for ListMarker

§

impl IntoValue for Location

§

impl IntoValue for Margin

§

impl IntoValue for MathSize

§

impl IntoValue for NumberType

§

impl IntoValue for NumberWidth

§

impl IntoValue for Numbering

§

impl IntoValue for NumberingPattern

§

impl IntoValue for OuterHAlignment

§

impl IntoValue for OuterVAlignment

§

impl IntoValue for OutlineIndent

§

impl IntoValue for Paint

§

impl IntoValue for Paper

§

impl IntoValue for Parity

§

impl IntoValue for PathVertex

§

impl IntoValue for PixelEncoding

§

impl IntoValue for PixelFormat

§

impl IntoValue for PlacementScope

§

impl IntoValue for Position

§

impl IntoValue for RasterFormat

§

impl IntoValue for Ratio

§

impl IntoValue for RatioComponent

§

impl IntoValue for RatioOrAngle

§

impl IntoValue for RawContent

§

impl IntoValue for Readable

§

impl IntoValue for RefForm

§

impl IntoValue for Region

§

impl IntoValue for Rel

§

impl IntoValue for Rel<Abs>

§

impl IntoValue for RelativeTo

§

impl IntoValue for RowType

§

impl IntoValue for ScaleAmount

§

impl IntoValue for Side

§

impl IntoValue for Sizing

§

impl IntoValue for SmartQuoteDict

§

impl IntoValue for SmartQuoteSet

§

impl IntoValue for Spacing

§

impl IntoValue for StackChild

§

impl IntoValue for State

§

impl IntoValue for Stroke

§

impl IntoValue for Stroke<Abs>

§

impl IntoValue for StylisticSets

§

impl IntoValue for Supplement

§

impl IntoValue for TableChild

§

impl IntoValue for TableHeaderScope

§

impl IntoValue for TableItem

§

impl IntoValue for TextDir

§

impl IntoValue for TextSize

§

impl IntoValue for Tiling

§

impl IntoValue for TopEdge

§

impl IntoValue for TopEdgeMetric

§

impl IntoValue for TrackSizings

§

impl IntoValue for Url

§

impl IntoValue for VAlignment

§

impl IntoValue for VectorFormat

§

impl IntoValue for VerticalFontMetric

§

impl IntoValue for WeightedColor

§

impl IntoValue for WritingScript

§

impl<H, V> IntoValue for SpecificAlignment<H, V>
where HAlignment: From<H>, VAlignment: From<V>,

§

impl<S, D> IntoValue for Derived<S, D>
where S: IntoValue,

§

impl<T> IntoValue for Smart<T>
where T: IntoValue,

§

impl<T> IntoValue for OneOrMultiple<T>
where T: IntoValue + Clone,

§

impl<T> IntoValue for Packed<T>

§

impl<T> IntoValue for Axes<T>
where T: IntoValue,

§

impl<T> IntoValue for Celled<T>
where T: IntoValue,

§

impl<T> IntoValue for Corners<Option<T>>
where T: PartialEq + IntoValue,

§

impl<T> IntoValue for Limits<T>
where T: IntoValue,

§

impl<T> IntoValue for Sides<Option<T>>
where T: PartialEq + IntoValue,

§

impl<T> IntoValue for T
where T: NativeElement,

§

impl<T, const N: usize> IntoValue for SmallVec<[T; N]>
where T: IntoValue,