Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
943 views
in Technique[技术] by (71.8m points)

rust - What happened to std::num::Primitive?

I found Primitive through Google but it appears to be from a pre-beta version and my compiler (beta 3) complains that it can't find it. Can anyone point me to where it has moved or if there is an equivalent? Web searching hasn't thrown up anything promising

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It was removed, since it wasn't being used at the time.

You can write your own marker trait of the form, though.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...