types.IntoChunk
Structural type for objects that convert themselves into a Chunk.
Usage
types.IntoChunk()Implement to_chunk() returning a raghilda Chunk to let raghilda accept your type directly; Chunk.from_any() calls it when given an IntoChunk. This is the explicit alternative to ChunkLike: rather than exposing chunk fields, the object knows how to build a Chunk itself.
Methods
| Name | Description |
|---|---|
| to_chunk() | Convert this object into a Chunk. |
to_chunk()
Convert this object into a Chunk.
Usage
to_chunk()