Trait PrimitiveExt

pub trait PrimitiveExt {
    // Required methods
    fn to_ty<'db>(&self, interner: DbInterner<'db>) -> Ty<'db>;
    fn to_int_ty<'db>(&self, interner: DbInterner<'db>) -> Ty<'db>;
}

Required Methods§

fn to_ty<'db>(&self, interner: DbInterner<'db>) -> Ty<'db>

fn to_int_ty<'db>(&self, interner: DbInterner<'db>) -> Ty<'db>

Implementations on Foreign Types§

§

impl PrimitiveExt for Primitive

§

fn to_int_ty<'db>(&self, interner: DbInterner<'db>) -> Ty<'db>

Return an integer type matching this primitive. Useful in particular when dealing with enum discriminants.

§

fn to_ty<'db>(&self, interner: DbInterner<'db>) -> Ty<'db>

Implementors§