pub fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R {
        self.0.using_encoded(|payload| {
            if payload.len() > 256 {
                f(&blake2_256(payload)[..])
            } else {
                f(payload)
            }
        })
    }
/// Get an encoded version of this payload.
///
/// Payloads longer than 256 bytes are going to be `blake2_256`-hashed.
Get an encoded version of this payload.
Payloads longer than 256 bytes are going to be `blake2_256`-hashed.
Get an encoded version of this payload . Payloads longer than 256 bytes are going to be ` blake2_256 ` - hashed .
pub fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R {
        self.0.using_encoded(|payload| {
            if payload.len() > 256 {
                f(&blake2_256(payload)[..])
            } else {
                f(payload)
            }
        })
    }
pub fn using_encoded < R , F : FnOnce ( & [ u8 ] ) -> R > ( & self , f : F ) -> R { self . 0 . using_encoded ( | payload | { if payload . len ( ) > 256 { f ( & blake2_256 ( payload ) [ .. ] ) } else { f ( payload ) } } ) }
Get an encoded version of this payload.
Get an encoded version of this payload .
&self
f
F
&self
f
F