rust-codegen 0.1.1

A simple builder API for generating Rust code
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::r#type::Type;

/// Used to add `where` bounds.
#[derive(Debug, Clone)]
pub struct Bound {
    /// The name of the bound.
    pub name: String,
    /// The types of the bound.
    pub bound: Vec<Type>,
}