pub trait TensorCosAPI {
type Output;
// Required method
fn cos_f(self) -> Result<Self::Output, Error>;
// Provided method
fn cos(self) -> Self::Output
where Self: Sized { ... }
}pub trait TensorCosAPI {
type Output;
// Required method
fn cos_f(self) -> Result<Self::Output, Error>;
// Provided method
fn cos(self) -> Self::Output
where Self: Sized { ... }
}