Skip to main content

nanvm_lib/vm/any/
rem.rs

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