textum 0.4.0

A syntactic patching library with char-level granularity
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Snippet-based text selection and boundary specification.
//!
//! This module provides types for defining text ranges through boundary markers, supporting both
//! pattern-based and position-based targetting with configurable inclusion/exclusion behaviour.
//! There are no defaults, so the user must always specify if they want their replacements to be
//! inclusive of the boundary or not (this will depend on context and making the wrong assumption
//! could be a major form of error).

pub mod snippet;
pub mod target;

pub use snippet::{
    Boundary, BoundaryError, BoundaryMode, Extent, Snippet, SnippetError, SnippetResolution,
};
pub use target::Target;