#[non_exhaustive]pub struct Update {
pub changed: bool,
pub exit: Option<ExitDir>,
pub close: bool,
pub entered_host_box: Option<HostBoxEntry>,
pub needs_redraw: bool,
pub reminted: Vec<(u32, u32)>,
}Expand description
What one session call did, for the host to act on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.changed: boolThe document changed.
exit: Option<ExitDir>The caret tried to leave the formula in this direction.
close: boolDeleting in an empty formula asks the host to end math mode.
entered_host_box: Option<HostBoxEntry>Motion stopped in front of a host box, see Session::step_over_host_box.
needs_redraw: boolThe document, caret, selection, or menu changed, so the view should be drawn again.
reminted: Vec<(u32, u32)>(old, new) for every host box a paste gave a fresh token, in document order.
Trait Implementations§
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
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