pub fn find_directive(directives: &[Directive], directive_name: StringKey) -> Option<&Directive> {
    directives
        .iter()
        .find(|directive| directive.name.item == directive_name)
}
/// Will return a directive by name
Will return a directive by name
Will return a directive by name
pub fn find_directive(directives: &[Directive], directive_name: StringKey) -> Option<&Directive> {
    directives
        .iter()
        .find(|directive| directive.name.item == directive_name)
}
pub fn find_directive ( directives : & [ Directive ] , directive_name : StringKey ) -> Option < & Directive > { directives . iter ( ) . find ( | directive | directive . name . item == directive_name ) }
Will return a directive by name
Will return a directive by name
directives
&[Directive]
directive_name
StringKey
directives
&[Directive]
directive_name
StringKey