pub trait DblModelMapping {
type DomOb: Eq + Clone;
type DomMor: Eq + Clone;
type CodOb: Eq + Clone;
type CodMor: Eq + Clone;
// Required methods
fn apply_ob(&self, x: &Self::DomOb) -> Option<Self::CodOb>;
fn apply_mor(&self, m: &Self::DomMor) -> Option<Self::CodMor>;
// Provided methods
fn is_ob_assigned(&self, x: &Self::DomOb) -> bool { ... }
fn is_mor_assigned(&self, m: &Self::DomMor) -> bool { ... }
}
Expand description
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn is_ob_assigned(&self, x: &Self::DomOb) -> bool
fn is_ob_assigned(&self, x: &Self::DomOb) -> bool
Is the mapping defined at an object?
Sourcefn is_mor_assigned(&self, m: &Self::DomMor) -> bool
fn is_mor_assigned(&self, m: &Self::DomMor) -> bool
Is the mapping defined at a morphism?