pub trait Printablewhere
    Self: Sized,{
    type Parameters;

    // Required methods
    fn print_2(self, params: Self::Parameters);
    fn default_parameters() -> Self::Parameters;

    // Provided method
    fn print(self) { ... }
}

Required Associated Types§

Required Methods§

source

fn print_2(self, params: Self::Parameters)

source

fn default_parameters() -> Self::Parameters

Provided Methods§

source

fn print(self)

Implementations on Foreign Types§

source§

impl Printable for &[u8]

§

type Parameters = ()

source§

fn print_2(self, _params: Self::Parameters)

source§

fn default_parameters() -> Self::Parameters

source§

impl Printable for &str

§

type Parameters = ()

source§

fn print_2(self, _params: Self::Parameters)

source§

fn default_parameters() -> Self::Parameters

source§

impl Printable for i32

source§

impl Printable for u16

source§

impl Printable for u32

source§

impl Printable for i16

Implementors§

source§

impl<const N: usize> Printable for String<N>

§

type Parameters = ()