linera_sdk/views/aliases.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
// Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Aliases for views using the [`ViewStorageContext`].
use super::ViewStorageContext;
/// An alias to [`linera_views::collection_view::ByteCollectionView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type ByteCollectionView<V> =
linera_views::collection_view::ByteCollectionView<ViewStorageContext, V>;
/// An alias to [`linera_views::map_view::ByteMapView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type ByteMapView<V> = linera_views::map_view::ByteMapView<ViewStorageContext, V>;
/// An alias to [`linera_views::set_view::ByteSetView`] that uses the WebAssembly-specific
/// [`ViewStorageContext`].
pub type ByteSetView = linera_views::set_view::ByteSetView<ViewStorageContext>;
/// An alias to [`linera_views::collection_view::CollectionView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type CollectionView<K, V> =
linera_views::collection_view::CollectionView<ViewStorageContext, K, V>;
/// An alias to [`linera_views::collection_view::CustomCollectionView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type CustomCollectionView<K, V> =
linera_views::collection_view::CustomCollectionView<ViewStorageContext, K, V>;
/// An alias to [`linera_views::map_view::CustomMapView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type CustomMapView<K, V> = linera_views::map_view::CustomMapView<ViewStorageContext, K, V>;
/// An alias to [`linera_views::set_view::CustomSetView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type CustomSetView<W> = linera_views::set_view::CustomSetView<ViewStorageContext, W>;
/// An alias to [`linera_views::log_view::LogView`] that uses the WebAssembly-specific
/// [`ViewStorageContext`].
pub type LogView<T> = linera_views::log_view::LogView<ViewStorageContext, T>;
/// An alias to [`linera_views::map_view::MapView`] that uses the WebAssembly-specific
/// [`ViewStorageContext`].
pub type MapView<K, V> = linera_views::map_view::MapView<ViewStorageContext, K, V>;
/// An alias to [`linera_views::queue_view::QueueView`] that uses the WebAssembly-specific
/// [`ViewStorageContext`].
pub type QueueView<T> = linera_views::queue_view::QueueView<ViewStorageContext, T>;
/// An alias to [`linera_views::collection_view::ReadGuardedView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type ReadGuardedView<'a, W> = linera_views::collection_view::ReadGuardedView<'a, W>;
/// An alias to [`linera_views::register_view::RegisterView`] that uses the
/// WebAssembly-specific [`ViewStorageContext`].
pub type RegisterView<T> = linera_views::register_view::RegisterView<ViewStorageContext, T>;
/// An alias to [`linera_views::set_view::SetView`] that uses the WebAssembly-specific
/// [`ViewStorageContext`].
pub type SetView<W> = linera_views::set_view::SetView<ViewStorageContext, W>;