Trait LinkedNodeExt

Source
pub trait LinkedNodeExt: Sized {
    // Required method
    fn leaf_at_compat(&self, cursor: usize) -> Option<Self>;
}
Expand description

The LinkedNodeExt trait is designed for compatibility between new and old versions of typst.

Required Methods§

Source

fn leaf_at_compat(&self, cursor: usize) -> Option<Self>

Get the leaf at the specified byte offset.

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.

Implementations on Foreign Types§

Source§

impl LinkedNodeExt for LinkedNode<'_>

Source§

fn leaf_at_compat(&self, cursor: usize) -> Option<Self>

Implementors§