rustc_parse::parser::diagnostics

Trait RecoverQPath

source
pub(super) trait RecoverQPath: Sized + 'static {
    const PATH_STYLE: PathStyle = PathStyle::Expr;

    // Required methods
    fn to_ty(&self) -> Option<P<Ty>>;
    fn recovered(qself: Option<P<QSelf>>, path: Path) -> Self;
}

Provided Associated Constants§

source

const PATH_STYLE: PathStyle = PathStyle::Expr

Required Methods§

source

fn to_ty(&self) -> Option<P<Ty>>

source

fn recovered(qself: Option<P<QSelf>>, path: Path) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RecoverQPath for Expr

source§

fn to_ty(&self) -> Option<P<Ty>>

source§

fn recovered(qself: Option<P<QSelf>>, path: Path) -> Self

source§

impl RecoverQPath for Pat

source§

const PATH_STYLE: PathStyle = PathStyle::Pat

source§

fn to_ty(&self) -> Option<P<Ty>>

source§

fn recovered(qself: Option<P<QSelf>>, path: Path) -> Self

source§

impl RecoverQPath for Ty

source§

const PATH_STYLE: PathStyle = PathStyle::Type

source§

fn to_ty(&self) -> Option<P<Ty>>

source§

fn recovered(qself: Option<P<QSelf>>, path: Path) -> Self

Implementors§