##// END OF EJS Templates
rust-status: improve documentation and readability...
rust-status: improve documentation and readability This patch is 2/3 in the series to improve the dirstate status code. It adds a number of common type aliases to add more obvious semantics to function signatures, improves/adds documentation where necessary and improves one or two patterns to be more idiomatic. Differential Revision: https://phab.mercurial-scm.org/D8662

File last commit:

r45502:5965efb6 default
r45672:470d306e default
Show More
mod.rs
12 lines | 433 B | application/rls-services+xml | RustLexer
mod find_root;
pub use find_root::{FindRoot, FindRootError, FindRootErrorKind};
/// An interface for high-level hg operations.
///
/// A distinction is made between operation and commands.
/// An operation is what can be done whereas a command is what is exposed by
/// the cli. A single command can use several operations to achieve its goal.
pub trait Operation<T> {
type Error;
fn run(&self) -> Result<T, Self::Error>;
}