struct OpenDocument {
text: String,
version: i32,
path: Option<PathBuf>,
}Fields§
§text: String§version: i32§path: Option<PathBuf>Where the document is saved; None for one that isn’t a file, such as an untitled
buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenDocument
impl RefUnwindSafe for OpenDocument
impl Send for OpenDocument
impl Sync for OpenDocument
impl Unpin for OpenDocument
impl UnsafeUnpin for OpenDocument
impl UnwindSafe for OpenDocument
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