DynFunctor

Struct DynFunctor 

Source
pub struct DynFunctor<F: Functor<O1, A1, O2, A2>, O1, A1, O2, A2> { /* private fields */ }

Trait Implementations§

Source§

impl<F: Functor<O1, A1, O2, A2>, O1: Clone + PartialEq, A1: Clone, O2: Clone + PartialEq, A2: Clone> Functor<VecKind, O1, A1, O2, A2> for DynFunctor<F, O1, A1, O2, A2>

Source§

fn map_object( &self, a: &SemifiniteFunction<VecKind, O1>, ) -> IndexedCoproduct<VecKind, SemifiniteFunction<VecKind, O2>>

Action on objects
Source§

fn map_operations( &self, ops: Operations<VecKind, O1, A1>, ) -> OpenHypergraph<VecKind, O2, A2>

Action on tensoring of operations, i.e., compute F(f₀) ● F(f₁) ● .. ● F(fn) for generators f_i.
Source§

fn map_arrow( &self, f: &OpenHypergraph<VecKind, O1, A1>, ) -> OpenHypergraph<VecKind, O2, A2>

Action on arrows. If you have implemented map_operations, you can implement this simply as define_map_arrow(self, f).

Auto Trait Implementations§

§

impl<F, O1, A1, O2, A2> Freeze for DynFunctor<F, O1, A1, O2, A2>
where F: Freeze,

§

impl<F, O1, A1, O2, A2> RefUnwindSafe for DynFunctor<F, O1, A1, O2, A2>

§

impl<F, O1, A1, O2, A2> Send for DynFunctor<F, O1, A1, O2, A2>
where F: Send, O1: Send, A1: Send, O2: Send, A2: Send,

§

impl<F, O1, A1, O2, A2> Sync for DynFunctor<F, O1, A1, O2, A2>
where F: Sync, O1: Sync, A1: Sync, O2: Sync, A2: Sync,

§

impl<F, O1, A1, O2, A2> Unpin for DynFunctor<F, O1, A1, O2, A2>
where F: Unpin, O1: Unpin, A1: Unpin, O2: Unpin, A2: Unpin,

§

impl<F, O1, A1, O2, A2> UnwindSafe for DynFunctor<F, O1, A1, O2, A2>
where F: UnwindSafe, O1: UnwindSafe, A1: UnwindSafe, O2: UnwindSafe, A2: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.