| 32 | } |
| 33 | |
| 34 | struct File { |
| 35 | original: Vec<u8>, // Original contents of the file |
| 36 | add: Vec<u8>, // Add buffer |
| 37 | pieces: Vec<Piece>, |
| 38 | cursor: Cursor, |
| 39 | path: String, |
| 40 | changed: bool, // Changed since last save? |
| 41 | |
| 42 | // Describe where to begin display |
| 43 | display_start: Cursor, |
| 44 | line_start: usize, |
| 45 | } |
| 46 | |
| 47 | impl File { |
| 48 | /// Open an existing file. If it doesn't exist return an empty File. |
nothing calls this directly
no outgoing calls
no test coverage detected