pub struct RfcParser { /* private fields */ }
Expand description
Parser for RFC documents
Implementations§
Source§impl RfcParser
impl RfcParser
Sourcepub fn parse_file(
&self,
path: &Path,
) -> Result<Vec<ComplianceRequirement>, ValidationError>
pub fn parse_file( &self, path: &Path, ) -> Result<Vec<ComplianceRequirement>, ValidationError>
Parse an RFC file and extract requirements
Sourcepub fn parse_content(
&self,
content: &str,
spec_id: &str,
) -> Vec<ComplianceRequirement>
pub fn parse_content( &self, content: &str, spec_id: &str, ) -> Vec<ComplianceRequirement>
Parse RFC content and extract requirements
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RfcParser
impl RefUnwindSafe for RfcParser
impl Send for RfcParser
impl Sync for RfcParser
impl Unpin for RfcParser
impl UnwindSafe for RfcParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more