pub struct SpanSlice {
pub start: u32,
pub len: u32,
}Expand description
A range of InlineSpan elements stored contiguously in the span pool.
Used by list sections to avoid per-list Vec<InlineSpan> heap allocations.
Fields§
§start: u32§len: u32Implementations§
Trait Implementations§
Source§impl<const MAX_INLINE_DEPTH: u8, const INLINE_STACK_CAP: usize> Index<SpanSlice> for MarkdownFile<'_, MAX_INLINE_DEPTH, INLINE_STACK_CAP>
impl<const MAX_INLINE_DEPTH: u8, const INLINE_STACK_CAP: usize> Index<SpanSlice> for MarkdownFile<'_, MAX_INLINE_DEPTH, INLINE_STACK_CAP>
Source§type Output = [InlineSpan]
type Output = [InlineSpan]
The returned type after indexing.
impl Copy for SpanSlice
impl Eq for SpanSlice
impl StructuralPartialEq for SpanSlice
Auto Trait Implementations§
impl Freeze for SpanSlice
impl RefUnwindSafe for SpanSlice
impl Send for SpanSlice
impl Sync for SpanSlice
impl Unpin for SpanSlice
impl UnsafeUnpin for SpanSlice
impl UnwindSafe for SpanSlice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more