[][src]Trait fortraith::rot

pub trait rot {
    type Result;
}

Rotate three top elements

Examples

Rotates 1 2 3 -> 2 3 1 -> 3 1 2

forth!(
    1 2 3 rot rot
    return type Out as top
);
assert_eq!(Out::eval(), 2);

Associated Types

type Result

Loading content...

Implementors

Loading content...