Struct std::hash::Hasher

pub struct Hasher {
    bytes: Bytes,
}

Fields

bytes: Bytes

Implementations

fn new() -> Self

fn write(
refmut self,
bytes: Bytes,
)

Writes some data into this Hasher.

fn sha256(self) -> b256

fn keccak256(self) -> b256

fn write_str(
refmut self,
s: str,
)

Writes a single str into this hasher.

fn write_str_array(
refmut self,
s: S,
)

Trait Implementations

fn abi_encode(self, buffer: Buffer) -> Buffer