pub type Abbrev = Any<Abbrev>;Expand description
The core.abbrev key.
Implementations§
source§impl Abbrev
impl Abbrev
sourcepub fn try_into_abbreviation(
&'static self,
hex_len_str: Cow<'_, BStr>,
object_hash: Kind
) -> Result<Option<usize>, Error>
pub fn try_into_abbreviation( &'static self, hex_len_str: Cow<'_, BStr>, object_hash: Kind ) -> Result<Option<usize>, Error>
Convert the given hex_len_str into the amount of characters that a short hash should have.
If None is returned, the correct value can be determined based on the amount of objects in the repo.