pub struct Source {
pub tex: String,
pub spans: SpanMap,
pub revision: u64,
}Expand description
LaTeX for the typesetter plus the spans that map it back to the document.
Fields§
§tex: StringThe LaTeX, which assumes amsmath and a \hostbox macro.
spans: SpanMapByte ranges of every node, slot, and caret gap in tex.
revision: u64The editor revision this source was exported at.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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