Struct cursive::view::ViewPath [−][src]
Represents a path to a single view in the layout.
Fields
path: Vec<usize>
List of turns to make on decision nodes when descending the view tree. Simple nodes (with one fixed child) are skipped.
Methods
impl ViewPath
[src]
impl ViewPath
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a new empty path.
pub fn from<T: ToPath>(path: T) -> Self
[src]
pub fn from<T: ToPath>(path: T) -> Self
Creates a path from the given item.