SemifiniteArrow

Enum SemifiniteArrow 

Source
pub enum SemifiniteArrow<K: ArrayKind, T> {
    Identity,
    Finite(FiniteFunction<K>),
    Semifinite(SemifiniteFunction<K, T>),
}
Expand description

Arrows in the category of semifinite functions

Variants§

§

Identity

§

Finite(FiniteFunction<K>)

§

Semifinite(SemifiniteFunction<K, T>)

Trait Implementations§

Source§

impl<K: ArrayKind, T> Arrow for SemifiniteArrow<K, T>
where K::Type<T>: Array<K, T>,

Source§

type Object = SemifiniteObject<K, T>

Source§

fn source(&self) -> Self::Object

Source§

fn target(&self) -> Self::Object

Source§

fn identity(a: Self::Object) -> Self

the identity morphism on a
Source§

fn compose(&self, other: &Self) -> Option<Self>

Compose morphisms in diagrammatic order: self ; other Read more
Source§

impl<K: ArrayKind, T> Coproduct for SemifiniteArrow<K, T>
where K::Type<T>: Array<K, T>,

Source§

fn initial_object() -> Self::Object

Source§

fn initial(_a: Self::Object) -> Self

Construct the initial arrow initial_a : 0 → a from some object a
Source§

fn inj0(_a: Self::Object, _b: Self::Object) -> Self

Source§

fn inj1(_a: Self::Object, _b: Self::Object) -> Self

Source§

fn coproduct(&self, _other: &Self) -> Option<Self>

Construct the coproduct of two arrows, or None if they didn’t share a codomain.
Source§

impl<K: ArrayKind, T> From<FiniteFunction<K>> for SemifiniteArrow<K, T>

Source§

fn from(val: FiniteFunction<K>) -> Self

Converts to this type from the input type.
Source§

impl<K: ArrayKind, T> From<SemifiniteFunction<K, T>> for SemifiniteArrow<K, T>

Source§

fn from(val: SemifiniteFunction<K, T>) -> Self

Converts to this type from the input type.
Source§

impl<K: ArrayKind, T> TryFrom<SemifiniteArrow<K, T>> for SemifiniteFunction<K, T>

Source§

type Error = ()

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

fn try_from(value: SemifiniteArrow<K, T>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<K, T> Freeze for SemifiniteArrow<K, T>
where <K as ArrayKind>::Index: Freeze, <K as ArrayKind>::I: Freeze, <K as ArrayKind>::Type<T>: Freeze,

§

impl<K, T> RefUnwindSafe for SemifiniteArrow<K, T>

§

impl<K, T> Send for SemifiniteArrow<K, T>
where <K as ArrayKind>::Index: Send, <K as ArrayKind>::I: Send, <K as ArrayKind>::Type<T>: Send,

§

impl<K, T> Sync for SemifiniteArrow<K, T>
where <K as ArrayKind>::Index: Sync, <K as ArrayKind>::I: Sync, <K as ArrayKind>::Type<T>: Sync,

§

impl<K, T> Unpin for SemifiniteArrow<K, T>
where <K as ArrayKind>::Index: Unpin, <K as ArrayKind>::I: Unpin, <K as ArrayKind>::Type<T>: Unpin,

§

impl<K, T> UnwindSafe for SemifiniteArrow<K, T>
where <K as ArrayKind>::Index: UnwindSafe, <K as ArrayKind>::I: UnwindSafe, <K as ArrayKind>::Type<T>: 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.