Struct jj_lib::op_store::BranchTarget
source · pub struct BranchTarget<'a> {
pub local_target: &'a RefTarget,
pub remote_refs: Vec<(&'a str, &'a RemoteRef)>,
}
Expand description
Local and remote branches of the same branch name.
Fields§
§local_target: &'a RefTarget
The commit the branch points to locally.
remote_refs: Vec<(&'a str, &'a RemoteRef)>
(remote_name, remote_ref)
pairs in lexicographical order.
Trait Implementations§
source§impl<'a> Clone for BranchTarget<'a>
impl<'a> Clone for BranchTarget<'a>
source§fn clone(&self) -> BranchTarget<'a>
fn clone(&self) -> BranchTarget<'a>
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<'a> Debug for BranchTarget<'a>
impl<'a> Debug for BranchTarget<'a>
source§impl<'a> PartialEq for BranchTarget<'a>
impl<'a> PartialEq for BranchTarget<'a>
source§fn eq(&self, other: &BranchTarget<'a>) -> bool
fn eq(&self, other: &BranchTarget<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for BranchTarget<'a>
impl<'a> StructuralEq for BranchTarget<'a>
impl<'a> StructuralPartialEq for BranchTarget<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BranchTarget<'a>
impl<'a> Send for BranchTarget<'a>
impl<'a> Sync for BranchTarget<'a>
impl<'a> Unpin for BranchTarget<'a>
impl<'a> UnwindSafe for BranchTarget<'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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more