morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::detail::FunctionSpec Struct Reference

The signature of a library function. More...

#include <expression.hpp>

Public Attributes

std::string_view name
 The name a document calls it by.
std::uint8_t minArgs
 The fewest arguments.
std::uint8_t maxArgs
 The most arguments; 255 for any number.
std::array< KindSet, 3 > accepts
 The kinds the first, second and every further argument accept.
TypeKind result
 The result's kind; Any when it depends on the arguments.

Detailed Description

The signature of a library function.

Definition at line 177 of file expression.hpp.

Member Data Documentation

◆ name

std::string_view morph::ui::detail::FunctionSpec::name

The name a document calls it by.

Definition at line 179 of file expression.hpp.

◆ minArgs

std::uint8_t morph::ui::detail::FunctionSpec::minArgs

The fewest arguments.

Definition at line 181 of file expression.hpp.

◆ maxArgs

std::uint8_t morph::ui::detail::FunctionSpec::maxArgs

The most arguments; 255 for any number.

Definition at line 183 of file expression.hpp.

◆ accepts

std::array<KindSet, 3> morph::ui::detail::FunctionSpec::accepts

The kinds the first, second and every further argument accept.

Definition at line 185 of file expression.hpp.

◆ result

TypeKind morph::ui::detail::FunctionSpec::result

The result's kind; Any when it depends on the arguments.

Definition at line 187 of file expression.hpp.


The documentation for this struct was generated from the following file: