Skip to main content

WordRotate

Trait WordRotate 

Source
pub trait WordRotate: Copy {
    // Required methods
    fn rotl(self, n: u32) -> Self;
    fn rotr(self, n: u32) -> Self;
}
Expand description

Width-defined bit rotation, available on every word width so rotl(x, n) is one name.

Required Methods§

Source

fn rotl(self, n: u32) -> Self

Source

fn rotr(self, n: u32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§