Skip to main content

Crate continuity_text

Crate continuity_text 

Source
Expand description

Text primitives: positions, ranges, selections, and edit operations over a ropey::Rope.

Foundation layer. No internal workspace dependencies.

Re-exports§

pub use bidi::level_at;
pub use bidi::paragraph_direction;
pub use bidi::ParagraphDirection;
pub use edit::EditOp;
pub use error::Error;
pub use position::Position;
pub use range::Range;
pub use rope_edit_delta::transform_byte_through;
pub use rope_edit_delta::transform_container_range_through;
pub use rope_edit_delta::transform_container_range_through_chain;
pub use rope_edit_delta::transform_range_through;
pub use rope_edit_delta::transform_range_through_chain;
pub use rope_edit_delta::RopeEditDelta;
pub use selection::Selection;
pub use selection::SelectionKind;

Modules§

bidi
Bidi (Unicode Bidirectional Algorithm) helpers.
edit
Atomic edit operations.
error
Errors for the continuity-text crate.
position
Source positions: (line, byte_in_line).
range
Half-open ranges of Positions: [start, end).
rope_edit_delta
Rope edit delta — a flat description of one edit’s byte-level effect on the rope, suitable for transforming byte-range metadata (decoration spans, line caches, …) attached to a previous rope revision through to the current one.
select
Selection helpers over a ropey::Rope.
selection
Selections: (anchor, head, kind).