pub struct DocumentCache { /* private fields */ }Implementations§
Source§impl DocumentCache
impl DocumentCache
pub fn decode_event( &mut self, text: &str, ) -> Result<Event<Arc<DiffSnapshot>>, ProtocolError>
pub fn apply_event( &mut self, message: Event<DocumentUpdate>, ) -> Result<Event<Arc<DiffSnapshot>>, ProtocolError>
pub fn apply( &mut self, update: &DocumentUpdate, ) -> Result<DiffSnapshot, ProtocolError>
Trait Implementations§
Source§impl Debug for DocumentCache
impl Debug for DocumentCache
Source§impl Default for DocumentCache
impl Default for DocumentCache
Source§fn default() -> DocumentCache
fn default() -> DocumentCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocumentCache
impl RefUnwindSafe for DocumentCache
impl Send for DocumentCache
impl Sync for DocumentCache
impl Unpin for DocumentCache
impl UnsafeUnpin for DocumentCache
impl UnwindSafe for DocumentCache
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