uint icon indicating copy to clipboard operation
uint copied to clipboard

`support/num_traits`: AsPrimitive

Open github-actions[bot] opened this issue 1 year ago • 0 comments

On 2023-08-28 @recmo wrote in 585c5ce “Merge pull request #298 from recmo/num-traits”:

AsPrimitive

    pow::Pow,
    sign::Unsigned,
    CheckedEuclid, Euclid, Inv, MulAdd, MulAddAssign, Num, NumCast,
};

// TODO: AsPrimitive

// Note. We can not implement `NumBytes` as it requires T to be `AsMut<[u8]>`.
// This is not safe for `Uint` when `BITS % 8 != 0`.

impl<const BITS: usize, const LIMBS: usize> Zero for Uint<BITS, LIMBS> {

From src/support/num_traits.rs:29

github-actions[bot] avatar Aug 28 '23 18:08 github-actions[bot]