Skip to main content

install_context

Function install_context 

Source
pub fn install_context(ctx: CiteContext) -> CiteScope
Expand description

Install ctx as the ambient context for the current thread for the lifetime of the returned guard. Renderers call this at the top of their entrypoint so nested render_block calls can resolve inline cites + the bibliography without threading the context through every signature.