ninja_files_data2/command/
try_from.rs

1use crate::{Command, Process};
2
3impl<'a> TryFrom<&'a str> for Command {
4    type Error = <Process as TryFrom<&'a str>>::Error;
5
6    fn try_from(value: &'a str) -> Result<Self, Self::Error> {
7        Command::try_create(value)
8    }
9}
10
11impl TryFrom<String> for Command {
12    type Error = <Process as TryFrom<String>>::Error;
13
14    fn try_from(value: String) -> Result<Self, Self::Error> {
15        Command::try_create(value)
16    }
17}