Struct radicle_surf::Remote
source · pub struct Remote { /* private fields */ }
Expand description
A Remote
represents a remote branch, i.e. it is a reference under
refs/remotes
.
Note that if a Remote
is created from a git2::Reference
then
any refs/namespaces
will be stripped.
Implementations§
source§impl Remote
impl Remote
sourcepub fn from_refs_remotes<R>(name: R) -> Option<Self>
pub fn from_refs_remotes<R>(name: R) -> Option<Self>
Parse the name
from the form refs/remotes/<remote>/<rest>
.
If the name
is not of this form, then None
is returned.
sourcepub fn short_name(&self) -> &RefString
pub fn short_name(&self) -> &RefString
Return the short Remote
refname,
e.g. fix/ref-format
.
Trait Implementations§
source§impl Ord for Remote
impl Ord for Remote
source§impl PartialOrd for Remote
impl PartialOrd for Remote
impl Eq for Remote
impl StructuralPartialEq for Remote
Auto Trait Implementations§
impl Freeze for Remote
impl RefUnwindSafe for Remote
impl Send for Remote
impl Sync for Remote
impl Unpin for Remote
impl UnwindSafe for Remote
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)