module.h File Reference

Resources for parsing/loading and dumping Module instances. More...

#include "constraints.h"
#include "../module.h"
#include "../utility.h"
Include dependency graph for module.h:

Go to the source code of this file.

Functions

template<GARLIC_VIEW Layer>
static tl::expected< Module, std::error_code > garlic::parsing::load_module (Layer &&layer) noexcept
 Loads a Module from any layer. More...
 

Detailed Description

Resources for parsing/loading and dumping Module instances.

Function Documentation

◆ load_module()

template<GARLIC_VIEW Layer>
static tl::expected<Module, std::error_code> garlic::parsing::load_module ( Layer &&  layer)
staticnoexcept

Loads a Module from any layer.

Template Parameters
Layerany readable layer type conforming to garlic::ViewLayer.
Returns
an expected object containing the parsed Module or an error code describing the failure.
See also
https://tl.tartanllama.xyz/en/latest/api/expected.html

Also see GarlicError