Trait TryLast20Bytes

pub trait TryLast20Bytes {
    // Required method
    fn try_last_20_bytes(self) -> Result<[u8; 20], BridgeError>;
}
Expand description

Fallible version of Last20Bytes.

Required Methods§

fn try_last_20_bytes(self) -> Result<[u8; 20], BridgeError>

Extract the last 20 bytes, or return an error.

Implementations on Foreign Types§

§

impl TryLast20Bytes for &[u8]

§

fn try_last_20_bytes(self) -> Result<[u8; 20], BridgeError>

Implementors§