Enum git2::ReferenceType [−][src]
pub enum ReferenceType { Oid, Symbolic, }
An enumeration of all possile kinds of references.
Variants
Oid
A reference which points at an object id.
Symbolic
A reference which points at another reference.
Methods
impl ReferenceType
[src]
impl ReferenceType
pub fn str(&self) -> &'static str
[src]
pub fn str(&self) -> &'static str
Convert an object type to its string representation.
pub fn from_raw(raw: git_ref_t) -> Option<ReferenceType>
[src]
pub fn from_raw(raw: git_ref_t) -> Option<ReferenceType>
Convert a raw git_ref_t to a ReferenceType.
Trait Implementations
impl PartialEq for ReferenceType
[src]
impl PartialEq for ReferenceType
fn eq(&self, other: &ReferenceType) -> bool
[src]
fn eq(&self, other: &ReferenceType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for ReferenceType
[src]
impl Eq for ReferenceType
impl Copy for ReferenceType
[src]
impl Copy for ReferenceType
impl Clone for ReferenceType
[src]
impl Clone for ReferenceType
fn clone(&self) -> ReferenceType
[src]
fn clone(&self) -> ReferenceType
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
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ReferenceType
[src]
impl Display for ReferenceType
Auto Trait Implementations
impl Send for ReferenceType
impl Send for ReferenceType
impl Sync for ReferenceType
impl Sync for ReferenceType