Skip to content

Feature Request: Ref type for {BigInt|BigUint} #283

Description

@TennyZhuang

Propose to introduce the BigIntRef and BigUintRef type, and the definition should be:

struct BigUintRef<'a> {
    data: &'a [BigDigit],
}
struct BigIntRef<'a> {
    sign: Sign,
    data: BigUintRef<'a>,
}

And implement all ops on them.

The feature is useful when we want to store a list of BigInt or BigUint in a flatten memory and apply op on them without a whole clone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions