pub enum RevsetEvaluationSizeError {
Empty,
Multiple(Vec<Commit>, bool),
Other(UserRevsetEvaluationError),
}Expand description
Error when evaluating a revset into a single commit.
Variants§
Empty
The revset evaluated to no commits.
Multiple(Vec<Commit>, bool)
The revset evaluated to multiple commits. The vector only contains a few commits (enough for an error message), and the bool indicates whether there were more; do not expect this to be the entire evaluated revset.
Other(UserRevsetEvaluationError)
An error occurred during revset evaluation; size unknown.
Implementations§
Source§impl RevsetEvaluationSizeError
impl RevsetEvaluationSizeError
pub fn to_command_error( self, revision_str: &str, commit_summary_template: &TemplateRenderer<'_, Commit>, ) -> CommandError
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RevsetEvaluationSizeError
impl !UnwindSafe for RevsetEvaluationSizeError
impl Freeze for RevsetEvaluationSizeError
impl Send for RevsetEvaluationSizeError
impl Sync for RevsetEvaluationSizeError
impl Unpin for RevsetEvaluationSizeError
impl UnsafeUnpin for RevsetEvaluationSizeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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