[][src]Module kul::text::chunk

TextChunk types that use the std library, including heap allocation. Also re-exports the core crate's module and premades.

Re-exports

pub use kul_core::text::chunk::*;
pub use kul_core::text::chunk::premade::*;

Structs

CharPos

A SourcePosition type for characters or string chunks as the position of a char relative to its original source.

PosStrish

A TextChunk implementation for boxed (heap allocated) string values, termed "string-ish" throughout this crate, used distinctly as chunks. This is useful for strings produced from streaming sources that buffered into one or more strings separated at possibly arbitrary points.

PosStrishIter

A [chunk::SourceStream] (and Iterator) of the characters, and their positions, of the text chunk that a PosStrish represents.

Traits

RefCntStrish

Restricts what can be used in PosStrish to only Rc and Arc of only String, Box<str>, and str.