pub struct TypeConstructor {
pub name: String,
pub symbol: String,
pub arity: usize,
pub kind: TypeConstructorKind,
}Expand description
A type constructor in the derived type system.
Fields§
§name: StringInternal name
symbol: StringDisplay symbol (e.g., “×”, “→”, “⊗”)
arity: usizeNumber of type arguments
kind: TypeConstructorKindKind of type constructor
Trait Implementations§
Source§impl Clone for TypeConstructor
impl Clone for TypeConstructor
Source§fn clone(&self) -> TypeConstructor
fn clone(&self) -> TypeConstructor
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 moreAuto Trait Implementations§
impl Freeze for TypeConstructor
impl RefUnwindSafe for TypeConstructor
impl Send for TypeConstructor
impl Sync for TypeConstructor
impl Unpin for TypeConstructor
impl UnwindSafe for TypeConstructor
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