1 2 3 4 5 6 7 8 9 10 11 12 13
#[derive(Debug, Clone, PartialEq, Eq)] pub struct CodegenContext { pub internal: bool, } impl CodegenContext { pub fn new(internal: bool) -> Self { Self { internal } } pub const fn new_const(internal: bool) -> Self { Self { internal } } }