-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating IsNA
trait
#288
Updating IsNA
trait
#288
Conversation
Nice. Good to have a type-specific NA generator. You can probably lose the turbofish |
@andy-thomason, Perhaps I am missing some Rust syntax feature. |
CI fails due to |
Trait
IsNA
is modified and renamed toCanBeNA
.New static function (i.e. function with no
self
arg) is introduced::fn CanBeNA::na() -> Self
which can be used to obtain
NA
value of a given type.Modified code in key places to switch to
<type>::na()
instead of helper functions.I did not remove implementations of
CanBeNA
for primitive types (likef64
ori32
).This may be deprecated in the future.