Function avalanche_types::ids::bits::first_difference_subset
source · pub fn first_difference_subset(
start: usize,
end: usize,
id1: &Id,
id2: &Id
) -> (usize, bool)
Expand description
Returns the “id1” index of the first different bit in the range [start, end). This does bit-per-bit comparison for the Id type of [u8; ID_LEN]. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/ids#FirstDifferenceSubset