build StringEditor and PosIntEditor ontop of ListEditor
add DigitEditor and CharEditor
This commit is contained in:
parent
fef4b930ae
commit
9905a2376f
7 changed files with 301 additions and 483 deletions
nested/src/list
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue