Enum git2::ReferenceType [−][src]
An enumeration of all possile kinds of references.
Variants
A reference which points at an object id.
A reference which points at another reference.
Implementations
impl ReferenceType
[src]
pub fn str(&self) -> &'static str
[src]
Convert an object type to its string representation.
pub fn from_raw(raw: git_reference_t) -> Option<ReferenceType>
[src]
Convert a raw git_reference_t to a ReferenceType.
Trait Implementations
impl Clone for ReferenceType
[src]
fn clone(&self) -> ReferenceType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ReferenceType
[src]
impl Debug for ReferenceType
[src]
impl Display for ReferenceType
[src]
impl Eq for ReferenceType
[src]
impl PartialEq<ReferenceType> for ReferenceType
[src]
fn eq(&self, other: &ReferenceType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ReferenceType
[src]
impl StructuralPartialEq for ReferenceType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReferenceType
impl Send for ReferenceType
impl Sync for ReferenceType
impl Unpin for ReferenceType
impl UnwindSafe for ReferenceType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,