ldmc/src/morphism.rs
2025-05-07 16:29:45 +02:00

16 lines
361 B
Rust

use laddertypes::morphism::{Morphism, MorphismType};
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct LdmcPrimMorph {
pub symbol: String,
pub type_args: Vec<(laddertypes::TypeID, String)>,
pub ty: MorphismType,
pub c_source: String
}
impl Morphism for LdmcPrimMorph {
fn get_type(&self) -> MorphismType {
self.ty.clone()
}
}