The Display
trait is defined as follows:
pub trait Display {
fn fmt(&self, &mut Formatter) -> Result<(), Error>;
}
The most mysterious thing to me is the empty set of parentheses, ()
, in the type declaration Result<(), Error>
. What is it and its purpose?