[][src]Trait kul_core::TextBase

pub trait TextBase where
    Self: Sized
{ type Pos: SourcePosition; fn empty() -> Self;
fn is_empty(&self) -> bool; }

The basic interface common across both Texts and TextChunks. This determines the associated type of the characters' positional information; and this provides the ability to construct and check for emptiness.

Associated Types

type Pos: SourcePosition

Positional information used with our chunks and chars.

Loading content...

Required methods

fn empty() -> Self

Make an empty one.

fn is_empty(&self) -> bool

Predicate for if an instance is an empty one.

Loading content...

Implementors

impl<'s> TextBase for PosStr<'s>[src]

type Pos = StrPos<'s>

impl<C, ET, '_> TextBase for TextDatumList<'_, C, ET> where
    C: TextChunk
[src]

type Pos = C::Pos

Loading content...