Struct ckb_vm::instructions::ThreadFactory
source · pub struct ThreadFactory<Mac: Machine> { /* private fields */ }
Implementations§
source§impl<Mac: Machine> ThreadFactory<Mac>
impl<Mac: Machine> ThreadFactory<Mac>
pub fn create() -> Self
pub fn get(&self, op: InstructionOpcode) -> Option<&Thread<Mac>>
pub fn get_cloned(&self, op: InstructionOpcode) -> Option<Thread<Mac>>
Trait Implementations§
Auto Trait Implementations§
impl<Mac> Freeze for ThreadFactory<Mac>
impl<Mac> RefUnwindSafe for ThreadFactory<Mac>
impl<Mac> Send for ThreadFactory<Mac>
impl<Mac> Sync for ThreadFactory<Mac>
impl<Mac> Unpin for ThreadFactory<Mac>
impl<Mac> UnwindSafe for ThreadFactory<Mac>
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