Skip to main content

DigestOpExt

Trait DigestOpExt 

Source
pub trait DigestOpExt: Digest {
    const OPCODE: DigestOp;

    // Required method
    fn opcode() -> DigestOp;
}
Expand description

Extension trait for Digest implementors to get the corresponding DigestOp.

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DigestOpExt for Ripemd160

Source§

const OPCODE: DigestOp = DigestOp::RIPEMD160

Source§

fn opcode() -> DigestOp

Source§

impl DigestOpExt for Sha1

Source§

const OPCODE: DigestOp = DigestOp::SHA1

Source§

fn opcode() -> DigestOp

Source§

impl DigestOpExt for Sha256

Source§

const OPCODE: DigestOp = DigestOp::SHA256

Source§

fn opcode() -> DigestOp

Source§

impl DigestOpExt for Keccak256

Source§

const OPCODE: DigestOp = DigestOp::KECCAK256

Source§

fn opcode() -> DigestOp

Implementors§