ninja_files_data/rule_id/
try_from.rs1use crate::{InvalidRuleId, RuleId};
2
3impl TryFrom<&'static str> for RuleId {
4 type Error = InvalidRuleId;
5
6 fn try_from(value: &'static str) -> Result<Self, Self::Error> {
7 RuleId::try_create(value)
8 }
9}