deimos-lang/dm-core/src/ops.dm
2026-09-16 12:35:49 -05:00

20 lines
311 B
Plaintext

pub trait Add
type Right = Self
type Result = Self
fn add(right: Self::Right) -> Self::Result
end
pub trait Multiply
type Right = Self
type Result = Self
fn multiply(right: Self::Right) -> Self::Result
end
pub trait Negate
type Result = Self
fn negate() -> Self::Result
end