Skip to content

bitwise: support left/right shift using the native wrapping api #2741

Closed
@liukun4515

Description

@liukun4515

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The current of rust
https://doc.rust-lang.org/std/num/struct.Wrapping.html#

wrapping_shl and wrapping_shr is not stable.

the shift bit must be u32 data type

part of #2702

Now we just implement this use value.wrapping_shl(u32), after the feature is stable, we can replace them.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changeloggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions