Trait rings_core::dht::did::Rotate

source ·
pub trait Rotate<Rhs = u16> {
    type Output;

    // Required method
    fn rotate(&self, angle: Rhs) -> Self::Output;
}
Expand description

The Rotate trait represents a affine transformation for values in a finite ring. It defines a method rotate which allows applying the transformation to the implementing type.

Required Associated Types§

source

type Output

output type of rotate operation

Required Methods§

source

fn rotate(&self, angle: Rhs) -> Self::Output

rotate a Did with given angle

Implementors§