Struct git_ref::PartialNameRef
source · [−]#[repr(transparent)]pub struct PartialNameRef(_);
Expand description
A validated complete and fully qualified referenced reference name, safe to use for all operations.
Implementations
sourceimpl PartialNameRef
impl PartialNameRef
sourcepub fn to_partial_path(&self) -> &Path
pub fn to_partial_path(&self) -> &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 AsRef<PartialNameRef> for PartialName
impl AsRef<PartialNameRef> for PartialName
sourcefn as_ref(&self) -> &PartialNameRef
fn as_ref(&self) -> &PartialNameRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<PartialNameRef> for PartialName
impl Borrow<PartialNameRef> for PartialName
sourcefn borrow(&self) -> &PartialNameRef
fn borrow(&self) -> &PartialNameRef
Immutably borrows from an owned value. Read more
sourceimpl Debug for PartialNameRef
impl Debug for PartialNameRef
sourceimpl<'a> From<&'a FullNameRef> for &'a PartialNameRef
impl<'a> From<&'a FullNameRef> for &'a PartialNameRef
sourcefn from(v: &'a FullNameRef) -> Self
fn from(v: &'a FullNameRef) -> Self
Converts to this type from the input type.
sourceimpl Hash for PartialNameRef
impl Hash for PartialNameRef
sourceimpl Ord for PartialNameRef
impl Ord for PartialNameRef
sourceimpl PartialEq<PartialNameRef> for PartialNameRef
impl PartialEq<PartialNameRef> for PartialNameRef
sourcefn eq(&self, other: &PartialNameRef) -> bool
fn eq(&self, other: &PartialNameRef) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PartialNameRef) -> bool
fn ne(&self, other: &PartialNameRef) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PartialNameRef> for PartialNameRef
impl PartialOrd<PartialNameRef> for PartialNameRef
sourcefn partial_cmp(&self, other: &PartialNameRef) -> Option<Ordering>
fn partial_cmp(&self, other: &PartialNameRef) -> 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 ToOwned for PartialNameRef
impl ToOwned for PartialNameRef
type Owned = PartialName
type Owned = PartialName
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more