Trait rustc_hir_typeck::coercion::AsCoercionSite

source ·
pub(crate) trait AsCoercionSite {
    // Required method
    fn as_coercion_site(&self) -> &Expr<'_>;
}
Expand description

Something that can be converted into an expression to which we can apply a coercion.

Required Methods§

source

fn as_coercion_site(&self) -> &Expr<'_>

Implementations on Foreign Types§

source§

impl AsCoercionSite for !

source§

fn as_coercion_site(&self) -> &Expr<'_>

source§

impl AsCoercionSite for Arm<'_>

source§

fn as_coercion_site(&self) -> &Expr<'_>

source§

impl AsCoercionSite for Expr<'_>

source§

fn as_coercion_site(&self) -> &Expr<'_>

source§

impl<'a, T> AsCoercionSite for &'a T
where T: AsCoercionSite,

source§

fn as_coercion_site(&self) -> &Expr<'_>

Implementors§