pub struct PrintOperation<'c> { /* private fields */ }
Expand description
A print
operation. Dump each payload op.
This op dumps each payload op that is associated with the target
operand
to stderr. It also prints the name
string attribute. If no target is
specified, the top-level op is dumped.
This op is useful for printf-style debugging.
Implementations§
source§impl<'c> PrintOperation<'c>
impl<'c> PrintOperation<'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>
) -> PrintOperationBuilder<'c>
pub fn builder( context: &'c Context, location: Location<'c> ) -> PrintOperationBuilder<'c>
Creates a builder.
pub fn target(&self) -> Result<Value<'c, '_>, Error>
pub fn _name(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_name(&mut self, value: StringAttribute<'c>)
pub fn remove_name(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<PrintOperation<'c>> for Operation<'c>
impl<'c> From<PrintOperation<'c>> for Operation<'c>
source§fn from(operation: PrintOperation<'c>) -> Self
fn from(operation: PrintOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for PrintOperation<'c>
impl<'c> !Send for PrintOperation<'c>
impl<'c> !Sync for PrintOperation<'c>
impl<'c> Unpin for PrintOperation<'c>
impl<'c> UnwindSafe for PrintOperation<'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