pub struct DocumentState<T> { /* private fields */ }Expand description
A binding’s document-wide state, one value of the Value table: bound globally, as the \global macros and registers
of the package it stands for are, so a rollback (begin_assignment_journal: a rehearsal, a title-page check) puts it
back, where a thread-local would keep what the discarded run did (FRONTMATTER_SINGLE_ENGINE_PLAN.md “What a rollback
leaves”). It changes in place, unless an open journal holds it: the first change under a journal works on a copy, so a
list a binding grows costs no more than a thread-local’s outside one.
Implementations§
Source§impl<T: Clone + Default + 'static> DocumentState<T>
impl<T: Clone + Default + 'static> DocumentState<T>
Auto Trait Implementations§
impl<T> Freeze for DocumentState<T>
impl<T> RefUnwindSafe for DocumentState<T>
impl<T> Send for DocumentState<T>
impl<T> Sync for DocumentState<T>
impl<T> Unpin for DocumentState<T>
impl<T> UnsafeUnpin for DocumentState<T>
impl<T> UnwindSafe for DocumentState<T>
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