pub enum GeneratorAction {
Functor {
map_object: Vec<(String, String)>,
map_morphism: Vec<(String, String)>,
},
NaturalTransformation {
components: Vec<(String, String)>,
},
Lens {
view: String,
get: String,
put: String,
},
Adjunction {
left_map_object: Vec<(String, String)>,
right_map_object: Vec<(String, String)>,
unit: Vec<(String, String)>,
counit: Vec<(String, String)>,
},
}Expand description
The finite action-on-generators that is a connection. The variant names
the categorical family; every table is (source-generator name → target expression), which is why one representation serves all of them.
Variants§
Functor
A functor: where each source generating object and relation-kind goes.
Fields
NaturalTransformation
A natural transformation η: F ⇒ G: one component per object,
η_x : F(x) → G(x).
Lens
A bidirectional lens (Foster et al. 2007): a view focus with get/
put morphisms. The .prx decompile round-trip is itself a lens.
Adjunction
An adjunction F ⊣ G: the two functors’ object maps plus the unit η
and counit ε component families.
Trait Implementations§
Source§impl Clone for GeneratorAction
impl Clone for GeneratorAction
Source§fn clone(&self) -> GeneratorAction
fn clone(&self) -> GeneratorAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratorAction
impl Debug for GeneratorAction
Source§impl<'de> Deserialize<'de> for GeneratorAction
impl<'de> Deserialize<'de> for GeneratorAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GeneratorAction
Source§impl PartialEq for GeneratorAction
impl PartialEq for GeneratorAction
Source§fn eq(&self, other: &GeneratorAction) -> bool
fn eq(&self, other: &GeneratorAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GeneratorAction
impl Serialize for GeneratorAction
impl StructuralPartialEq for GeneratorAction
Auto Trait Implementations§
impl Freeze for GeneratorAction
impl RefUnwindSafe for GeneratorAction
impl Send for GeneratorAction
impl Sync for GeneratorAction
impl Unpin for GeneratorAction
impl UnsafeUnpin for GeneratorAction
impl UnwindSafe for GeneratorAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more