Test whether this linkage must have a definition.
(self)
| 184 | |
| 185 | /// Test whether this linkage must have a definition. |
| 186 | pub fn requires_definition(self) -> bool { |
| 187 | match self { |
| 188 | Self::Import | Self::Preemptible => false, |
| 189 | Self::Local | Self::Hidden | Self::Export => true, |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | /// Test whether this linkage will have a definition that cannot be preempted. |
| 194 | pub fn is_final(self) -> bool { |