neutralts/bif/
parse_bif_neutral.rs1#![doc = include_str!("../../doc/bif-neutral.md")]
2
3use crate::{bif::constants::*, bif::Bif, bif::BifError};
4
5impl<'a> Bif<'a> {
10 pub(crate) fn parse_bif_neutral(&mut self) -> Result<(), BifError> {
11 if self.mod_filter || self.mod_negate || self.mod_scope {
12 return Err(self.bif_error(BIF_ERROR_MODIFIER_NOT_ALLOWED));
13 }
14
15 self.out = self.raw.to_string();
16
17 Ok(())
18 }
19}
20
21#[cfg(test)]
22#[path = "parse_bif_neutral_tests.rs"]
23mod tests;