pub struct FullRefName<'a> { /* private fields */ }Implementations§
Source§impl<'a> FullRefName<'a>
impl<'a> FullRefName<'a>
pub fn new(name: &'a str) -> Result<Self>
pub fn as_str(&self) -> &str
pub fn into_str(self) -> &'a str
pub fn to_owned(&self) -> FullRefNameBuf
pub fn as_branch(&self) -> Result<BranchRefName<'a>>
pub fn as_tag(&self) -> Result<TagRefName<'a>>
pub fn as_remote(&self) -> Result<RemoteRefName<'a>>
Trait Implementations§
Source§impl AsRef<str> for FullRefName<'_>
impl AsRef<str> for FullRefName<'_>
Source§impl<'a> Clone for FullRefName<'a>
impl<'a> Clone for FullRefName<'a>
Source§fn clone(&self) -> FullRefName<'a>
fn clone(&self) -> FullRefName<'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 FullRefName<'a>
Source§impl<'a> Debug for FullRefName<'a>
impl<'a> Debug for FullRefName<'a>
Source§impl Display for FullRefName<'_>
impl Display for FullRefName<'_>
impl<'a> Eq for FullRefName<'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> From<RemoteRefName<'a>> for FullRefName<'a>
impl<'a> From<RemoteRefName<'a>> for FullRefName<'a>
Source§fn from(name: RemoteRefName<'a>) -> Self
fn from(name: RemoteRefName<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TagRefName<'a>> for FullRefName<'a>
impl<'a> From<TagRefName<'a>> for FullRefName<'a>
Source§fn from(name: TagRefName<'a>) -> Self
fn from(name: TagRefName<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for FullRefName<'a>
impl<'a> Hash for FullRefName<'a>
Source§impl<'a> Ord for FullRefName<'a>
impl<'a> Ord for FullRefName<'a>
Source§fn cmp(&self, other: &FullRefName<'a>) -> Ordering
fn cmp(&self, other: &FullRefName<'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 FullRefName<'a>
impl<'a> PartialEq for FullRefName<'a>
Source§fn eq(&self, other: &FullRefName<'a>) -> bool
fn eq(&self, other: &FullRefName<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for FullRefName<'a>
impl<'a> PartialOrd for FullRefName<'a>
impl<'a> StructuralPartialEq for FullRefName<'a>
Auto Trait Implementations§
impl<'a> Freeze for FullRefName<'a>
impl<'a> RefUnwindSafe for FullRefName<'a>
impl<'a> Send for FullRefName<'a>
impl<'a> Sync for FullRefName<'a>
impl<'a> Unpin for FullRefName<'a>
impl<'a> UnsafeUnpin for FullRefName<'a>
impl<'a> UnwindSafe for FullRefName<'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