举个例子,我们自定义一个trait 叫: Converter 。 pub trait Converter {. type Output;. fn convert(&self) -> Self::Output;.
確定! 回上一頁