pub enum ItemKind {
Scalar,
Drill {
count: usize,
},
GroupHeader {
count: usize,
},
}Expand description
What a PageItem does when you activate it.
Variants§
Scalar
A leaf: editable in place.
Drill
A container substantial enough to earn its own page. count is how many
children it holds — what a “12 fields ›” affordance shows.
GroupHeader
The title of a container inlined into this page. The items that follow it
at PageItem::inset 1 are its members.
Selectable, and openable as a page in its own right: the inline rendering is a default, not a restriction.
Trait Implementations§
impl Eq for ItemKind
impl StructuralPartialEq for ItemKind
Auto Trait Implementations§
impl Freeze for ItemKind
impl RefUnwindSafe for ItemKind
impl Send for ItemKind
impl Sync for ItemKind
impl Unpin for ItemKind
impl UnsafeUnpin for ItemKind
impl UnwindSafe for ItemKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more