-
Notifications
You must be signed in to change notification settings - Fork 97
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
Make functions const where possible #165
Comments
Is there an update on this issue? It would great to allow defining quantities in a const UNIX_EPOCH_DELTA: Time = Time::new::<time::second>(11644473600.0); |
No updates yet. I just haven't had/made the time to get to it. PRs very welcome if anyone wants to tackle this. I would probably start by dropping a |
I am not sure this is currently possible for all storage types, e.g. for floating-point numbers the conversion to the system's base unit generally involves floating-point arithmetic which is still unstable behind the feature |
Requires Rust 1.31 for support. Bump requirement for v1.0 or continuing to wait on feature until v2.0? What methods can be
const
besidesnew
. Willconst fn
make zero constants easier (#26)?The text was updated successfully, but these errors were encountered: