pub fn number_index_key<N>(n: N) -> NumberIndexKey where N: As<u64> {
	let n: u64 = n.as_();
	assert!(n & 0xffffffff00000000 == 0);

	[
		(n >> 24) as u8,
		((n >> 16) & 0xff) as u8,
		((n >> 8) & 0xff) as u8,
		(n & 0xff) as u8
	]
}
/// Convert block number into short lookup key (LE representation) for
/// blocks that are in the canonical chain.
///
/// In the current database schema, this kind of key is only used for
/// lookups into an index, NOT for storing header data or others.
Convert block number into short lookup key (LE representation) for
blocks that are in the canonical chain.

In the current database schema, this kind of key is only used for
lookups into an index, NOT for storing header data or others.
Convert block number into short lookup key ( LE representation ) for blocks that are in the canonical chain . In the current database schema this kind of key is only used for lookups into an index NOT for storing header data or others .
pub fn number_index_key<N>(n: N) -> NumberIndexKey where N: As<u64> {
	let n: u64 = n.as_();
	assert!(n & 0xffffffff00000000 == 0);
	[
		(n >> 24) as u8,
		((n >> 16) & 0xff) as u8,
		((n >> 8) & 0xff) as u8,
		(n & 0xff) as u8
	]
}
pub fn number_index_key < N > ( n : N ) -> NumberIndexKey where N : As < u64 > { let n : u64 = n . as_ ( ) ; assert ! ( n 0xffffffff00000000 0 ) ; [ ( n >> 24 ) as u8 , ( ( n >> 16 ) & 0xff ) as u8 , ( ( n >> 8 ) & 0xff ) as u8 , ( n & 0xff ) as u8 ] }
Convert block number into short lookup key (LE representation) for
blocks that are in the canonical chain.
Convert block number into short lookup key ( LE representation ) for blocks that are in the canonical chain .
n
N
n
N