pub struct GitRef(/* private fields */);Expand description
A concrete ref wrapper.
Implementations§
Source§impl GitRef
impl GitRef
Sourcepub const fn from_name(name: GitRefName) -> GitRef
pub const fn from_name(name: GitRefName) -> GitRef
Creates a concrete ref from a ref name.
Sourcepub const fn name(&self) -> &GitRefName
pub const fn name(&self) -> &GitRefName
Returns the ref name.
Sourcepub const fn kind(&self) -> GitRefKind
pub const fn kind(&self) -> GitRefKind
Returns the ref kind.
Trait Implementations§
Source§impl Ord for GitRef
impl Ord for GitRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for GitRef
impl PartialOrd for GitRef
impl Eq for GitRef
impl StructuralPartialEq for GitRef
Auto Trait Implementations§
impl Freeze for GitRef
impl RefUnwindSafe for GitRef
impl Send for GitRef
impl Sync for GitRef
impl Unpin for GitRef
impl UnsafeUnpin for GitRef
impl UnwindSafe for GitRef
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