Struct lucky_commit::HashSpec
source · pub struct HashSpec<H: GitHashFn> { /* private fields */ }
Expand description
Defines a spec for a desired commit hash.
Trait Implementations§
source§impl<H: GitHashFn> FromStr for HashSpec<H>
impl<H: GitHashFn> FromStr for HashSpec<H>
source§fn 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.
source§impl<H: PartialEq + GitHashFn> PartialEq for HashSpec<H>
impl<H: PartialEq + GitHashFn> PartialEq for HashSpec<H>
impl<H: GitHashFn> StructuralPartialEq for HashSpec<H>
Auto Trait Implementations§
impl<H> Freeze for HashSpec<H>
impl<H> RefUnwindSafe for HashSpec<H>
impl<H> Send for HashSpec<H>
impl<H> Sync for HashSpec<H>
impl<H> Unpin for HashSpec<H>
impl<H> UnwindSafe for HashSpec<H>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more