Macro vm_resource::declare_static_resolver
source · macro_rules! declare_static_resolver { ($resolver:tt, $(($kind:ty, $resource:ty $(,)?)),* $(,)?) => { ... }; }
Expand description
Declares the resource kinds and types that a static resolver can resolve.
This can be used along with register_static_resolvers
to build up the
list of resolvers at link time, simplifying construction of the resolver
list.
ⓘ
declare_static_resolver! {
FileDiskResolver,
(DiskConfigKind, FileDiskConfig),
(DiskHandleKind, FileDiskHandle),
}