pub trait FgCategoryMap: CategoryMap {
type ObGen: Eq + Clone;
type MorGen: Eq + Clone;
type ObGenMap: Column<Dom = Self::ObGen, Cod = Self::CodOb>;
type MorGenMap: Column<Dom = Self::MorGen, Cod = Self::CodMor>;
// Required methods
fn ob_generator_map(&self) -> &Self::ObGenMap;
fn mor_generator_map(&self) -> &Self::MorGenMap;
// Provided methods
fn apply_ob_generator(&self, x: Self::ObGen) -> Option<Self::CodOb> { ... }
fn apply_mor_generator(&self, m: Self::MorGen) -> Option<Self::CodMor> { ... }
}
Expand description
A mapping out of a finitely generated category.
Such a mapping is determined by where it sends generating objects and morphisms. The codomain category is arbitrary.
Required Associated Types§
Required Methods§
Sourcefn ob_generator_map(&self) -> &Self::ObGenMap
fn ob_generator_map(&self) -> &Self::ObGenMap
Gets the underlying mapping from object generators to objects.
Sourcefn mor_generator_map(&self) -> &Self::MorGenMap
fn mor_generator_map(&self) -> &Self::MorGenMap
Gets the underlying mapping from morphism generators to morphisms.
Provided Methods§
Sourcefn apply_ob_generator(&self, x: Self::ObGen) -> Option<Self::CodOb>
fn apply_ob_generator(&self, x: Self::ObGen) -> Option<Self::CodOb>
Applies the mapping at a generating object.
Sourcefn apply_mor_generator(&self, m: Self::MorGen) -> Option<Self::CodMor>
fn apply_mor_generator(&self, m: Self::MorGen) -> Option<Self::CodMor>
Applies the mapping at a generating morphism.