1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Printable descriptions of the types a native function takes and returns.
//!
//! A [`Signature`](crate::registry::Signature)'s shapes are what argument
//! marshaling checks against; types with no `Facet` shape of their own
//! ([`XurStr`](super::XurStr), [`Value`](crate::Value), [`Opt`](super::Opt),
//! ...) have none to give. A [`TypeDesc`] describes every parameter and the
//! return type for people instead: hovers, inlay hints and generated docs.
//! [`Registry::type_desc_name`](crate::Registry::type_desc_name) prints one.
use Shape;
/// What a parameter or return type is, for display.