pub enum TypeDepthKind {
Array(TypeId),
Tuple(TupleListId),
Members(Vec<TypeId>),
Application {
base: TypeId,
args: Vec<TypeId>,
},
Terminal,
}Expand description
Classification for computing type depth.
Variants§
Array(TypeId)
Array - depth = 1 + element depth
Tuple(TupleListId)
Tuple - depth = 1 + max element depth
Members(Vec<TypeId>)
Union or Intersection - depth = 1 + max member depth
Application
Application - depth = 1 + max(base depth, arg depths)
Terminal
Terminal type - depth = 1
Trait Implementations§
Source§impl Clone for TypeDepthKind
impl Clone for TypeDepthKind
Source§fn clone(&self) -> TypeDepthKind
fn clone(&self) -> TypeDepthKind
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 TypeDepthKind
impl RefUnwindSafe for TypeDepthKind
impl Send for TypeDepthKind
impl Sync for TypeDepthKind
impl Unpin for TypeDepthKind
impl UnsafeUnpin for TypeDepthKind
impl UnwindSafe for TypeDepthKind
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