Views are a specific functionality of the Linera system that allow to have data in memory and then seamlessly flush it to an underlying persistent datastore.
The full documentation is available on the crate documentation with all functions having examples.
Concretely, what is provided is the following:
delete. The idea is that we can do operation on the data and then flush it to the database storing them.
Several other traits
CryptoHashRootViewthat are important for computing hash.
A number of standard containers:
RegisterViewthat implement the
ReentrantCollectionViewthat are similar to
MapViewbut whose values are views themselves.
Derive macros that allow to implement the above mentioned traits on struct data types whose entries are views.