pub struct CudaBackend { /* private fields */ }Expand description
Emitter state for producing CUDA .cu source code.
Implementations§
Source§impl CudaBackend
impl CudaBackend
Sourcepub fn with_indent(indent_width: usize) -> Self
pub fn with_indent(indent_width: usize) -> Self
Create a backend with a custom indent width.
Sourcepub fn emit_stmt(&self, stmt: &CudaStmt, depth: usize) -> String
pub fn emit_stmt(&self, stmt: &CudaStmt, depth: usize) -> String
Emit a single statement at the given indentation depth.
Sourcepub fn emit_module(&self, module: &CudaModule) -> String
pub fn emit_module(&self, module: &CudaModule) -> String
Emit the full .cu file as a String.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaBackend
impl RefUnwindSafe for CudaBackend
impl Send for CudaBackend
impl Sync for CudaBackend
impl Unpin for CudaBackend
impl UnsafeUnpin for CudaBackend
impl UnwindSafe for CudaBackend
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