Skip to main content

Stasher

Trait Stasher 

Source
pub trait Stasher {
    // Required methods
    fn stash(&self, message: &str) -> AppResult<Oid>;
    fn stash_pop(&self) -> AppResult<()>;
    fn stash_pop_index(&self, index: usize) -> AppResult<()>;
    fn stash_list(&self) -> AppResult<Vec<StashEntry>>;

    // Provided method
    fn stash_push(&self, message: &str) -> AppResult<Oid> { ... }
}
Expand description

Stash operations.

Required Methods§

Source

fn stash(&self, message: &str) -> AppResult<Oid>

Creates a stash entry.

Source

fn stash_pop(&self) -> AppResult<()>

Applies and drops the top stash entry.

Source

fn stash_pop_index(&self, index: usize) -> AppResult<()>

Applies and drops the selected stash entry.

Source

fn stash_list(&self) -> AppResult<Vec<StashEntry>>

Lists stash entries.

Provided Methods§

Source

fn stash_push(&self, message: &str) -> AppResult<Oid>

Creates a stash entry.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§