pub struct PrintfOperation<'c> { /* private fields */ }
Expand description
A printf
operation. Device-side printf, as in CUDA or OpenCL, for debugging.
gpu.printf
takes a literal format string format
and an arbitrary number of
scalar arguments that should be printed.
The format string is a C-style printf string, subject to any restrictions imposed by one’s target platform.
Implementations§
source§impl<'c> PrintfOperation<'c>
impl<'c> PrintfOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> PrintfOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> PrintfOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn args(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn format(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_format(&mut self, value: StringAttribute<'c>)
Trait Implementations§
source§impl<'c> From<PrintfOperation<'c>> for Operation<'c>
impl<'c> From<PrintfOperation<'c>> for Operation<'c>
source§fn from(operation: PrintfOperation<'c>) -> Self
fn from(operation: PrintfOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for PrintfOperation<'c>
impl<'c> !Send for PrintfOperation<'c>
impl<'c> !Sync for PrintfOperation<'c>
impl<'c> Unpin for PrintfOperation<'c>
impl<'c> UnwindSafe for PrintfOperation<'c>
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