Struct lucky_commit::HashSpec
source · [−]pub struct HashSpec<H: GitHashFn> { /* private fields */ }
Expand description
Defines a spec for a desired commit hash.
Trait Implementations
sourceimpl<H: GitHashFn> FromStr for HashSpec<H>
impl<H: GitHashFn> FromStr for HashSpec<H>
sourcefn from_str(prefix_string: &str) -> Result<Self, Self::Err>
fn from_str(prefix_string: &str) -> Result<Self, Self::Err>
Parses a HashSpec from a string. The string must only contain hex characters (0-9, a-f, A-F), indicating the hex value that the hash should have at a given position, or ‘’, indicating that the hash can have any value at the given position. All positions in the hash beyond the length of the string are treated as unspecified (equivalent to if the string was right-padded with ‘’).
type Err = ParseHashSpecErr
type Err = ParseHashSpecErr
The associated error which can be returned from parsing.
sourceimpl<H: PartialEq + GitHashFn> PartialEq<HashSpec<H>> for HashSpec<H> where
H::State: PartialEq,
H::State: PartialEq,
impl<H: PartialEq + GitHashFn> PartialEq<HashSpec<H>> for HashSpec<H> where
H::State: PartialEq,
H::State: PartialEq,
impl<H: GitHashFn> StructuralPartialEq for HashSpec<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for HashSpec<H> where
<H as GitHashFn>::State: RefUnwindSafe,
impl<H> Send for HashSpec<H>
impl<H> Sync for HashSpec<H> where
<H as GitHashFn>::State: Sync,
impl<H> Unpin for HashSpec<H> where
<H as GitHashFn>::State: Unpin,
impl<H> UnwindSafe for HashSpec<H> where
<H as GitHashFn>::State: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more