Struct git_historian::SHA1
[−]
[src]
pub struct SHA1 { /* fields omitted */ }
A 20-byte SHA1 hash, used for identifying objects in Git.
Methods
impl SHA1
[src]
fn parse(s: &str) -> Result<SHA1, SHA1ParseError>
Parses a SHA1 from a 40 character hex string
Trait Implementations
impl Copy for SHA1
[src]
impl Clone for SHA1
[src]
fn clone(&self) -> SHA1
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SHA1
[src]
impl PartialEq for SHA1
[src]
fn eq(&self, __arg_0: &SHA1) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SHA1) -> bool
This method tests for !=
.
impl Eq for SHA1
[src]
impl Hash for SHA1
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more