use std::ops::Sub; trait BigInt where for<'a> &'a Self: Sub<i64, Output = Self> {} fn do_work<T: BigInt>(x: &T) -> T { x - 1 } ...
確定! 回上一頁