Find the unique number associated with this type.
(&self)
| 60 | |
| 61 | /// Find the unique number associated with this type. |
| 62 | pub fn number(&self) -> u16 { |
| 63 | match *self { |
| 64 | ValueType::Lane(l) => l.number(), |
| 65 | ValueType::Vector(ref v) => v.number(), |
| 66 | ValueType::DynamicVector(ref v) => v.number(), |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | /// Return the name of this type for generated Rust source files. |
| 71 | pub fn rust_name(&self) -> String { |
no test coverage detected