Files
sakurac/core/traits/multiplicative.sakura
T

18 lines
606 B
Plaintext
Raw Normal View History

2026-10-26 10:14:11 -05:00
#! @file multiplicative.sakura
#! @author John Christman (sorakatadzuma@gmail.com)
#! @copyright Malunal Studios, LLC.
#! @license MIT
#!
#! Contains the multiplicative trait, which a type implements to multiply its
#! values, and which every number has.
module core;
#! A type whose values multiply, as one type: matrices, and whatever is
#! numeric.
#!
#! It composes `multipliable`, which gives `*`, beside `equatable`. It asks for
#! no division, since not every matrix divides another. Numbers are
#! multiplicative without declaring anything.
pub trait multiplicative : equatable, multipliable {}