[][src]Struct cursive_multiplex::Path

pub struct Path<'a> { /* fields omitted */ }

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

Methods

impl<'a> Path<'a>[src]

pub fn build(self) -> Option<Id>[src]

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, node1) = Mux::new(DummyView);
mux.add_below(DummyView, node1);
let path = mux.root().up().build();
assert_eq!(node1, path.unwrap());

pub fn up(self) -> Self[src]

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

pub fn down(self) -> Self[src]

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

pub fn left(self) -> Self[src]

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

pub fn right(self) -> Self[src]

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

Auto Trait Implementations

impl<'a> !Sync for Path<'a>

impl<'a> !Send for Path<'a>

impl<'a> Unpin for Path<'a>

impl<'a> !RefUnwindSafe for Path<'a>

impl<'a> !UnwindSafe for Path<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> With for T[src]

fn with<F>(self, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure on self.

fn try_with<E, F>(self, f: F) -> Result<Self, E> where
    F: FnOnce(&mut Self) -> Result<(), E>, 
[src]

Calls the given closure on self.

fn with_if<F>(self, condition: bool, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure if condition == true.

impl<T> Erased for T