Macro view_type

#[macro_export]
macro_rules! view_type {
    ($($arg:tt)*) => { ... };
}

Creates a view type.

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

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