MLIR  20.0.0git
Public Member Functions | List of all members
mlir::PySinglePartStringAccumulator Struct Reference

Accumulates into a python string from a method that is expected to make one (no more, no less) call to the callback (asserts internally on violation). More...

#include "Bindings/Python/NanobindUtils.h"

Public Member Functions

void * getUserData ()
 
MlirStringCallback getCallback ()
 
nanobind::str takeValue ()
 

Detailed Description

Accumulates into a python string from a method that is expected to make one (no more, no less) call to the callback (asserts internally on violation).

Definition at line 164 of file NanobindUtils.h.

Member Function Documentation

◆ getCallback()

MlirStringCallback mlir::PySinglePartStringAccumulator::getCallback ( )
inline

Definition at line 167 of file NanobindUtils.h.

References MlirStringRef::data, and MlirStringRef::length.

◆ getUserData()

void* mlir::PySinglePartStringAccumulator::getUserData ( )
inline

Definition at line 165 of file NanobindUtils.h.

◆ takeValue()

nanobind::str mlir::PySinglePartStringAccumulator::takeValue ( )
inline

Definition at line 178 of file NanobindUtils.h.


The documentation for this struct was generated from the following file: