| 134 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
| 135 | #[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))] |
| 136 | pub enum ExternalName { |
| 137 | /// A reference to a name in a user-defined symbol table. |
| 138 | User(UserExternalNameRef), |
| 139 | /// A test case function name of up to a hardcoded amount of ascii |
| 140 | /// characters. This is not intended to be used outside test cases. |
| 141 | TestCase(TestcaseName), |
| 142 | /// A well-known runtime library function. |
| 143 | LibCall(LibCall), |
| 144 | /// A well-known symbol. |
| 145 | KnownSymbol(KnownSymbol), |
| 146 | } |
| 147 | |
| 148 | impl Default for ExternalName { |
| 149 | fn default() -> Self { |