[][src]Module kul_core::text::iter::chunks

Parts for iterating the chunks of a Text. Designed to allow borrowing the state from the Text instance so that the lifetime relates to that of Text method calls.

Structs

Iter

Iterator that yields a reference to each chunk of a Text, by using the State trait of the Text::IterChunksState.

Traits

State

Enables a Text to supply references to each of its chunks by borrowing them from its associated Text::IterChunksState, which must implement this trait, which is borrowed by calls to the Text methods, which enables the lifetimes to be related for those methods to work.