16 lines
361 B
Rust
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()
|
|
}
|
|
}
|