Trait perspective_viewer::utils::TeeInternal
source · pub trait TeeInternal<const N: usize> {
type Output: Clone;
// Required method
fn tee_internal(self) -> Self::Output;
}Expand description
Trait for polymorphic return value via turbofish-const-generic syntax.
The associated type Output is a functional dependency of the const generic
parameter N, so there’s typically no need to specify this parameter when
invoking, which is what we want - this parameter is quite verbose and
repetitive (see below), vs N which is a single character.