blob: 2dc9539ba527b2875d13060d0588dfeec7cf9ab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
pub struct VTable{
state:extern "C" fn(),
}
impl VTable{
pub const fn vtable()->&'static VTable{
Self::VTABLE
}
const VTABLE: &'static VTable =
&VTable{state};
}
extern "C" fn state() {}
|