Struct std::hash::Hasher

pub struct Hasher {
    bytes: Bytes,
}

Fields

bytes: Bytes

Implementations

pub fn new() -> Self

pub fn with_capacity(capacity: u64) -> Self

pub fn write(
refmut self,
bytes: Bytes,
)

Appends bytes to this Hasher.

pub fn write_raw_slice(
refmut self,
slice: raw_slice,
)

Appends bytes from the slice to this Hasher.

pub fn write_u8(
refmut self,
value: u8,
)

Appends u8 value to this Hasher.

pub fn write_str(
refmut self,
s: str,
)

Appends a single str to this Hasher.

pub fn write_str_array(
refmut self,
s: S,
)

Appends a single string array to this Hasher.

pub fn sha256(self) -> b256

pub fn keccak256(self) -> b256

Trait Implementations

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

pub fn abi_decode(refmut buffer: BufferReader) -> Self

pub fn fmt(
self,
refmut _f: Formatter,
)