Test whether this linkage can have a definition.
(self)
| 176 | |
| 177 | /// Test whether this linkage can have a definition. |
| 178 | pub fn is_definable(self) -> bool { |
| 179 | match self { |
| 180 | Self::Import => false, |
| 181 | Self::Local | Self::Preemptible | Self::Hidden | Self::Export => true, |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | /// Test whether this linkage must have a definition. |
| 186 | pub fn requires_definition(self) -> bool { |
no outgoing calls
no test coverage detected