Current section
Files
Jump to
Current section
Files
src/unsafe_cast.erl
-module(unsafe_cast).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/unsafe_cast.gleam").
-export([unsafe_function_that_simply_renames_the_type_of_this_value_to_another_type_and_i_am_sure_that_this_usage_is_safe/1]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
-file("src/unsafe_cast.gleam", 4).
?DOC(" Make sure to explicitly define the input and output type of functions to retrict the usage!\n").
-spec unsafe_function_that_simply_renames_the_type_of_this_value_to_another_type_and_i_am_sure_that_this_usage_is_safe(
any()
) -> any().
unsafe_function_that_simply_renames_the_type_of_this_value_to_another_type_and_i_am_sure_that_this_usage_is_safe(
X
) ->
unsafe_cast_ffi:an_unsafe_cast(X).