pub struct DatFile<S> {
pub file_path: PathBuf,
pub project_stations: Vec<Station>,
/* private fields */
}Fields§
§file_path: PathBuf§project_stations: Vec<Station>Implementations§
Source§impl DatFile<Unloaded>
impl DatFile<Unloaded>
Sourcepub fn load(self, project_path: &Path) -> Result<DatFile<Loaded>, Error>
pub fn load(self, project_path: &Path) -> Result<DatFile<Loaded>, Error>
Load the survey data file from disk
Consumes the SurveyFile<Unloaded> and returns a SurveyFile<Loaded> with the survey data populated
§Returns
SurveyFile<Loaded> representing the contents of the project file
§Errors
Error::SurveyFileNotFoundIf the file does not existError::CouldntReadFileIf the file cannot be read
Trait Implementations§
impl<S> StructuralPartialEq for DatFile<S>
Auto Trait Implementations§
impl<S> Freeze for DatFile<S>
impl<S> RefUnwindSafe for DatFile<S>where
S: RefUnwindSafe,
impl<S> Send for DatFile<S>where
S: Send,
impl<S> Sync for DatFile<S>where
S: Sync,
impl<S> Unpin for DatFile<S>where
S: Unpin,
impl<S> UnwindSafe for DatFile<S>where
S: UnwindSafe,
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