pub struct Morphism<T> {
pub source: T,
pub target: T,
pub mapping: HashMap<usize, usize>,
}Expand description
A morphism between objects in a category.
In our setting, morphisms are structure-preserving maps between mathematical objects (graphs, groups, etc.).
Fields§
§source: TSource object
target: TTarget object
mapping: HashMap<usize, usize>The underlying map (represented as vertex mapping)
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Morphism<T>
impl<T> StructuralPartialEq for Morphism<T>
Auto Trait Implementations§
impl<T> Freeze for Morphism<T>where
T: Freeze,
impl<T> RefUnwindSafe for Morphism<T>where
T: RefUnwindSafe,
impl<T> Send for Morphism<T>where
T: Send,
impl<T> Sync for Morphism<T>where
T: Sync,
impl<T> Unpin for Morphism<T>where
T: Unpin,
impl<T> UnwindSafe for Morphism<T>where
T: UnwindSafe,
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