pub trait Whatever {
    type Foo;

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

Required Associated Types§

Provided Methods§

Implementors§

source§

impl Whatever for Struct

§

type Foo = u8

impl Whatever for Foo