Enum git2::ReferenceType [−][src]
pub enum ReferenceType {
Direct,
Symbolic,
}Expand description
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]
impl ReferenceType[src]pub fn from_raw(raw: git_reference_t) -> Option<ReferenceType>[src]
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]
impl Clone for ReferenceType[src]fn clone(&self) -> ReferenceType[src]
fn clone(&self) -> ReferenceType[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for ReferenceType[src]
impl Debug for ReferenceType[src]impl Display for ReferenceType[src]
impl Display for ReferenceType[src]impl PartialEq<ReferenceType> for ReferenceType[src]
impl PartialEq<ReferenceType> for ReferenceType[src]impl Copy for ReferenceType[src]
impl Eq for ReferenceType[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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more