build StringEditor and PosIntEditor ontop of ListEditor

add DigitEditor and CharEditor
This commit is contained in:
Michael Sippel 2021-08-16 01:27:35 +02:00
parent fef4b930ae
commit 9905a2376f
Signed by: senvas
GPG key ID: F96CF119C34B64A6
7 changed files with 301 additions and 483 deletions
nested/src/list

View file

@ -34,7 +34,7 @@ impl SequenceView for ListDecorator {
fn len(&self) -> Option<usize> {
let l = self.items.len()?;
Some(if l == 0 { 2 } else { 2 * l + 2 })
Some(if l == 0 { 2 } else { 2 * l + 1 })
}
fn get(&self, idx: &usize) -> Option<Self::Item> {