macro_rules! view_type {
($($arg:tt)*) => { ... };
}🔬This is a nightly-only experimental API. (
view_type_macro)Expand description
Creates a view type.
#![feature(view_types, view_type_macro)]
struct Foo {
bar: usize,
baz: u32,
}
type FooBar = std::view::view_type!(Foo.{ bar });