Struct git_checks::impl_prelude::CommitId [−][src]
pub struct CommitId(_);
The Git object id of a commit.
Methods
impl CommitId[src]
impl CommitIdpub fn new<I>(id: I) -> CommitId where
I: ToString, [src]
pub fn new<I>(id: I) -> CommitId where
I: ToString, Create a new CommitId.
pub fn as_str(&self) -> &str[src]
pub fn as_str(&self) -> &strThe commit as a string reference.
Trait Implementations
impl Hash for CommitId[src]
impl Hash for CommitIdfn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for CommitId[src]
impl Clone for CommitIdfn clone(&self) -> CommitId[src]
fn clone(&self) -> CommitIdReturns 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 Display for CommitId[src]
impl Display for CommitIdfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Debug for CommitId[src]
impl Debug for CommitIdfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Eq for CommitId[src]
impl Eq for CommitIdimpl PartialEq<CommitId> for CommitId[src]
impl PartialEq<CommitId> for CommitId