[−][src]Struct cursive_multiplex::Path
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> With for T
[src]
fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
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]
F: FnOnce(&mut Self) -> Result<(), E>,
Calls the given closure on self
.
fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
Calls the given closure if condition == true
.