Struct git_ref::PartialNameRef
source · [−]pub struct PartialNameRef<'a>(_);
Expand description
A validated complete and fully qualified reference name, safe to use for all operations.
Implementations
sourceimpl<'a> PartialNameRef<'a>
impl<'a> PartialNameRef<'a>
sourcepub fn to_partial_path(&'a self) -> &'a Path
pub fn to_partial_path(&'a self) -> &'a Path
Convert this name into the relative path possibly identifying the reference location. Note that it may be only a partial path though.
Trait Implementations
sourceimpl<'a> Clone for PartialNameRef<'a>
impl<'a> Clone for PartialNameRef<'a>
sourcefn clone(&self) -> PartialNameRef<'a>
fn clone(&self) -> PartialNameRef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for PartialNameRef<'a>
impl<'a> Debug for PartialNameRef<'a>
sourceimpl<'a> Hash for PartialNameRef<'a>
impl<'a> Hash for PartialNameRef<'a>
sourceimpl<'a> Ord for PartialNameRef<'a>
impl<'a> Ord for PartialNameRef<'a>
sourceimpl<'a> PartialEq<PartialNameRef<'a>> for PartialNameRef<'a>
impl<'a> PartialEq<PartialNameRef<'a>> for PartialNameRef<'a>
sourcefn eq(&self, other: &PartialNameRef<'a>) -> bool
fn eq(&self, other: &PartialNameRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PartialNameRef<'a>) -> bool
fn ne(&self, other: &PartialNameRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<PartialNameRef<'a>> for PartialNameRef<'a>
impl<'a> PartialOrd<PartialNameRef<'a>> for PartialNameRef<'a>
sourcefn partial_cmp(&self, other: &PartialNameRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PartialNameRef<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'a> TryFrom<&'a BStr> for PartialNameRef<'a>
impl<'a> TryFrom<&'a BStr> for PartialNameRef<'a>
sourceimpl<'a> TryFrom<&'a OsStr> for PartialNameRef<'a>
impl<'a> TryFrom<&'a OsStr> for PartialNameRef<'a>
sourceimpl<'a> TryFrom<&'a String> for PartialNameRef<'a>
impl<'a> TryFrom<&'a String> for PartialNameRef<'a>
sourceimpl<'a> TryFrom<&'a str> for PartialNameRef<'a>
impl<'a> TryFrom<&'a str> for PartialNameRef<'a>
sourceimpl TryFrom<BString> for PartialNameRef<'static>
impl TryFrom<BString> for PartialNameRef<'static>
sourceimpl<'a> TryFrom<FullNameRef<'a>> for PartialNameRef<'a>
impl<'a> TryFrom<FullNameRef<'a>> for PartialNameRef<'a>
type Error = Infallible
type Error = Infallible
The type returned in the event of a conversion error.
sourcefn try_from(v: FullNameRef<'a>) -> Result<Self, Self::Error>
fn try_from(v: FullNameRef<'a>) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<String> for PartialNameRef<'static>
impl TryFrom<String> for PartialNameRef<'static>
impl<'a> Eq for PartialNameRef<'a>
impl<'a> StructuralEq for PartialNameRef<'a>
impl<'a> StructuralPartialEq for PartialNameRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PartialNameRef<'a>
impl<'a> Send for PartialNameRef<'a>
impl<'a> Sync for PartialNameRef<'a>
impl<'a> Unpin for PartialNameRef<'a>
impl<'a> UnwindSafe for PartialNameRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more