##// END OF EJS Templates
rust: Use the DisplayBytes trait in config printing...
rust: Use the DisplayBytes trait in config printing This is similar to `std::fmt::Display`, but for arbitrary bytes instead of Unicode. Writing to an abstract output stream helps avoid allocating intermediate `Vec<u8>` buffers. Differential Revision: https://phab.mercurial-scm.org/D9966

File last commit:

r47228:b1921234 default
r47249:eace48b4 default
Show More
commands.rs
15 lines | 361 B | application/rls-services+xml | RustLexer
pub mod cat;
pub mod debugdata;
pub mod debugrequirements;
pub mod files;
pub mod root;
use crate::error::CommandError;
use crate::ui::Ui;
use hg::config::Config;
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
pub trait Command {
fn run(&self, ui: &Ui, config: &Config) -> Result<(), CommandError>;
}