Struct git_checks::impl_prelude::CommitId [−][src]
pub struct CommitId(_);
The Git object id of a commit.
Methods
impl CommitId
[src]
impl CommitId
pub 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) -> &str
The commit as a string reference.
Trait Implementations
impl Hash for CommitId
[src]
impl Hash for CommitId
fn 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 Display for CommitId
[src]
impl Display for CommitId
fn 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 Clone for CommitId
[src]
impl Clone for CommitId
fn clone(&self) -> CommitId
[src]
fn clone(&self) -> CommitId
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 CommitId
[src]
impl Debug for CommitId
fn 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 CommitId
impl PartialEq<CommitId> for CommitId
[src]
impl PartialEq<CommitId> for CommitId