tinymist_std::typst::foundations

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 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 ()

§

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<u64>

§

fn into_value(self) -> Value

§

impl IntoValue for NonZero<usize>

§

fn into_value(self) -> Value

§

impl IntoValue for MathClass

§

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

§

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

§

fn into_value(self) -> Value

Implementors§

§

impl IntoValue for &'static NativeElementData

§

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 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 ContextElem

§

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 Regex

§

impl IntoValue for SequenceElem

§

impl IntoValue for ShowableSelector

§

impl IntoValue for Str

§

impl IntoValue for StyledElem

§

impl IntoValue for Styles

§

impl IntoValue for Symbol

§

impl IntoValue for SymbolElem

§

impl IntoValue for TargetElem

§

impl IntoValue for Type

§

impl IntoValue for Version

§

impl IntoValue for Accent

§

impl IntoValue for AccentElem

§

impl IntoValue for AlignElem

§

impl IntoValue for AlignPointElem

§

impl IntoValue for Alignment

§

impl IntoValue for Angle

§

impl IntoValue for AttachElem

§

impl IntoValue for Attribution

§

impl IntoValue for Augment

§

impl IntoValue for Augment<Abs>

§

impl IntoValue for AugmentOffsets

§

impl IntoValue for Author

§

impl IntoValue for Axes<Length>

§

impl IntoValue for Axes<Ratio>

§

impl IntoValue for Axes<Rel>

§

impl IntoValue for Axis

§

impl IntoValue for BibliographyElem

§

impl IntoValue for Binding

§

impl IntoValue for BinomElem

§

impl IntoValue for BlockBody

§

impl IntoValue for BlockElem

§

impl IntoValue for BottomEdge

§

impl IntoValue for BottomEdgeMetric

§

impl IntoValue for BoxElem

§

impl IntoValue for CancelAngle

§

impl IntoValue for CancelElem

§

impl IntoValue for Case

§

impl IntoValue for Caseable

§

impl IntoValue for CasesElem

§

impl IntoValue for CircleElem

§

impl IntoValue for CitationForm

§

impl IntoValue for CiteElem

§

impl IntoValue for CiteGroup

§

impl IntoValue for ClassElem

§

impl IntoValue for CloseMode

§

impl IntoValue for ColbreakElem

§

impl IntoValue for Color

§

impl IntoValue for ColorSpace

§

impl IntoValue for ColumnsElem

§

impl IntoValue for Component

§

impl IntoValue for Costs

§

impl IntoValue for Counter

§

impl IntoValue for CounterDisplayElem

§

impl IntoValue for CounterKey

§

impl IntoValue for CounterState

§

impl IntoValue for Covers

§

impl IntoValue for CslSource

§

impl IntoValue for CurveClose

§

impl IntoValue for CurveComponent

§

impl IntoValue for CurveCubic

§

impl IntoValue for CurveElem

§

impl IntoValue for CurveLine

§

impl IntoValue for CurveMove

§

impl IntoValue for CurveQuad

§

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 DocumentElem

§

impl IntoValue for EllipseElem

§

impl IntoValue for Em

§

impl IntoValue for EmbedElem

§

impl IntoValue for EmbeddedFileRelationship

§

impl IntoValue for EmphElem

§

impl IntoValue for Encoding

§

impl IntoValue for EnumElem

§

impl IntoValue for EnumItem

§

impl IntoValue for EquationElem

§

impl IntoValue for EvalMode

§

impl IntoValue for ExchangeFormat

§

impl IntoValue for FigureCaption

§

impl IntoValue for FigureElem

§

impl IntoValue for FigureKind

§

impl IntoValue for FillRule

§

impl IntoValue for FirstLineIndent

§

impl IntoValue for FlushElem

§

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 FootnoteElem

§

impl IntoValue for FootnoteEntry

§

impl IntoValue for Fr

§

impl IntoValue for FracElem

§

impl IntoValue for FrameElem

§

impl IntoValue for Gradient

§

impl IntoValue for GradientStop

§

impl IntoValue for GridCell

§

impl IntoValue for GridChild

§

impl IntoValue for GridElem

§

impl IntoValue for GridFooter

§

impl IntoValue for GridHLine

§

impl IntoValue for GridHeader

§

impl IntoValue for GridItem

§

impl IntoValue for GridVLine

§

impl IntoValue for HAlignment

§

impl IntoValue for HElem

§

impl IntoValue for HeadingElem

§

impl IntoValue for HideElem

§

impl IntoValue for HighlightElem

§

impl IntoValue for HtmlAttr

§

impl IntoValue for HtmlAttrs

§

impl IntoValue for HtmlElem

§

impl IntoValue for HtmlTag

§

impl IntoValue for ImageElem

§

impl IntoValue for ImageFit

§

impl IntoValue for ImageFormat

§

impl IntoValue for ImageScaling

§

impl IntoValue for InlineElem

§

impl IntoValue for Keywords

§

impl IntoValue for Lang

§

impl IntoValue for Length

§

impl IntoValue for LimitsElem

§

impl IntoValue for LineCap

§

impl IntoValue for LineElem

§

impl IntoValue for LineJoin

§

