lapce_xi_rope/
lib.rs

1// Copyright 2016 The xi-editor Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Trees for text.
16
17#![allow(
18    clippy::collapsible_if,
19    clippy::len_without_is_empty,
20    clippy::many_single_char_names,
21    clippy::needless_range_loop,
22    clippy::new_without_default,
23    clippy::should_implement_trait,
24    clippy::wrong_self_convention
25)]
26
27extern crate bytecount;
28extern crate memchr;
29extern crate regex;
30extern crate unicode_segmentation;
31
32#[cfg(feature = "serde")]
33#[macro_use]
34extern crate serde;
35
36#[cfg(test)]
37extern crate serde_json;
38#[cfg(test)]
39extern crate serde_test;
40
41pub mod breaks;
42pub mod compare;
43pub mod delta;
44pub mod diff;
45pub mod engine;
46pub mod find;
47pub mod interval;
48pub mod multiset;
49pub mod rope;
50#[cfg(feature = "serde")]
51mod serde_impls;
52pub mod spans;
53#[cfg(test)]
54mod test_helpers;
55pub mod tree;
56
57pub use crate::delta::{Builder as DeltaBuilder, Delta, DeltaElement, Transformer};
58pub use crate::interval::Interval;
59pub use crate::rope::{LinesMetric, Rope, RopeDelta, RopeInfo};
60pub use crate::tree::{Cursor, Metric};