[go: up one dir, main page]

Type Definition gix::config::tree::core::Abbrev

source ·
pub type Abbrev = Any<Abbrev>;
Expand description

The core.abbrev key.

Implementations§

source§

impl Abbrev

source

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.