mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 12:35:11 +00:00
15 lines
222 B
Rust
15 lines
222 B
Rust
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() {}
|