pub struct ParseSess {
pub(crate) next_node_id: usize,
}
Fields§
§next_node_id: usize
Implementations§
Source§impl ParseSess
impl ParseSess
pub fn parse_refined_by( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<RefineParams>
pub fn parse_generics( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<Generics>
pub fn parse_type_alias( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<TyAlias>
pub fn parse_fn_sig( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<FnSig>
pub fn parse_trait_assoc_reft( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<TraitAssocReft>
pub fn parse_impl_assoc_reft( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<ImplAssocReft>
pub fn parse_qual_names( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<QualNames>
pub fn parse_flux_item( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<Vec<Item>>
pub fn parse_type( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<Ty>
pub fn parse_variant( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<VariantDef>
pub fn parse_expr( &mut self, tokens: &TokenStream, span: Span, ) -> ParseResult<Expr>
pub fn next_node_id(&mut self) -> NodeId
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseSess
impl RefUnwindSafe for ParseSess
impl Send for ParseSess
impl Sync for ParseSess
impl Unpin for ParseSess
impl UnwindSafe for ParseSess
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