pub struct NotepadTabStat {Show 21 fields
pub tabstate_path: Option<String>,
pub signature: [u8; 2],
pub seq_number: u64,
pub is_saved_file: bool,
pub path_size: u64,
pub path: Option<String>,
pub file_size: Option<u64>,
pub encoding: Option<Encoding>,
pub cr_type: Option<CRType>,
pub last_write_time: Option<FileTime>,
pub file_hash: Option<String>,
pub unknown1: Option<[u8; 2]>,
pub cursor_start: Option<u64>,
pub cursor_end: Option<u64>,
pub config_block: ConfigBlock,
pub file_content_size: u64,
pub file_content: String,
pub contain_unsaved_data: bool,
pub checksum: String,
pub unsaved_chunks: Option<UnsavedChunks>,
pub unsaved_chunks_str: Option<String>,
}Expand description
Represents the structure for TabState files
Fields§
§tabstate_path: Option<String>§signature: [u8; 2]§seq_number: u64§is_saved_file: bool§path_size: u64§path: Option<String>§file_size: Option<u64>§encoding: Option<Encoding>§cr_type: Option<CRType>§last_write_time: Option<FileTime>§file_hash: Option<String>§unknown1: Option<[u8; 2]>§cursor_start: Option<u64>§cursor_end: Option<u64>§config_block: ConfigBlock§file_content_size: u64§file_content: String§contain_unsaved_data: bool§checksum: String§unsaved_chunks: Option<UnsavedChunks>§unsaved_chunks_str: Option<String>Implementations§
Source§impl NotepadTabStat
impl NotepadTabStat
Sourcepub fn from_path(path: &str) -> Result<Self, NotepadErrors>
pub fn from_path(path: &str) -> Result<Self, NotepadErrors>
Read the file from path and use from_reader to parse it
Sourcepub fn from_reader<R: Read>(reader: &mut R) -> Result<Self, NotepadErrors>
pub fn from_reader<R: Read>(reader: &mut R) -> Result<Self, NotepadErrors>
Parse data from reader
Trait Implementations§
Source§impl Debug for NotepadTabStat
impl Debug for NotepadTabStat
Source§impl Default for NotepadTabStat
impl Default for NotepadTabStat
Auto Trait Implementations§
impl Freeze for NotepadTabStat
impl RefUnwindSafe for NotepadTabStat
impl Send for NotepadTabStat
impl Sync for NotepadTabStat
impl Unpin for NotepadTabStat
impl UnwindSafe for NotepadTabStat
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