Rust Generics Multiple type parameters


Example

Generics types can have more than one type parameters, eg. Result is defined like this:

pub enum Result<T, E> {
    Ok(T),
    Err(E),
}