Skip to main content

view_type

Macro view_type 

Source
pub macro view_type($($arg:tt)*) {
    ...
}
🔬This is a nightly-only experimental API. (view_types #155938)
Expand description

Creates a view type.

#![feature(view_types)]
struct Foo {
    bar: usize,
    baz: u32,
}

type FooBar = std::view::view_type!(Foo.{ bar });