[−][src]Struct epkard::RunBuilder
A builder that runs the narrative when it is dropped
Methods
impl<'a, N, F> RunBuilder<'a, N, F> where
N: Node,
F: Frontend,
[src]
N: Node,
F: Frontend,
pub fn command<C, G>(self, names: C, command: G) -> Self where
C: CommandNames,
G: Fn(&mut Runtime<N, F>) -> Interrupt<N> + 'static,
[src]
C: CommandNames,
G: Fn(&mut Runtime<N, F>) -> Interrupt<N> + 'static,
Add a global command to the Runtime
Global commands can always be entered by the user.
Some examples of global commands might be:
- save
- inventory / inv
- look around
Trait Implementations
impl<'a, N, F> Drop for RunBuilder<'a, N, F> where
N: Node,
F: Frontend,
[src]
N: Node,
F: Frontend,
Auto Trait Implementations
impl<'a, N, F = CliFrontend> !Sync for RunBuilder<'a, N, F>
impl<'a, N, F = CliFrontend> !Send for RunBuilder<'a, N, F>
impl<'a, N, F> Unpin for RunBuilder<'a, N, F> where
F: Unpin,
N: Unpin,
<N as Node>::State: Unpin,
F: Unpin,
N: Unpin,
<N as Node>::State: Unpin,
impl<'a, N, F = CliFrontend> !RefUnwindSafe for RunBuilder<'a, N, F>
impl<'a, N, F = CliFrontend> !UnwindSafe for RunBuilder<'a, N, F>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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,