22 lines
414 B
Rust
22 lines
414 B
Rust
use crate::runtime;
|
|
|
|
pub fn acquire(type_id:usize) -> runtime::Reference
|
|
{
|
|
unsafe {runtime::acquire(type_id)}
|
|
}
|
|
|
|
pub fn release(addr:runtime::Reference)
|
|
{
|
|
unsafe {runtime::release(addr)}
|
|
}
|
|
|
|
pub fn copy(_dst:runtime::Reference, _src:runtime::Reference) -> Result<(),()>
|
|
{
|
|
Err(())
|
|
}
|
|
|
|
pub fn transfer(_dst:runtime::Reference, _src:runtime::Reference) -> Result<(),()>
|
|
{
|
|
Err(())
|
|
}
|