Skip to main content

core/
view.rs

1//! Helpers module for exporting the `view_types` macro.
2
3/// Creates a view type.
4/// ```
5/// #![feature(view_types)]
6//
7/// struct Foo {
8///     bar: usize,
9///     baz: u32,
10/// }
11///
12/// type FooBar = std::view::view_type!(Foo.{ bar });
13/// ```
14#[allow_internal_unstable(internal_syntax)]
15#[unstable(feature = "view_types", issue = "155938")]
16#[diagnostic::opaque]
17pub macro view_type($($arg:tt)*) {
18    k#view_type($($arg)*)
19}