Struct git_nomad::types::RemoteNomadRefSet
source · pub struct RemoteNomadRefSet {
set: HashSet<(User<'static>, Host<'static>, Branch<'static>)>,
}
Expand description
A specialized container to represent nomad managed refs that a remote knows about.
Fields§
§set: HashSet<(User<'static>, Host<'static>, Branch<'static>)>
Implementations§
source§impl RemoteNomadRefSet
impl RemoteNomadRefSet
sourcepub fn contains<Ref>(&self, nomad_ref: &NomadRef<'_, Ref>) -> bool
pub fn contains<Ref>(&self, nomad_ref: &NomadRef<'_, Ref>) -> bool
Check whether the remote knows about a given NomadRef
.
Note that the Ref
part of NomadRef<Ref>
is completely ignored, since we don’t care
about the intrinsic git ref being pointed to, merely that the remote is still tracking a
nomad ref with the given user/host/branch.
Trait Implementations§
source§impl<'a> FromIterator<(User<'a>, Host<'a>, Branch<'a>)> for RemoteNomadRefSet
impl<'a> FromIterator<(User<'a>, Host<'a>, Branch<'a>)> for RemoteNomadRefSet
source§impl<'a, Ref> FromIterator<NomadRef<'a, Ref>> for RemoteNomadRefSet
impl<'a, Ref> FromIterator<NomadRef<'a, Ref>> for RemoteNomadRefSet
Auto Trait Implementations§
impl Freeze for RemoteNomadRefSet
impl RefUnwindSafe for RemoteNomadRefSet
impl Send for RemoteNomadRefSet
impl Sync for RemoteNomadRefSet
impl Unpin for RemoteNomadRefSet
impl UnwindSafe for RemoteNomadRefSet
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