fe_mir/pretty_print/
types.rs

1use std::fmt::{self, Write};
2
3use crate::{
4    db::MirDb,
5    ir::{function::BodyDataStore, TypeId},
6};
7
8use super::PrettyPrint;
9
10impl PrettyPrint for TypeId {
11    fn pretty_print<W: Write>(
12        &self,
13        db: &dyn MirDb,
14        _store: &BodyDataStore,
15        w: &mut W,
16    ) -> fmt::Result {
17        self.print(db, w)
18    }
19}