pub struct TargetScope(/* private fields */);Expand description
The target, in effect as the current one while it is alive: Target::scope.
The current targets are a stack of the thread, so a scope stays on the thread that opened it, and the scopes end in the reverse order they were opened: drop the innermost one first.
ⓘ
fn send<T: Send>() {}
send::<tvm_tirx::target::TargetScope>();Trait Implementations§
Auto Trait Implementations§
impl Freeze for TargetScope
impl RefUnwindSafe for TargetScope
impl !Send for TargetScope
impl !Sync for TargetScope
impl Unpin for TargetScope
impl UnwindSafe for TargetScope
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