I'm struggling to create a BigUint (from num_bigint from a usize.
The num_bigint crate contains the ToBigUint trait, but I'm unclear as to how to use that to instantiate a BigUint with the value 10. The num_bigint crate docs contain a (to me) strange idom for creating zero and one, but they don't seem to use the ToBigUint trait from what I can see, and I can't see how to clare that to arbitrary integers.
As well as the specific issue at hand, I think part of my issue is that I'm unclear on what rust traits are used for. I understand trait == "interface", but I have the feeling that there's something more going on - traits can somehow provide functionality as well as define an interface? Because I'm confused about traits, I'm struggling to parse the ToBigUInt documentation
Backgound: I'm a python programmer learning Rust. Thanks for any help you can give me!