Skip to main content

define_oid_wrapper

Macro define_oid_wrapper 

Source
macro_rules! define_oid_wrapper {
    ($(#[$meta:meta])* $name:ident, $oid_str:literal) => { ... };
    ($(#[$meta:meta])* $name:ident, $oid_const:path) => { ... };
}
Expand description

Macro to define OID wrapper types with AssociatedOid implementation.

This reduces boilerplate for creating simple marker types that implement the AssociatedOid trait.