pub struct BranchRefName<'a> { /* private fields */ }Implementations§
Source§impl<'a> BranchRefName<'a>
impl<'a> BranchRefName<'a>
pub const PREFIX: &'static str = "refs/heads/"
pub fn from_full(name: &'a str) -> Result<Self>
pub fn from_full_ref(name: FullRefName<'a>) -> Result<Self>
pub fn as_full_ref_name(&self) -> FullRefName<'a>
pub fn as_str(&self) -> &str
pub fn branch_name(&self) -> &str
pub fn short_name(&self) -> &str
pub fn into_str(self) -> &'a str
pub fn to_owned(&self) -> BranchRefNameBuf
Trait Implementations§
Source§impl AsRef<str> for BranchRefName<'_>
impl AsRef<str> for BranchRefName<'_>
Source§impl<'a> Clone for BranchRefName<'a>
impl<'a> Clone for BranchRefName<'a>
Source§fn clone(&self) -> BranchRefName<'a>
fn clone(&self) -> BranchRefName<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for BranchRefName<'a>
Source§impl<'a> Debug for BranchRefName<'a>
impl<'a> Debug for BranchRefName<'a>
Source§impl Display for BranchRefName<'_>
impl Display for BranchRefName<'_>
impl<'a> Eq for BranchRefName<'a>
Source§impl<'a> From<BranchRefName<'a>> for FullRefName<'a>
impl<'a> From<BranchRefName<'a>> for FullRefName<'a>
Source§fn from(name: BranchRefName<'a>) -> Self
fn from(name: BranchRefName<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for BranchRefName<'a>
impl<'a> Hash for BranchRefName<'a>
Source§impl<'a> Ord for BranchRefName<'a>
impl<'a> Ord for BranchRefName<'a>
Source§fn cmp(&self, other: &BranchRefName<'a>) -> Ordering
fn cmp(&self, other: &BranchRefName<'a>) -> Ordering
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<'a> PartialEq for BranchRefName<'a>
impl<'a> PartialEq for BranchRefName<'a>
Source§fn eq(&self, other: &BranchRefName<'a>) -> bool
fn eq(&self, other: &BranchRefName<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for BranchRefName<'a>
impl<'a> PartialOrd for BranchRefName<'a>
impl<'a> StructuralPartialEq for BranchRefName<'a>
Auto Trait Implementations§
impl<'a> Freeze for BranchRefName<'a>
impl<'a> RefUnwindSafe for BranchRefName<'a>
impl<'a> Send for BranchRefName<'a>
impl<'a> Sync for BranchRefName<'a>
impl<'a> Unpin for BranchRefName<'a>
impl<'a> UnsafeUnpin for BranchRefName<'a>
impl<'a> UnwindSafe for BranchRefName<'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