pub struct FreeTrapStack(/* private fields */);
Expand description
游离的陷入栈。
Implementations§
Source§impl FreeTrapStack
impl FreeTrapStack
Sourcepub fn new(
range: Range<usize>,
drop: fn(Range<usize>),
context_ptr: NonNull<FlowContext>,
fast_handler: FastHandler,
) -> Result<Self, IllegalStack>
pub fn new( range: Range<usize>, drop: fn(Range<usize>), context_ptr: NonNull<FlowContext>, fast_handler: FastHandler, ) -> Result<Self, IllegalStack>
在内存块上构造游离的陷入栈。
Sourcepub fn load(self) -> LoadedTrapStack
pub fn load(self) -> LoadedTrapStack
将这个陷入栈加载为预备陷入栈。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FreeTrapStack
impl RefUnwindSafe for FreeTrapStack
impl !Send for FreeTrapStack
impl !Sync for FreeTrapStack
impl Unpin for FreeTrapStack
impl UnwindSafe for FreeTrapStack
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