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()

Going right from the current position in the mux Target can be get by calling .build()

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.