Lines Matching defs:mul
84 fn mul(self, other: Self) -> Result<Self, Error>;
89 fn mul(self, other: Self) -> Result<Self, Error> {
128 "usec" | "us" => (0u64, n.mul(1000)?),
129 "millis" | "msec" | "ms" => (0u64, n.mul(1_000_000)?),
132 => (n.mul(60)?, 0),
133 "hours" | "hour" | "hr" | "hrs" | "h" => (n.mul(3600)?, 0),
134 "days" | "day" | "d" => (n.mul(86400)?, 0),
135 "weeks" | "week" | "w" => (n.mul(86400*7)?, 0),
136 "months" | "month" | "M" => (n.mul(2_630_016)?, 0), // 30.44d
137 "years" | "year" | "y" => (n.mul(31_557_600)?, 0), // 365.25d