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§
Sourcefn stash_pop_index(&self, index: usize) -> AppResult<()>
fn stash_pop_index(&self, index: usize) -> AppResult<()>
Applies and drops the selected stash entry.
Sourcefn stash_list(&self) -> AppResult<Vec<StashEntry>>
fn stash_list(&self) -> AppResult<Vec<StashEntry>>
Lists stash entries.
Provided Methods§
Sourcefn stash_push(&self, message: &str) -> AppResult<Oid>
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".