Skip to main content

SHA1_HEX_LENGTH

Constant SHA1_HEX_LENGTH 

Source
pub const SHA1_HEX_LENGTH: usize = 40;
Expand description

What: Length in hexadecimal digits of a SHA-1 object name. usize is the unsigned integer every length and index uses (siblings u32, u64, i64). Why: usize is what .len() returns, so comparing needs no conversion.

In TS you’d write (pseudocode):

const SHA1_HEX_LENGTH = 40;