pub struct CParser { /* private fields */ }Expand description
C parser using clang-sys.
§Examples
use decy_parser::parser::CParser;
let parser = CParser::new()?;
let ast = parser.parse("int main() { return 0; }")?;
assert_eq!(ast.functions().len(), 1);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CParser
impl RefUnwindSafe for CParser
impl !Send for CParser
impl !Sync for CParser
impl Unpin for CParser
impl UnwindSafe for CParser
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