Skip to content
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

Why not make zero() and one() as const functions? #278

Closed
mhfan opened this issue Jul 15, 2023 · 2 comments
Closed

Why not make zero() and one() as const functions? #278

mhfan opened this issue Jul 15, 2023 · 2 comments

Comments

@mhfan
Copy link

mhfan commented Jul 15, 2023

fn zero() -> Self;

Thus can be used to initialize const values.

@tarcieri
Copy link
Contributor

See #276

@cuviper
Copy link
Member

cuviper commented Jul 20, 2023

Yeah, and as mentioned there, not all types can support const values.

@cuviper cuviper closed this as completed Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants