linera-sdk 0.15.17

Library to support developing Linera applications in Rust.
Documentation
// 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>;