// Core operators and kinds. #[allow(non_camel_case_types)]; #[cfg(notest)] #[lang="const"] trait const { // Empty. } #[cfg(notest)] #[lang="copy"] trait copy { // Empty. } #[cfg(notest)] #[lang="send"] trait send { // Empty. } #[cfg(notest)] #[lang="owned"] trait owned { // Empty. } #[cfg(notest)] #[lang="add"] trait add { pure fn add(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="sub"] trait sub { pure fn sub(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="mul"] trait mul { pure fn mul(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="div"] trait div { pure fn div(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="modulo"] trait modulo { pure fn modulo(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="neg"] trait neg { pure fn neg() -> Result; } #[cfg(notest)] #[lang="bitand"] trait bitand { pure fn bitand(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="bitor"] trait bitor { pure fn bitor(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="bitxor"] trait bitxor { pure fn bitxor(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="shl"] trait shl { pure fn shl(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="shr"] trait shr { pure fn shr(rhs: RHS) -> Result; } #[cfg(notest)] #[lang="index"] trait index { pure fn index(index: Index) -> Result; }