[−][src]Enum papyrus::cmds::CommandResult
The result of a cmdtree action
.
This result is handed in the repl's evaluating stage, and can alter ReplData
or the data D
.
Variants
Flag to begin a mutating block.
EditAlter(EditingIndex)
Flag to alter a previous statement, item, or crate.
EditReplace(EditingIndex, String)
Replace a previous statement, item, or crate with value.
SwitchModule(PathBuf)
Switch to a module.
ActionOnReplData(ReplDataAction<D>)
Take an action on the ReplData
.
ActionOnAppData(AppDataAction<D>)
Take an action on Data
.
A blank variant with no action.
Methods
impl<D> CommandResult<D>
[src]
pub fn app_data_fn<F: 'static + Fn(&mut D, &mut dyn Write) -> String>(
func: F
) -> Self
[src]
func: F
) -> Self
Convenience function boxing an action on app data.
pub fn repl_data_fn<F: 'static + Fn(&mut ReplData<D>, &mut dyn Write) -> String>(
func: F
) -> Self
[src]
func: F
) -> Self
Convenience function boxing an action on repl data.
Auto Trait Implementations
impl<D> !RefUnwindSafe for CommandResult<D>
impl<D> !Send for CommandResult<D>
impl<D> !Sync for CommandResult<D>
impl<D> Unpin for CommandResult<D>
impl<D> !UnwindSafe for CommandResult<D>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,