Struct cursive_multiplex::Path [−][src]
pub struct Path<'a> { /* fields omitted */ }
Expand description
Path used to get the id of a specific pane in the mux.
self can be directed by calling .up()
, .down()
, .left()
and .right()
on the instance.
To get the final id of a pane .build()
.
Implementations
Finsihing of the path, Option contains the target Id If Option None no Id could be found fitting to the path Consumes the path
Example
let mut mux = Mux::new(); let node1 = mux.add_right_of(DummyView, mux.root().build().unwrap()).unwrap(); mux.add_below(DummyView, node1); let path = mux.root().up().build(); assert_eq!(node1, path.unwrap());
Going up from the current position in the mux
Target can be get by calling .build()
Going down from the current position in the mux
Target can be get by calling .build()
Going left from the current position in the mux
Target can be get by calling .build()
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Path<'a>
impl<'a> !UnwindSafe for Path<'a>