pub struct Span {
pub line: u16,
pub left: u16,
pub right: u16,
pub cells: Vec<Cell>,
pub combining: BTreeMap<usize, NonZeroU32>,
pub links: BTreeMap<usize, NonZeroU32>,
}Expand description
A damaged column run on one line, with its cells.
combining and links map a span-relative column to its frame-local index
(1-based) — combining into Frame::side_table, links into
Frame::link_table. These are the per-cell extra/link references lifted
out of the cell now that combining clusters (#45) and hyperlinks (#46) live in
per-row maps. A column is present iff its cell carries the matching bit; on the
wire they are the cell record’s extra/link fields, so the bytes are
unchanged.
Fields§
§line: u16§left: u16§right: u16§cells: Vec<Cell>§combining: BTreeMap<usize, NonZeroU32>§links: BTreeMap<usize, NonZeroU32>Trait Implementations§
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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