hide atom edits a bit

This commit is contained in:
Aleksey Kladov 2018-12-21 11:24:16 +03:00
parent 164d53b22f
commit 0063f03e86
5 changed files with 24 additions and 12 deletions

View file

@ -41,8 +41,8 @@ impl TextEditBuilder {
}
impl TextEdit {
pub fn into_atoms(self) -> Vec<AtomTextEdit> {
self.atoms
pub fn as_atoms(&self) -> &[AtomTextEdit] {
&self.atoms
}
pub fn apply(&self, text: &str) -> String {