(&self)
| 270 | /// type. |
| 271 | #[inline] |
| 272 | pub fn as_ref(&self) -> Option<&RefType> { |
| 273 | match self { |
| 274 | ValType::Ref(r) => Some(r), |
| 275 | _ => None, |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | /// Get the underlying reference type, panicking if this value type is not a |
| 280 | /// reference type. |
no outgoing calls