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

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.