## RecoverQPath

# Trait RecoverQPath

Source

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

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

## Provided Associated Constants§

Source

#### const PATH_STYLE: PathStyle = PathStyle::Expr

## Required Methods§

Source

#### fn to_ty(&self) -> Option<Box<Ty>>

Source

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

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementations on Foreign Types§

Source§

### impl RecoverQPath for Expr

Source§

#### fn to_ty(&self) -> Option<Box<Ty>>

Source§

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

Source§

### impl RecoverQPath for Pat

Source§

#### const PATH_STYLE: PathStyle = PathStyle::Pat

Source§

#### fn to_ty(&self) -> Option<Box<Ty>>

Source§

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

Source§

### impl RecoverQPath for Ty

Source§

#### const PATH_STYLE: PathStyle = PathStyle::Type

Source§

#### fn to_ty(&self) -> Option<Box<Ty>>

Source§

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

Source§

### impl<T: RecoverQPath> RecoverQPath for Box<T>

Source§

#### const PATH_STYLE: PathStyle = T::PATH_STYLE

Source§

#### fn to_ty(&self) -> Option<Box<Ty>>

Source§

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

## Implementors§