pub struct Document { /* private fields */ }Expand description
A rich display’s document: the main window’s and each pane’s, checked,
as a list of Events in the order they were shown. What is written
to a pane is gathered until the pane is shown (pane_flush), or until
something else is written, so that it comes as one event.
Implementations§
Source§impl Document
impl Document
Sourcepub fn pane_write(&mut self, id: u32, markup: &str)
pub fn pane_write(&mut self, id: u32, markup: &str)
What the program wrote to a text pane.
Sourcepub fn pane_flush(&mut self)
pub fn pane_flush(&mut self)
The panes are to show what they have been given.
Sourcepub fn pane_created(&mut self, id: u32)
pub fn pane_created(&mut self, id: u32)
A pane was made.
Sourcepub fn pane_deleted(&mut self, id: u32)
pub fn pane_deleted(&mut self, id: u32)
A pane was removed.
Sourcepub fn pane_cleared(&mut self, id: u32)
pub fn pane_cleared(&mut self, id: u32)
A pane’s text was removed: what it is given next starts afresh.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Document
impl Freeze for Documentwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Item>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<(String, ())>: Freeze,
PhantomData<(u32, Checker)>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<Event>: Freeze,
impl Move for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Documentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
PhantomData<(u32, Checker)>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<Event>: UnsafeUnpin,
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