`base_convert`: Do not allocate.
Closed this issue · 0 comments
github-actions commented
On 2023-07-27 @prestwich wrote in e34200e
“Merge pull request #274 from DaniPopes/no_std2”:
Do not allocate.
/// fit.
pub fn from_base_le<I: IntoIterator<Item = u64>>(
base: u64,
digits: I,
) -> Result<Self, BaseConvertError> {
// TODO: Do not allocate.
let mut digits: Vec<_> = digits.into_iter().collect();
digits.reverse();
Self::from_base_be(base, digits)
}