pub struct Key {
pub typo: String,
pub corrections: Vec<String>,
}Fields§
§typo: String§corrections: Vec<String>Implementations§
Source§impl Key
impl Key
Sourcepub fn is_typo_correctable(&self, cli: &Cli) -> bool
pub fn is_typo_correctable(&self, cli: &Cli) -> bool
Returns true if the Key contains a typo that may be corrected
Sourcepub fn run_sed(&self, files: &Vec<String>, cli: &Cli)
pub fn run_sed(&self, files: &Vec<String>, cli: &Cli)
Runs sed command. This is way too basic and may lead to replacement mistakes.
§Panics
Panics if the sed subprocess fails
Sourcepub fn run_git_commit(&self, cli: &Cli)
pub fn run_git_commit(&self, cli: &Cli)
Trait Implementations§
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more