pub struct Functor<S, T> {
pub source: S,
pub target: T,
pub object_map: HashMap<usize, usize>,
}Expand description
A functor between categories.
In our setting, functors map resonance graphs to their root system representations.
Fields§
§source: SSource category object
target: TTarget category object
object_map: HashMap<usize, usize>Object mapping
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, T> Freeze for Functor<S, T>
impl<S, T> RefUnwindSafe for Functor<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for Functor<S, T>
impl<S, T> Sync for Functor<S, T>
impl<S, T> Unpin for Functor<S, T>
impl<S, T> UnwindSafe for Functor<S, T>where
S: UnwindSafe,
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