Skip to main content

nanvm_lib/vm/any/
shr.rs

1use core::ops::Shr;
2
3use crate::vm::{Any, IVm, numeric::Numeric};
4
5impl<A: IVm> Shr for Any<A> {
6    type Output = Result<Any<A>, Any<A>>;
7
8    fn shr(self, rhs: Self) -> Self::Output {
9        self.numeric_op(rhs, Numeric::shr)
10    }
11}