default method
A trait method with a body that implementors get for free.
A default method is a provided method in a trait definition; an impl may override it or inherit it.
Examples
trait Delivery { fn days(&self) -> u32 { 5 } }letsimpl Delivery for Book {}stay empty and still answerBook.days()with 5.
See also