swamp-types 0.2.21

types used in Swamp
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp
 * Licensed under the MIT License. See LICENSE in the project root for license information.
 */

use crate::cache::TypeCache;
use std::fmt;
use std::fmt::Write;

pub fn print_types(f: &mut dyn Write, cache: &TypeCache) -> fmt::Result {
    for (_id, ty) in &cache.type_id_to_type {
        writeln!(f, "{ty}")?;
    }

    Ok(())
}