ninja-files-data 0.1.0

Core data structures for ninja files
Documentation
1
2
3
4
5
6
7
8
9
use crate::{InvalidRuleId, RuleId};

impl TryFrom<&'static str> for RuleId {
    type Error = InvalidRuleId;

    fn try_from(value: &'static str) -> Result<Self, Self::Error> {
        RuleId::try_create(value)
    }
}