tinymist_std::typst::foundations

Trait Capable

pub unsafe trait Capable {
    // Required method
    fn vtable(capability: TypeId) -> Option<NonNull<()>>;
}
Expand description

Used to cast an element to a trait object for a trait it implements.

§Safety

If the vtable function returns Some(p), then p must be a valid pointer to a vtable of Packed<Self> w.r.t to the trait C where capability is TypeId::of::<dyn C>().

Required Methods§

fn vtable(capability: TypeId) -> Option<NonNull<()>>

Get the pointer to the vtable for the given capability / trait.

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.

Implementors§

§

impl Capable for ContextElem

§

impl Capable for SequenceElem

§

impl Capable for StyledElem

§

impl Capable for SymbolElem

§

impl Capable for TargetElem

§

impl Capable for AccentElem

§

impl Capable for AlignElem

§

impl Capable for AlignPointElem

§

impl Capable for AttachElem

§

impl Capable for BibliographyElem

§

impl Capable for BinomElem

§

impl Capable for BlockElem

§

impl Capable for BoxElem

§

impl Capable for CancelElem

§

impl Capable for CasesElem

§

impl Capable for CircleElem

§

impl Capable for CiteElem

§

impl Capable for CiteGroup

§

impl Capable for ClassElem

§

impl Capable for ColbreakElem

§

impl Capable for ColumnsElem

§

impl Capable for CounterDisplayElem

§

impl Capable for CurveClose

§

impl Capable for CurveCubic

§

impl Capable for CurveElem

§

impl Capable for CurveLine

§

impl Capable for CurveMove

§

impl Capable for CurveQuad

§

impl Capable for DocumentElem

§

impl Capable for EllipseElem

§

impl Capable for EmbedElem

§

impl Capable for EmphElem

§

impl Capable for EnumElem

§

impl Capable for EnumItem

§

impl Capable for EquationElem

§

impl Capable for FigureCaption

§

impl Capable for FigureElem

§

impl Capable for FlushElem

§

impl Capable for FootnoteElem

§

impl Capable for FootnoteEntry

§

impl Capable for FracElem

§

impl Capable for FrameElem

§

impl Capable for GridCell

§

impl Capable for GridElem

§

impl Capable for GridFooter

§

impl Capable for GridHLine

§

impl Capable for GridHeader

§

impl Capable for GridVLine

§

impl Capable for HElem

§

impl Capable for HeadingElem

§

impl Capable for HideElem

§

impl Capable for HighlightElem

§

impl Capable for HtmlElem

§

impl Capable for ImageElem

§

impl Capable for InlineElem

§

impl Capable for LimitsElem

§

impl Capable for LineElem

§

impl Capable for LinebreakElem

§

impl Capable for LinkElem

§

impl Capable for ListElem

§

impl Capable for ListItem

§

impl Capable for LrElem

§

impl Capable for MatElem

§

impl Capable for MetadataElem

§

impl Capable for MidElem

§

impl Capable for MoveElem

§

impl Capable for OpElem

§

impl Capable for OutlineElem

§

impl Capable for OutlineEntry

§

impl Capable for OverbraceElem

§

impl Capable for OverbracketElem

§

impl Capable for OverlineElem

§

impl Capable for OverlineElem

§

impl Capable for OverparenElem

§

impl Capable for OvershellElem

§

impl Capable for PadElem

§

impl Capable for PageElem

§

impl Capable for PagebreakElem

§

impl Capable for ParElem

§

impl Capable for ParLine

§

impl Capable for ParLineMarker

§

impl Capable for ParbreakElem

§

impl Capable for PathElem

§

impl Capable for PlaceElem

§

impl Capable for PolygonElem

§

impl Capable for PrimesElem

§

impl Capable for QuoteElem

§

impl Capable for RawElem

§

impl Capable for RawLine

§

impl Capable for RectElem

§

impl Capable for RefElem

§

impl Capable for RepeatElem

§

impl Capable for RootElem

§

impl Capable for RotateElem

§

impl Capable for ScaleElem

§

impl Capable for ScriptsElem

§

impl Capable for SkewElem

§

impl Capable for SmallcapsElem

§

impl Capable for SmartQuoteElem

§

impl Capable for SpaceElem

§

impl Capable for SquareElem

§

impl Capable for StackElem

§

impl Capable for StretchElem

§

impl Capable for StrikeElem

§

impl Capable for StrongElem

§

impl Capable for SubElem

§

impl Capable for SuperElem

§

impl Capable for TableCell

§

impl Capable for TableElem

§

impl Capable for TableFooter

§

impl Capable for TableHLine

§

impl Capable for TableHeader

§

impl Capable for TableVLine

§

impl Capable for TagElem

§

impl Capable for TermItem

§

impl Capable for TermsElem

§

impl Capable for TextElem

§

impl Capable for UnderbraceElem

§

impl Capable for UnderbracketElem

§

impl Capable for UnderlineElem

§

impl Capable for UnderlineElem

§

impl Capable for UnderparenElem

§

impl Capable for UndershellElem

§

impl Capable for VElem

§

impl Capable for VecElem