/// Adds a 0 byte to terminate the `start_after` value given. This allows CosmWasm
/// to get the succeeding key as the start of the next page.
Adds a 0 byte to terminate the `start_after` value given. This allows CosmWasm
to get the succeeding key as the start of the next page.
Adds a 0 byte to terminate the ` start_after ` value given . This allows CosmWasm to get the succeeding key as the start of the next page .
fn calculate_start_value(
    start_after: std::option::Option<cosmwasm_std::HumanAddr>,
) -> Option<Vec<u8>> {
    start_after.as_ref().map(|addr| {
        let mut bytes = addr.as_bytes().to_owned();
        bytes.push(0);
        bytes
    })
}
fn calculate_start_value ( start_after : std :: option :: Option < cosmwasm_std :: HumanAddr > , ) -> Option < Vec < u8 > > { start_after . as_ref ( ) . map ( | addr | { let mut bytes = addr . as_bytes ( ) . to_owned ( ) ; bytes . push ( 0 ) ; bytes } ) }
Adds a 0 byte to terminate the `start_after` value given.
Adds a 0 byte to terminate the ` start_after ` value given .
start_after
std::option::Option<cosmwasm_std::HumanAddr>