pub enum DiagnosticKind<'a> {
ScudCommandInfo {
command: &'a str,
description: &'a str,
},
DryRun {
command: &'a str,
},
Error {
subject: &'a str,
body: &'a str,
},
Hint {
body: &'a str,
command: &'a str,
},
Info,
Note {
body: &'a str,
},
Tip {
body: &'a str,
},
VCSInfo {
command_name: &'a str,
git_command: &'a str,
mercurial_command: &'a str,
breezy_command: &'a str,
},
GeneralCommandInfo {
command_name: &'a str,
commands: Vec<ExternalCommandInfo<'a>>,
},
WorkInProgress {
feature: &'a str,
},
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DiagnosticKind<'a>
impl<'a> RefUnwindSafe for DiagnosticKind<'a>
impl<'a> Send for DiagnosticKind<'a>
impl<'a> Sync for DiagnosticKind<'a>
impl<'a> Unpin for DiagnosticKind<'a>
impl<'a> UnwindSafe for DiagnosticKind<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more