pub struct KernelId { /* private fields */ }
Expand description
Kernel unique identifier.
Implementations§
Source§impl KernelId
impl KernelId
Sourcepub fn stable_format(&self) -> String
pub fn stable_format(&self) -> String
Render the key in a standard format that can be used between runs.
Can be used as a persistent kernel cache key.
Sourcepub fn info<I: 'static + PartialEq + Eq + Hash + Debug + Send + Sync>(
self,
info: I,
) -> Self
pub fn info<I: 'static + PartialEq + Eq + Hash + Debug + Send + Sync>( self, info: I, ) -> Self
Add information to the kernel id.
The information is used to differentiate kernels of the same kind but with different configurations, which affect the generated code.
Sourcepub fn mode(&mut self, mode: ExecutionMode)
pub fn mode(&mut self, mode: ExecutionMode)
Set the execution mode.
Trait Implementations§
impl Eq for KernelId
Auto Trait Implementations§
impl Freeze for KernelId
impl !RefUnwindSafe for KernelId
impl Send for KernelId
impl Sync for KernelId
impl Unpin for KernelId
impl !UnwindSafe for KernelId
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