pub struct File {
pub path: RelativePathBuf,
pub contents: Vec<u8>,
pub new: bool,
}
Expand description
A file representation.
Fields§
§path: RelativePathBuf
The path of the file in the fs.
contents: Vec<u8>
The byte contents of the file.
new: bool
Flag indicating whether the file is newly created and hasn’t existed before its current state for saving purposes.
Implementations§
Trait Implementations§
Source§impl Ord for File
impl Ord for File
Source§impl PartialOrd for File
impl PartialOrd for File
impl Eq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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