pub struct MVHashMapView<'a, K, V> { /* private fields */ }
Expand description

A struct that is always used by a single thread performing an execution task. The struct is passed to the VM and acts as a proxy to resolve reads first in the shared multi-version data-structure. It also allows the caller to track the read-set and any dependencies.

TODO(issue 10177): MvHashMapView currently needs to be sync due to trait bounds, but should not be. In this case, the read_dependency member can have a RefCell type and the captured_reads member can have RefCell<Vec<ReadDescriptor>> type.

Implementations

Drains the captured reads.

Captures a read from the VM execution.

Return txn_idx associated with the MVHashMapView

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.