perspective_viewer::utils

Trait 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.

Required Associated Types§

Required Methods§

Source

fn tee_internal(self) -> Self::Output

Implementors§

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T

Source§

impl<T: Clone> TeeInternal<{${count($x)} + 1}> for T