pub fn dummy_block_node_ids(num_ids: u8) -> Vec<NodeId> {
    let mut id_block = Vec::with_capacity(num_ids as usize);

    for repeat in 0..num_ids {
        let mut id = [0u8; NODE_ID_LEN];

        for byte in id.iter_mut() {
            *byte = repeat;
        }

        id_block.push(id.into())
    }

    id_block
}
/// Generates a block of unique dummy node ids as Vec<`NodeId`>
Generates a block of unique dummy node ids as Vec<`NodeId`>
Generates a block of unique dummy node ids as Vec< ` NodeId ` >
pub fn dummy_block_node_ids(num_ids: u8) -> Vec<NodeId> {
    let mut id_block = Vec::with_capacity(num_ids as usize);
    for repeat in 0..num_ids {
        let mut id = [0u8; NODE_ID_LEN];
        for byte in id.iter_mut() {
            *byte = repeat;
        }
        id_block.push(id.into())
    }
    id_block
}
pub fn dummy_block_node_ids ( num_ids : u8 ) -> Vec < NodeId > { let mut id_block = Vec :: with_capacity ( num_ids as usize ) ; for repeat in 0 .. num_ids { let mut id = [ 0u8 ; NODE_ID_LEN ] ; for byte in id . iter_mut ( ) { * byte = repeat ; } id_block . push ( id . into ( ) ) } id_block }
Generates a block of unique dummy node ids as Vec<`NodeId`>
Generates a block of unique dummy node ids as Vec< ` NodeId ` >
num_ids
u8
num_ids
u8