pub trait MutDblModel: FgDblModel {
// Required methods
fn add_ob(&mut self, x: Self::ObGen, ob_type: Self::ObType);
fn make_mor(&mut self, f: Self::MorGen, mor_type: Self::MorType);
fn get_dom(&self, f: &Self::MorGen) -> Option<&Self::Ob>;
fn get_cod(&self, f: &Self::MorGen) -> Option<&Self::Ob>;
fn set_dom(&mut self, f: Self::MorGen, x: Self::Ob);
fn set_cod(&mut self, f: Self::MorGen, x: Self::Ob);
// Provided method
fn add_mor(
&mut self,
f: Self::MorGen,
dom: Self::Ob,
cod: Self::Ob,
mor_type: Self::MorType,
) { ... }
}
Expand description
A mutable, finitely generated model of a double theory.
Required Methods§
Sourcefn make_mor(&mut self, f: Self::MorGen, mor_type: Self::MorType)
fn make_mor(&mut self, f: Self::MorGen, mor_type: Self::MorType)
Adds a basic morphism to the model without setting its (co)domain.
Sourcefn get_dom(&self, f: &Self::MorGen) -> Option<&Self::Ob>
fn get_dom(&self, f: &Self::MorGen) -> Option<&Self::Ob>
Gets the domain of a basic morphism, if it is set.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.