Trait cursive_core::With [−][src]
Generic trait to enable chainable API
Provided methods
fn with<F: FnOnce(&mut Self)>(mut self: Self, f: F) -> Self
[src]
Calls the given closure on self
.
fn try_with<E, F>(mut self: 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>(mut self: Self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
Calls the given closure if condition == true
.