
constants and statics are nullary functions, and struct fields are unary functions. functions (along with methods and trait methods) are prioritized over other items, like fields and constants.
7 lines
208 B
JavaScript
7 lines
208 B
JavaScript
const EXPECTED = {
|
|
// one of the only non-generic structs with public fields
|
|
'query': 'CpuidResult -> u32',
|
|
'others': [
|
|
{ 'path': 'core::arch::x86::CpuidResult', 'name': 'eax' },
|
|
],
|
|
}
|