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§
Sourcefn leaf_at_compat(&self, cursor: usize) -> Option<Self>
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.