You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
is there a way to convert Natural to primitive integer, like u64 without adding malachite_base as dependency? I've looked at malachite::natural::conversion::primitive_int_from_natural module, but there doesn't seem to be any trait implementations I can import. Examples use trait implementations from malachite_base.
Thanks
The text was updated successfully, but these errors were encountered:
I understand that malachite crate just exports stuff from these malachite-nz, malachite-base, ... crates and that just using malachite as dependency also pulls those crates, but I don't understand why I can't just use conversion on Natural type directly from malachite but have to do it from malachite-nz. From what I can tell malachite just exports Natural from malachite-nz, but in the docs on malachite there are no TryFrom Natural for primitive integers like there are in docs for Natural in malachite-nz (that you linked). I am looking at docs for v0.4.4, since v0.4.5 docs aren't available, but I also tried building them locally for v0.4.5 and there also aren't implementations for TryFrom Natural for natural exported in malachite, but there are those for Natural in malachite-nz.
It seems to me that these implementations of TryFrom should also be exported into malachite from malachite-nz, but for some reason that is not happening. Is it maybe a bug?
Hi,
is there a way to convert Natural to primitive integer, like u64 without adding malachite_base as dependency? I've looked at malachite::natural::conversion::primitive_int_from_natural module, but there doesn't seem to be any trait implementations I can import. Examples use trait implementations from malachite_base.
Thanks
The text was updated successfully, but these errors were encountered: