FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
techscript/stdlib/src/binary.rs at main · Tcode-Motion/techscript · GitHub
Tcode-Motion
/
techscript
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
7
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
techscript
/
stdlib
/
src
/
binary.rs
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (19 loc) · 642 Bytes
Breadcrumbs
techscript
/
stdlib
/
src
/
binary.rs
Copy path
File metadata and controls
21 lines (19 loc) · 642 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use
crate
::
{
StdFunction
,
StdlibModule
,
StdlibRegistry
}
;
use
std
::
collections
::
HashMap
;
use
std
::
rc
::
Rc
;
use
techscript_runtime
::
{
error
::
RuntimeError
,
value
::
RuntimeValue
}
;
impl
StdlibRegistry
{
pub
fn
register_binary
(
&
mut
self
)
{
let
mut
exports
:
HashMap
<
String
,
Rc
<
dyn
techscript_runtime
::
function
::
Callable
>
>
=
HashMap
::
new
(
)
;
self
.
register_module
(
"std.binary"
,
StdlibModule
{
name
:
"std.binary"
.
to_string
(
)
,
version
:
"1.0.0"
.
to_string
(
)
,
exports
,
required_capabilities
:
Vec
::
new
(
)
,
}
,
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL