Trait Ops

Source
pub trait Ops {
    // Required methods
    fn lrot(&self) -> Self;
    fn rrot(&self) -> Self;
    fn xor(&self, rhs: &Self) -> Self;
    fn and(&self, rhs: &Self) -> Self;
    fn gmul(&self, rhs: &Self, bits: u8) -> Self;
}

Required Methods§

Source

fn lrot(&self) -> Self

Source

fn rrot(&self) -> Self

Source

fn xor(&self, rhs: &Self) -> Self

Source

fn and(&self, rhs: &Self) -> Self

Source

fn gmul(&self, rhs: &Self, bits: u8) -> 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.

Implementations on Foreign Types§

Source§

impl Ops for u8

Source§

fn lrot(&self) -> Self

Source§

fn rrot(&self) -> Self

Source§

fn xor(&self, rhs: &Self) -> Self

Source§

fn and(&self, rhs: &Self) -> Self

Source§

fn gmul(&self, rhs: &Self, bits: u8) -> Self

Implementors§