pub trait TargetDim: RemoveAxis { // Provided method fn nsamples(self, nsamples: usize) -> Self { ... } }