pub enum TypeConstructorKind {
Base,
Unit,
Empty,
Product,
Coproduct,
Exponential,
Tensor,
LinearHom,
}Expand description
The kind of a type constructor.
Variants§
Base
Base/primitive type
Unit
Unit type (terminal object)
Empty
Empty type (initial object)
Product
Product type (A × B)
Coproduct
Coproduct/sum type (A + B)
Exponential
Function type (A → B)
Tensor
Tensor product (A ⊗ B)
LinearHom
Linear function (A ⊸ B)
Trait Implementations§
Source§impl Clone for TypeConstructorKind
impl Clone for TypeConstructorKind
Source§fn clone(&self) -> TypeConstructorKind
fn clone(&self) -> TypeConstructorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 TypeConstructorKind
impl Debug for TypeConstructorKind
Source§impl PartialEq for TypeConstructorKind
impl PartialEq for TypeConstructorKind
impl Eq for TypeConstructorKind
impl StructuralPartialEq for TypeConstructorKind
Auto Trait Implementations§
impl Freeze for TypeConstructorKind
impl RefUnwindSafe for TypeConstructorKind
impl Send for TypeConstructorKind
impl Sync for TypeConstructorKind
impl Unpin for TypeConstructorKind
impl UnwindSafe for TypeConstructorKind
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