ldmc/src/morphism.rs

17 lines
361 B
Rust
Raw Normal View History

2025-03-15 19:37:03 +01:00
2025-05-07 16:29:45 +02:00
use laddertypes::morphism::{Morphism, MorphismType};
2025-03-15 19:37:03 +01:00
2025-04-01 18:23:18 +02:00
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct LdmcPrimMorph {
2025-03-15 19:37:03 +01:00
pub symbol: String,
pub type_args: Vec<(laddertypes::TypeID, String)>,
2025-05-01 06:38:17 +02:00
pub ty: MorphismType,
2025-03-15 19:37:03 +01:00
pub c_source: String
}
2025-05-01 06:38:17 +02:00
impl Morphism for LdmcPrimMorph {
fn get_type(&self) -> MorphismType {
2025-04-01 18:23:18 +02:00
self.ty.clone()
}
}