pub struct Document {
pub blocks: Vec<Block>,
pub progression: Progression,
}Expand description
A whole document: a sequence of blocks that advance in one direction.
Layout is the vertical primitive — one run of text as columns of
slots. A document is more than that, because not everything in it wants to
be vertical. Latin-majority prose and program source read horizontally,
and a table is a grid. Those decisions belong here, as data, so that every
adapter reads the same answer instead of each inventing one.
Fields§
§blocks: Vec<Block>§progression: ProgressionTrait Implementations§
impl Eq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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