Initializerswift-hash 0.7.1SHA1
init(_:)
SHA1.swift:61init?(_ description: borrowing String)
init?(_ description: borrowing String)
import SHA1
@frozen struct SHA1
The value of a SHA-1 hash.
@frozen struct String
A Unicode string value that is a collection of characters.
init?(_ description: borrowing Substring)
init(integerLiteral: StaticBigInt)
static func copy(from bytes: some RandomAccessCollection<UInt8>) -> `Self`?
var description: String { get }
var endIndex: Int { get }
var startIndex: Int { get }
subscript(index: Int) -> UInt8 { get set }
static func < (lhs: `Self`, rhs: `Self`) -> Bool
Compares two SHA1 hashes in the order they would sort if they were printed as base-16 strings with consistent casing. (This function does not actually convert the hashes to strings.)