tinymist_std::typst::foundations

Trait Chainable

pub trait Chainable {
    // Required method
    fn chain<'a>(&'a self, outer: &'a StyleChain<'_>) -> StyleChain<'a>;
}
Expand description

Things that can be attached to a style chain.

Required Methods§

fn chain<'a>(&'a self, outer: &'a StyleChain<'_>) -> StyleChain<'a>

Attach self as the first link of the chain.

Implementations on Foreign Types§

§

impl Chainable for [LazyHash<Style>]

§

fn chain<'a>(&'a self, outer: &'a StyleChain<'_>) -> StyleChain<'a>

§

impl<const N: usize> Chainable for [LazyHash<Style>; N]

§

fn chain<'a>(&'a self, outer: &'a StyleChain<'_>) -> StyleChain<'a>

Implementors§