Struct snapps_txn_reference_impl::event::Event[][src]

pub struct Event<'a>(pub &'a [Fp]);
Expand description

A single event emitted by a snapp. See crate::event for more.

Tuple Fields

0: &'a [Fp]

Implementations

Compute the hash input of a single event by calling HashInput::add_field for each field element in the event.

let mut hash_input = HashInput::empty();
for event_part in event.0.iter() {
    HashInput::add_field(&mut hash_input, *event_part)
}
hash_input

Compute the hash of a single event, using Event::hash_input and HashPrefixState::event.

Hash::compute_hash(HashPrefixState::event(), Event::hash_input(event))

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.