mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-23 04:55:28 +00:00
![]() Instead of occupying multiple TLS slots, introduce a single type that stores all the builtin function types in members. Use a macro to define this struct then, which allows us to use a nice DSL to define these function types, reducing the boiler plate significantly. The downside is that we no longer have the ability to easily share semantically equivalent function types (e.g. for `Round`, `Ceil` and `Floor` etc.). Doing so would require us to introdue a separate name for these types, and then use external matching to map the BuiltinFunctions to the reduced list of types. The performance impact is minimal though, so this is not done to KISS. |
||
---|---|---|
.. | ||
generator | ||
LICENSES | ||
llr | ||
lookup | ||
parser | ||
parser-test-macro | ||
passes | ||
tests | ||
widgets | ||
build.rs | ||
builtin_macros.rs | ||
builtins.slint | ||
Cargo.toml | ||
diagnostics.rs | ||
embedded_resources.rs | ||
expression_tree.rs | ||
fileaccess.rs | ||
generator.rs | ||
langtype.rs | ||
layout.rs | ||
lexer.rs | ||
lib.rs | ||
literals.rs | ||
llr.rs | ||
load_builtins.rs | ||
lookup.rs | ||
namedreference.rs | ||
object_tree.rs | ||
parser.rs | ||
passes.rs | ||
pathutils.rs | ||
README.md | ||
typeloader.rs | ||
typeregister.rs |
The Slint Compiler Library
NOTE: This library is an internal crate of the Slint project.
This crate should not be used directly by applications using Slint.
You should use the slint
crate instead.
WARNING: This crate does not follow the semver convention for versioning and can
only be used with version = "=x.y.z"
in Cargo.toml.