access

Macro access 

Source
macro_rules! access {
    (public) => { ... };
    (private) => { ... };
    (protected) => { ... };
    (internal) => { ... };
    (protected internal) => { ... };
    (private protected) => { ... };
}
Expand description

Construct an Accessibility value using C#-style keywords.

This is a tiny convenience macro intended for examples and builders.

use dotnetdll::prelude::*;

let a = access!(public);
let a = access!(private);
let a = access!(protected internal);
let a = access!(private protected);