pub struct DocumentBackend { /* private fields */ }Expand description
A shared document backend: one event hub, one pump thread, one long-operation manager, for any number of documents.
Cheap to clone (an Arc), and every clone names the same backend. Build one
per project, or per whatever scope wants its documents to share a thread, and
create documents in it with
TextDocument::new_in.
Implementations§
Trait Implementations§
Source§impl Clone for DocumentBackend
impl Clone for DocumentBackend
Source§fn clone(&self) -> DocumentBackend
fn clone(&self) -> DocumentBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentBackend
impl Debug for DocumentBackend
Auto Trait Implementations§
impl !RefUnwindSafe for DocumentBackend
impl !UnwindSafe for DocumentBackend
impl Freeze for DocumentBackend
impl Send for DocumentBackend
impl Sync for DocumentBackend
impl Unpin for DocumentBackend
impl UnsafeUnpin for DocumentBackend
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