pub struct LocalFrame<'session> { /* private fields */ }
Expand description
栈帧
当直接从Rust端调用PB代码时一般需要创建栈帧来释放调用阶段产生的临时资源,比如创建的对象
§Examples
//创建栈帧
let frame = LocalFrame::new(&session);
//手动退出栈帧
//pop调用不是必须的,变量drop时会自动退出
frame.pop();
Implementations§
Source§impl<'session> LocalFrame<'session>
impl<'session> LocalFrame<'session>
Trait Implementations§
Auto Trait Implementations§
impl<'session> Freeze for LocalFrame<'session>
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>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more