Current section

Files

Jump to
startest src startest@internal@unsafe.erl
Raw

src/startest@internal@unsafe.erl

-module(startest@internal@unsafe).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-define(FILEPATH, "src/startest/internal/unsafe.gleam").
-export([coerce/1, from/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.
?MODULEDOC(false).
-file("src/startest/internal/unsafe.gleam", 3).
?DOC(false).
-spec coerce(gleam@dynamic:dynamic_()) -> any().
coerce(Value) ->
gleam_stdlib:identity(Value).
-file("src/startest/internal/unsafe.gleam", 11).
?DOC(false).
-spec from(any()) -> gleam@dynamic:dynamic_().
from(Value) ->
gleam_stdlib:identity(Value).