Struct pbni::LocalFrame [−][src]
#[must_use]pub struct LocalFrame<'session> { /* fields omitted */ }
Expand description
栈帧
当直接从Rust端调用PB代码时一般需要创建栈帧来释放调用阶段产生的临时资源,比如创建的对象
Examples
//创建栈帧 let frame = LocalFrame::new(&session); //手动退出栈帧 //pop调用不是必须的,变量drop时会自动退出 frame.pop();
Implementations
Trait Implementations
Auto Trait Implementations
impl<'session> RefUnwindSafe for LocalFrame<'session>
impl<'session> !Send for LocalFrame<'session>
impl<'session> !Sync for LocalFrame<'session>
impl<'session> Unpin for LocalFrame<'session>
impl<'session> UnwindSafe for LocalFrame<'session>