use new translate_offset_with_edit for TryConvWith

doc comments
This commit is contained in:
Bernardo 2018-12-23 15:49:14 +01:00
parent aff0124b37
commit 6b2da4e547
4 changed files with 5 additions and 37 deletions

View file

@ -6,8 +6,10 @@ pub use crate::text_edit::{TextEdit, TextEditBuilder};
use text_unit::{TextRange, TextUnit};
/// Must not overlap with other `AtomTextEdit`s
#[derive(Debug, Clone)]
pub struct AtomTextEdit {
/// Refers to offsets in the original text
pub delete: TextRange,
pub insert: String,
}