pub struct DocumentState {
pub line_count: usize,
pub char_count: usize,
pub byte_count: usize,
pub is_modified: bool,
pub version: u64,
}Expand description
Document state
Fields§
§line_count: usizeTotal documentLine count
char_count: usizeTotal document character count
byte_count: usizeTotal document byte count
is_modified: boolWhether document has been modified
version: u64Document version number (incremented after each modification)
Trait Implementations§
Source§impl Clone for DocumentState
impl Clone for DocumentState
Auto Trait Implementations§
impl Forget for DocumentState
impl Freeze for DocumentState
impl Move for DocumentState
impl RefUnwindSafe for DocumentState
impl Send for DocumentState
impl Sync for DocumentState
impl Unpin for DocumentState
impl UnsafeUnpin for DocumentState
impl UnwindSafe for DocumentState
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