Skip to main content

sequoia_buffer/
lib.rs

1#![forbid(unsafe_code)]
2
3mod attr;
4mod cursor;
5mod lines;
6mod piece;
7mod styled;
8mod undo;
9
10pub use attr::{
11    SpanAttr, StyledSpan, hash_span_attr, hash_spans_rebased, line_hash, normalize_spans,
12    rebase_spans, spans_hash,
13};
14pub use cursor::{
15    Cursor, Selection, line_end, line_home, move_lines, next_grapheme, prev_grapheme,
16    word_end_after, word_start_before,
17};
18pub use lines::LineIndex;
19pub use piece::TextBuffer;
20pub use styled::StyledBuffer;
21pub use undo::{Edit, UndoGroup, UndoStack};