impl IntoValue for LineNumberingScope

§

impl IntoValue for LinebreakElem

§

impl IntoValue for Linebreaks

§

impl IntoValue for LinkElem

§

impl IntoValue for LinkTarget

§

impl IntoValue for ListElem

§

impl IntoValue for ListItem

§

impl IntoValue for ListMarker

§

impl IntoValue for Location

§

impl IntoValue for LrElem

§

impl IntoValue for Margin

§

impl IntoValue for Marginal

§

impl IntoValue for MatElem

§

impl IntoValue for MathSize

§

impl IntoValue for MathVariant

§

impl IntoValue for MetadataElem

§

impl IntoValue for MidElem

§

impl IntoValue for MoveElem

§

impl IntoValue for NumberType

§

impl IntoValue for NumberWidth

§

impl IntoValue for Numbering

§

impl IntoValue for NumberingPattern

§

impl IntoValue for OpElem

§

impl IntoValue for OuterHAlignment

§

impl IntoValue for OuterVAlignment

§

impl IntoValue for OutlineElem

§

impl IntoValue for OutlineEntry

§

impl IntoValue for OutlineIndent

§

impl IntoValue for OverbraceElem

§

impl IntoValue for OverbracketElem

§

impl IntoValue for OverlineElem

§

impl IntoValue for OverlineElem

§

impl IntoValue for OverparenElem

§

impl IntoValue for OvershellElem

§

impl IntoValue for PadElem

§

impl IntoValue for PageElem

§

impl IntoValue for PagebreakElem

§

impl IntoValue for Paint

§

impl IntoValue for Paper

§

impl IntoValue for ParElem

§

impl IntoValue for ParLine

§

impl IntoValue for ParLineMarker

§

impl IntoValue for ParbreakElem

§

impl IntoValue for Parity

§

impl IntoValue for PathElem

§

impl IntoValue for PathVertex

§

impl IntoValue for PixelEncoding

§

impl IntoValue for PixelFormat

§

impl IntoValue for PlaceElem

§

impl IntoValue for PlacementScope

§

impl IntoValue for PolygonElem

§

impl IntoValue for Position

§

impl IntoValue for PrimesElem

§

impl IntoValue for QuoteElem

§

impl IntoValue for RasterFormat

§

impl IntoValue for Ratio

§

impl IntoValue for RatioComponent

§

impl IntoValue for RatioOrAngle

§

impl IntoValue for RawContent

§

impl IntoValue for RawElem

§

impl IntoValue for RawLine

§

impl IntoValue for Readable

§

impl IntoValue for RectElem

§

impl IntoValue for RefElem

§

impl IntoValue for RefForm

§

impl IntoValue for Region

§

impl IntoValue for Rel

§

impl IntoValue for Rel<Abs>

§

impl IntoValue for RelativeTo

§

impl IntoValue for RepeatElem

§

impl IntoValue for RootElem

§

impl IntoValue for RotateElem

§

impl IntoValue for RowType

§

impl IntoValue for ScaleAmount

§

impl IntoValue for ScaleElem

§

impl IntoValue for ScriptsElem

§

impl IntoValue for Side

§

impl IntoValue for Sizing

§

impl IntoValue for SkewElem

§

impl IntoValue for SmallcapsElem

§

impl IntoValue for SmartQuoteDict

§

impl IntoValue for SmartQuoteElem

§

impl IntoValue for SmartQuoteSet

§

impl IntoValue for SpaceElem

§

impl IntoValue for Spacing

§

impl IntoValue for SquareElem

§

impl IntoValue for StackChild

§

impl IntoValue for StackElem

§

impl IntoValue for State

§

impl IntoValue for StretchElem

§

impl IntoValue for StrikeElem

§

impl IntoValue for Stroke

§

impl IntoValue for Stroke<Abs>

§

impl IntoValue for StrongElem

§

impl IntoValue for StylisticSets

§

impl IntoValue for SubElem

§

impl IntoValue for SuperElem

§

impl IntoValue for Supplement

§

impl IntoValue for TableCell

§

impl IntoValue for TableChild

§

impl IntoValue for TableElem

§

impl IntoValue for TableFooter

§

impl IntoValue for TableHLine

§

impl IntoValue for TableHeader

§

impl IntoValue for TableItem

§

impl IntoValue for TableVLine

§

impl IntoValue for TagElem

§

impl IntoValue for TermItem

§

impl IntoValue for TermsElem

§

impl IntoValue for TextDir

§

impl IntoValue for TextElem

§

impl IntoValue for TextSize

§

impl IntoValue for Tiling

§

impl IntoValue for TopEdge

§

impl IntoValue for TopEdgeMetric

§

impl IntoValue for TrackSizings

§

impl IntoValue for UnderbraceElem

§

impl IntoValue for UnderbracketElem

§

impl IntoValue for UnderlineElem

§

impl IntoValue for UnderlineElem

§

impl IntoValue for UnderparenElem

§

impl IntoValue for UndershellElem

§

impl IntoValue for Url

§

impl IntoValue for VAlignment

§

impl IntoValue for VElem

§

impl IntoValue for VecElem

§

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 Celled<T>
where T: IntoValue,

§

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

§

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