Struct artifact_app::core::types::ProjectText
[−]
[src]
pub struct ProjectText { pub origin: PathBuf, pub files: HashMap<PathBuf, String>, }
struct for representing a project as just a collection of Path and String values, used for loading/formatting/saving files
Fields
origin: PathBuf
files: HashMap<PathBuf, String>
Methods
impl ProjectText
[src]
fn load(&mut self,
load_dir: &Path,
loaded_dirs: &mut HashSet<PathBuf>)
-> Result<()>
load_dir: &Path,
loaded_dirs: &mut HashSet<PathBuf>)
-> Result<()>
recursively load the directory into text files, making sure not to load files that have already been loaded
impl ProjectText
[src]
fn from_project(project: &Project) -> Result<ProjectText>
fn dump(&self) -> Result<()>
dump text to a path
SPC-save
fn diff(&self) -> Result<HashMap<PathBuf, PathDiff>>
get a hash table with the diff values of the files in a project to what currently exists
Trait Implementations
impl Debug for ProjectText
[src]
impl PartialEq for ProjectText
[src]
fn eq(&self, __arg_0: &ProjectText) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ProjectText) -> bool
This method tests for !=
.
impl Default for ProjectText
[src]
fn default() -> ProjectText
Returns the "default value" for a type. Read more