pub fn parse_directive(mut self) -> DiagnosticsResult<Directive> {
        let document = self.parse_directive_impl();
        if self.errors.is_empty() {
            self.parse_eof()?;
            Ok(document.unwrap())
        } else {
            Err(self.errors)
        }
    }
/// Parses a string containing a single directive.
Parses a string containing a single directive.
Parses a string containing a single directive .
pub fn parse_directive(mut self) -> DiagnosticsResult<Directive> {
        let document = self.parse_directive_impl();
        if self.errors.is_empty() {
            self.parse_eof()?;
            Ok(document.unwrap())
        } else {
            Err(self.errors)
        }
    }
pub fn parse_directive ( mut self ) -> DiagnosticsResult < Directive > { let document = self . parse_directive_impl ( ) ; if self . errors . is_empty ( ) { self . parse_eof ( ) ? ; Ok ( document . unwrap ( ) ) } else { Err ( self . errors ) } }
Parses a string containing a single directive.
Parses a string containing a single directive .
mut self
mut self