Enum jj_lib::revset::RevsetCommitRef
source · pub enum RevsetCommitRef {
WorkingCopy(WorkspaceId),
WorkingCopies,
Symbol(String),
RemoteSymbol {
name: String,
remote: String,
},
VisibleHeads,
Root,
Branches(StringPattern),
RemoteBranches {
branch_pattern: StringPattern,
remote_pattern: StringPattern,
},
Tags,
GitRefs,
GitHead,
}
Expand description
Symbol or function to be resolved to CommitId
s.
Variants§
WorkingCopy(WorkspaceId)
WorkingCopies
Symbol(String)
RemoteSymbol
VisibleHeads
Root
Branches(StringPattern)
RemoteBranches
Tags
GitRefs
GitHead
Trait Implementations§
source§impl Clone for RevsetCommitRef
impl Clone for RevsetCommitRef
source§fn clone(&self) -> RevsetCommitRef
fn clone(&self) -> RevsetCommitRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RevsetCommitRef
impl Debug for RevsetCommitRef
source§impl PartialEq for RevsetCommitRef
impl PartialEq for RevsetCommitRef
source§fn eq(&self, other: &RevsetCommitRef) -> bool
fn eq(&self, other: &RevsetCommitRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RevsetCommitRef
impl StructuralPartialEq for RevsetCommitRef
Auto Trait Implementations§
impl Freeze for RevsetCommitRef
impl RefUnwindSafe for RevsetCommitRef
impl Send for RevsetCommitRef
impl Sync for RevsetCommitRef
impl Unpin for RevsetCommitRef
impl UnwindSafe for RevsetCommitRef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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