pub struct DirConf { /* private fields */ }
Implementations§
source§impl DirConf
impl DirConf
sourcepub fn create_src_dirs(
&self,
parent_path: &Path
) -> Result<(), Vec<(IOError, &PathBuf)>>
pub fn create_src_dirs(
&self,
parent_path: &Path
) -> Result<(), Vec<(IOError, &PathBuf)>>
Examples found in repository?
src/cmd/init.rs (line 154)
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
fn create_src_dirs(config: &Config, root_dir: &Path) -> bool {
match config.get_dir_conf().create_src_dirs(root_dir) {
Err(errs) => {
for e in errs {
println!(
"ディレクトリ {} の作成中にエラーが発生しました: {}",
e.1.display(),
e.0
);
}
false
}
_ => true,
}
}
Trait Implementations§
source§impl<'de> Deserialize<'de> for DirConf
impl<'de> Deserialize<'de> for DirConf
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more