Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
X-Lap
Commits
c24c5388
Commit
c24c5388
authored
Mar 19, 2021
by
Sven Liefgen
Browse files
Add single kind mapper
parent
14b3fe8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
c24c5388
...
...
@@ -200,6 +200,18 @@ macro_rules! map_kind {
}
}
#[macro_export]
macro_rules!
kind
{
(
$kind:expr
)
=>
{
{
#[cfg(feature
=
"xlap"
)]
$kind
#[cfg(not(feature
=
"xlap"
))]
$crate
::
Kind
::
NoKind
}
}
}
#[cfg(feature
=
"xlap"
)]
pub
unsafe
fn
init
()
{
ZERO
=
Some
(
Instant
::
now
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment