pub struct RustParser<'tcx> {
pub tracer: &'tcx dyn KParserTracer,
}
Expand description
generic struct to implement the rust parser
Fields§
§tracer: &'tcx dyn KParserTracer
Implementations§
Source§impl<'tcx> RustParser<'tcx>
impl<'tcx> RustParser<'tcx>
pub fn new() -> Self
pub fn with_tracer(tracer: &'tcx dyn KParserTracer) -> Self
pub fn parse(&self, stream: &TokenStream) -> Result<TopLevelNode, KParserError>
pub fn parse_struct(&self, stream: &TokenStream) -> StructToken
pub fn parse_impl(&self, stream: &TokenStream) -> ImplToken
pub fn parse_trait(&self, stream: &TokenStream) -> TraitToken
pub fn parse_fn(&self, stream: &TokenStream) -> MethodDeclToken
Auto Trait Implementations§
impl<'tcx> Freeze for RustParser<'tcx>
impl<'tcx> !RefUnwindSafe for RustParser<'tcx>
impl<'tcx> !Send for RustParser<'tcx>
impl<'tcx> !Sync for RustParser<'tcx>
impl<'tcx> Unpin for RustParser<'tcx>
impl<'tcx> !UnwindSafe for RustParser<'tcx>
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